# Periodic high load after upgrading from 0.90 to 1.3.4

**URL:** <https://discuss.elastic.co/t/periodic-high-load-after-upgrading-from-0-90-to-1-3-4/21016>\
**Category:** Elasticsearch\
**Created:** [December 1, 2014, 9:23pm UTC](https://discuss.elastic.co/t/periodic-high-load-after-upgrading-from-0-90-to-1-3-4/21016 "2014-12-01T21:23:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_McGuinness](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael_mcguinness/32/1080_2.png) [@Michael\_McGuinness](https://discuss.elastic.co/u/Michael_McGuinness)\
**Post date:** [December 1, 2014, 9:23pm UTC](https://discuss.elastic.co/t/periodic-high-load-after-upgrading-from-0-90-to-1-3-4/21016/1 "2014-12-01T21:23:02Z")

</div>

I'm running a set of very simple elasticsearch instances as part of a  
graylog2 deployment. Each set has a single elasticsearch node (its own  
cluster). I recently upgraded these sets to 1.34 as part of an upgrade to  
the graylog2 server, and I immediately noticed some periodic high loads on  
the machines involved; here's a cpu and load graph from one of the upgrades:

[https://lh5.googleusercontent.com/-VpRVGkOajg8/VHzUsvLe1NI/AAAAAAAABmk/PIXlnNboHwc/s1600/cpuandload.png](https://lh5.googleusercontent.com/-VpRVGkOajg8/VHzUsvLe1NI/AAAAAAAABmk/PIXlnNboHwc/s1600/cpuandload.png)  
The upgrade occurred at ~12pm (you can see the spike on the ProcessorLoad  
graph). There are now periods of fairly high load, it goes up to ~5 on  
this graph, though when watching the machine through htop or the like, 5  
minute load tops out at about 8 at the start of any given spike. I've  
determined that the machine is not bound by cpu, memory, or I/O during  
these events, and I've also confirmed that there is no GC thrashing.

I don't see anything in the logs of either elasticsearch or graylog2 that  
line up with the spikes.

When the spike is going on, all 5 threads from the management pool tend to  
be active (learned this by comparing the running pids from htop to a thread  
dump from jstack). I've found it difficult to find much more concrete  
information since nothing seems to actually be 'stuck', the best I was able  
to gleam was the following result from /\_cat/thread\_pool during one of the  
load spikes:

host id mas maa maq  
(graylog2) T9hD 1 1 0  
(es-primary) YG9x 5 5 100

If I repeatedly query the thread\_pool during a spike I will occasionally  
get these ~100 queued management threads, though I wasn't able to capture  
what these threads are trying to do.

Has anyone seen this behavior before, or recognize it? I'd be happy to  
provide more information - up until now I've been using elasticsearch  
mostly as a blackbox component of graylog, so I'm not very familiar with  
debugging it.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/017f0fc5-9619-4cce-b1a4-02db44ef4b6b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/017f0fc5-9619-4cce-b1a4-02db44ef4b6b%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 1, 2014, 10:55pm UTC](https://discuss.elastic.co/t/periodic-high-load-after-upgrading-from-0-90-to-1-3-4/21016/2 "2014-12-01T22:55:00Z")

</div>

It'd be worth starting at hot threads;

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

On 2 December 2014 at 08:23, Michael McGuinness [hunter0000@gmail.com](mailto:hunter0000@gmail.com)  
wrote:

> I'm running a set of very simple elasticsearch instances as part of a  
> graylog2 deployment. Each set has a single elasticsearch node (its own  
> cluster). I recently upgraded these sets to 1.34 as part of an upgrade to  
> the graylog2 server, and I immediately noticed some periodic high loads on  
> the machines involved; here's a cpu and load graph from one of the upgrades:
> 
> [https://lh5.googleusercontent.com/-VpRVGkOajg8/VHzUsvLe1NI/AAAAAAAABmk/PIXlnNboHwc/s1600/cpuandload.png](https://lh5.googleusercontent.com/-VpRVGkOajg8/VHzUsvLe1NI/AAAAAAAABmk/PIXlnNboHwc/s1600/cpuandload.png)  
> The upgrade occurred at ~12pm (you can see the spike on the ProcessorLoad  
> graph). There are now periods of fairly high load, it goes up to ~5 on  
> this graph, though when watching the machine through htop or the like, 5  
> minute load tops out at about 8 at the start of any given spike. I've  
> determined that the machine is not bound by cpu, memory, or I/O during  
> these events, and I've also confirmed that there is no GC thrashing.
> 
> I don't see anything in the logs of either elasticsearch or graylog2 that  
> line up with the spikes.
> 
> When the spike is going on, all 5 threads from the management pool tend to  
> be active (learned this by comparing the running pids from htop to a thread  
> dump from jstack). I've found it difficult to find much more concrete  
> information since nothing seems to actually be 'stuck', the best I was able  
> to gleam was the following result from /\_cat/thread\_pool during one of the  
> load spikes:
> 
> host id mas maa maq  
> (graylog2) T9hD 1 1 0  
> (es-primary) YG9x 5 5 100
> 
> If I repeatedly query the thread\_pool during a spike I will occasionally  
> get these ~100 queued management threads, though I wasn't able to capture  
> what these threads are trying to do.
> 
> Has anyone seen this behavior before, or recognize it? I'd be happy to  
> provide more information - up until now I've been using elasticsearch  
> mostly as a blackbox component of graylog, so I'm not very familiar with  
> debugging it.
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/017f0fc5-9619-4cce-b1a4-02db44ef4b6b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/017f0fc5-9619-4cce-b1a4-02db44ef4b6b%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/017f0fc5-9619-4cce-b1a4-02db44ef4b6b%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/017f0fc5-9619-4cce-b1a4-02db44ef4b6b%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnSrXuv01-5ChoiM1mNci442-xcKoj6rjeZS5pSGVOyOQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnSrXuv01-5ChoiM1mNci442-xcKoj6rjeZS5pSGVOyOQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Michael\_McGuinness](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael_mcguinness/32/1080_2.png) [@Michael\_McGuinness](https://discuss.elastic.co/u/Michael_McGuinness)\
**Post date:** [December 2, 2014, 4:15pm UTC](https://discuss.elastic.co/t/periodic-high-load-after-upgrading-from-0-90-to-1-3-4/21016/3 "2014-12-02T16:15:51Z")

</div>

I've done some poking around with hot\_threads during spikes as you've  
suggested, put some of the output here:

> <https://gist.github.com/mmcguinn/bb9de3f5f534d2581f62>

As noted in the gist - normally the hottest threads are from the management  
pool (at around 4-8%) and they are normally in a lock when the call  
happens. I did on occasion see these management threads in  
"org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction$ShardTransportHandler.messageReceived"  
with pretty high cpu (50%). I also have seen "Lucene Merge Thread"s with  
very high cpu on occasion (90%+). These both seem like operations that  
could have fairly high cpu over the short term, though that's uninformed  
speculation on my part.

Graylog2's server itself is not very dynamic in terms of what's showing up  
in hot\_threads so I've left it out above. Generally I see the same set of  
I/O processing threads all under 4%.

Does any of that seem unusual or point to a problem?

On Monday, December 1, 2014 5:55:49 PM UTC-5, Mark Walkom wrote:

> It'd be worth starting at hot threads;  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-nodes-hot-threads.html#cluster-nodes-hot-threads)
> 
> On 2 December 2014 at 08:23, Michael McGuinness \<[hunte...@gmail.com](mailto:hunte...@gmail.com)  
> \<javascript:\>\> wrote:
> 
> > I'm running a set of very simple elasticsearch instances as part of a  
> > graylog2 deployment. Each set has a single elasticsearch node (its own  
> > cluster). I recently upgraded these sets to 1.34 as part of an upgrade to  
> > the graylog2 server, and I immediately noticed some periodic high loads on  
> > the machines involved; here's a cpu and load graph from one of the upgrades:
> > 
> > [https://lh5.googleusercontent.com/-VpRVGkOajg8/VHzUsvLe1NI/AAAAAAAABmk/PIXlnNboHwc/s1600/cpuandload.png](https://lh5.googleusercontent.com/-VpRVGkOajg8/VHzUsvLe1NI/AAAAAAAABmk/PIXlnNboHwc/s1600/cpuandload.png)  
> > The upgrade occurred at ~12pm (you can see the spike on the ProcessorLoad  
> > graph). There are now periods of fairly high load, it goes up to ~5 on  
> > this graph, though when watching the machine through htop or the like, 5  
> > minute load tops out at about 8 at the start of any given spike. I've  
> > determined that the machine is not bound by cpu, memory, or I/O during  
> > these events, and I've also confirmed that there is no GC thrashing.
> > 
> > I don't see anything in the logs of either elasticsearch or graylog2 that  
> > line up with the spikes.
> > 
> > When the spike is going on, all 5 threads from the management pool tend  
> > to be active (learned this by comparing the running pids from htop to a  
> > thread dump from jstack). I've found it difficult to find much more  
> > concrete information since nothing seems to actually be 'stuck', the best I  
> > was able to gleam was the following result from /\_cat/thread\_pool during  
> > one of the load spikes:
> > 
> > host id mas maa maq  
> > (graylog2) T9hD 1 1 0  
> > (es-primary) YG9x 5 5 100
> > 
> > If I repeatedly query the thread\_pool during a spike I will occasionally  
> > get these ~100 queued management threads, though I wasn't able to capture  
> > what these threads are trying to do.
> > 
> > Has anyone seen this behavior before, or recognize it? I'd be happy to  
> > provide more information - up until now I've been using elasticsearch  
> > mostly as a blackbox component of graylog, so I'm not very familiar with  
> > debugging it.
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/017f0fc5-9619-4cce-b1a4-02db44ef4b6b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/017f0fc5-9619-4cce-b1a4-02db44ef4b6b%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/017f0fc5-9619-4cce-b1a4-02db44ef4b6b%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/017f0fc5-9619-4cce-b1a4-02db44ef4b6b%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/3c8f518c-e8f7-41d3-ba4c-fd350448e5e9%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3c8f518c-e8f7-41d3-ba4c-fd350448e5e9%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [December 2, 2014, 8:26pm UTC](https://discuss.elastic.co/t/periodic-high-load-after-upgrading-from-0-90-to-1-3-4/21016/4 "2014-12-02T20:26:33Z")

</div>

I assume you have ported old data from 0.90 into 1.3 and continued to use  
the same index in 1.3?

If so, the reason you see extra load is probably due to the feature that ES  
1.3 tries to merge older 0.90 Lucene segments with new segments. By doing  
that, the segments are upgraded in the background to a new Lucene codec  
version.

Jörg

On Tue, Dec 2, 2014 at 5:15 PM, Michael McGuinness [hunter0000@gmail.com](mailto:hunter0000@gmail.com)  
wrote:

> I've done some poking around with hot\_threads during spikes as you've  
> suggested, put some of the output here:  
> [Hot Threads · GitHub](https://gist.github.com/mmcguinn/bb9de3f5f534d2581f62)
> 
> As noted in the gist - normally the hottest threads are from the  
> management pool (at around 4-8%) and they are normally in a lock when the  
> call happens. I did on occasion see these management threads in  
> "org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction$ShardTransportHandler.messageReceived"  
> with pretty high cpu (50%). I also have seen "Lucene Merge Thread"s with  
> very high cpu on occasion (90%+). These both seem like operations that  
> could have fairly high cpu over the short term, though that's uninformed  
> speculation on my part.
> 
> Graylog2's server itself is not very dynamic in terms of what's showing up  
> in hot\_threads so I've left it out above. Generally I see the same set of  
> I/O processing threads all under 4%.
> 
> Does any of that seem unusual or point to a problem?
> 
> On Monday, December 1, 2014 5:55:49 PM UTC-5, Mark Walkom wrote:
> 
> > It'd be worth starting at hot threads; [http://www.elasticsearch.org/](http://www.elasticsearch.org/)  
> > guide/en/elasticsearch/reference/current/cluster-nodes-hot-threads.html#  
> > cluster-nodes-hot-threads
> > 
> > On 2 December 2014 at 08:23, Michael McGuinness [hunte...@gmail.com](mailto:hunte...@gmail.com)  
> > wrote:
> > 
> > > I'm running a set of very simple elasticsearch instances as part of a  
> > > graylog2 deployment. Each set has a single elasticsearch node (its own  
> > > cluster). I recently upgraded these sets to 1.34 as part of an upgrade to  
> > > the graylog2 server, and I immediately noticed some periodic high loads on  
> > > the machines involved; here's a cpu and load graph from one of the upgrades:
> > > 
> > > [https://lh5.googleusercontent.com/-VpRVGkOajg8/VHzUsvLe1NI/AAAAAAAABmk/PIXlnNboHwc/s1600/cpuandload.png](https://lh5.googleusercontent.com/-VpRVGkOajg8/VHzUsvLe1NI/AAAAAAAABmk/PIXlnNboHwc/s1600/cpuandload.png)  
> > > The upgrade occurred at ~12pm (you can see the spike on the  
> > > ProcessorLoad graph). There are now periods of fairly high load, it goes  
> > > up to ~5 on this graph, though when watching the machine through htop or  
> > > the like, 5 minute load tops out at about 8 at the start of any given  
> > > spike. I've determined that the machine is not bound by cpu, memory, or I/O  
> > > during these events, and I've also confirmed that there is no GC thrashing.
> > > 
> > > I don't see anything in the logs of either elasticsearch or graylog2  
> > > that line up with the spikes.
> > > 
> > > When the spike is going on, all 5 threads from the management pool tend  
> > > to be active (learned this by comparing the running pids from htop to a  
> > > thread dump from jstack). I've found it difficult to find much more  
> > > concrete information since nothing seems to actually be 'stuck', the best I  
> > > was able to gleam was the following result from /\_cat/thread\_pool during  
> > > one of the load spikes:
> > > 
> > > host id mas maa maq  
> > > (graylog2) T9hD 1 1 0  
> > > (es-primary) YG9x 5 5 100
> > > 
> > > If I repeatedly query the thread\_pool during a spike I will occasionally  
> > > get these ~100 queued management threads, though I wasn't able to capture  
> > > what these threads are trying to do.
> > > 
> > > Has anyone seen this behavior before, or recognize it? I'd be happy to  
> > > provide more information - up until now I've been using elasticsearch  
> > > mostly as a blackbox component of graylog, so I'm not very familiar with  
> > > debugging it.
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > msgid/elasticsearch/017f0fc5-9619-4cce-b1a4-02db44ef4b6b%  
> > > [40googlegroups.com](http://40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/017f0fc5-9619-4cce-b1a4-02db44ef4b6b%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/017f0fc5-9619-4cce-b1a4-02db44ef4b6b%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/3c8f518c-e8f7-41d3-ba4c-fd350448e5e9%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3c8f518c-e8f7-41d3-ba4c-fd350448e5e9%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/3c8f518c-e8f7-41d3-ba4c-fd350448e5e9%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/3c8f518c-e8f7-41d3-ba4c-fd350448e5e9%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoF9Wav-D8tqo7UNHSe\_6gbpS74VckT8XwGyt5LDuVfe2w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoF9Wav-D8tqo7UNHSe_6gbpS74VckT8XwGyt5LDuVfe2w%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Michael\_McGuinness](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael_mcguinness/32/1080_2.png) [@Michael\_McGuinness](https://discuss.elastic.co/u/Michael_McGuinness)\
**Post date:** [December 2, 2014, 9:19pm UTC](https://discuss.elastic.co/t/periodic-high-load-after-upgrading-from-0-90-to-1-3-4/21016/5 "2014-12-02T21:19:04Z")

</div>

You are correct, I left indices in place. Unfortunately, I have been able  
to replicate the behavior on one of the machines after deleting all indices  
from it and starting fresh.

I'm going to try and replicate on fresh vm now that I have resources  
available (it's a vmware + chef setup).

On Tuesday, December 2, 2014 3:26:59 PM UTC-5, Jörg Prante wrote:

> I assume you have ported old data from 0.90 into 1.3 and continued to use  
> the same index in 1.3?
> 
> If so, the reason you see extra load is probably due to the feature that  
> ES 1.3 tries to merge older 0.90 Lucene segments with new segments. By  
> doing that, the segments are upgraded in the background to a new Lucene  
> codec version.
> 
> Jörg
> 
> On Tue, Dec 2, 2014 at 5:15 PM, Michael McGuinness \<[hunte...@gmail.com](mailto:hunte...@gmail.com)  
> \<javascript:\>\> wrote:
> 
> > I've done some poking around with hot\_threads during spikes as you've  
> > suggested, put some of the output here:  
> > [Hot Threads · GitHub](https://gist.github.com/mmcguinn/bb9de3f5f534d2581f62)
> > 
> > As noted in the gist - normally the hottest threads are from the  
> > management pool (at around 4-8%) and they are normally in a lock when the  
> > call happens. I did on occasion see these management threads in  
> > "org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction$ShardTransportHandler.messageReceived"  
> > with pretty high cpu (50%). I also have seen "Lucene Merge Thread"s with  
> > very high cpu on occasion (90%+). These both seem like operations that  
> > could have fairly high cpu over the short term, though that's uninformed  
> > speculation on my part.
> > 
> > Graylog2's server itself is not very dynamic in terms of what's showing  
> > up in hot\_threads so I've left it out above. Generally I see the same set  
> > of I/O processing threads all under 4%.
> > 
> > Does any of that seem unusual or point to a problem?
> > 
> > On Monday, December 1, 2014 5:55:49 PM UTC-5, Mark Walkom wrote:
> > 
> > > It'd be worth starting at hot threads; [http://www.elasticsearch.org/](http://www.elasticsearch.org/)  
> > > guide/en/elasticsearch/reference/current/cluster-nodes-hot-threads.html#  
> > > cluster-nodes-hot-threads
> > > 
> > > On 2 December 2014 at 08:23, Michael McGuinness [hunte...@gmail.com](mailto:hunte...@gmail.com)  
> > > wrote:
> > > 
> > > > I'm running a set of very simple elasticsearch instances as part of a  
> > > > graylog2 deployment. Each set has a single elasticsearch node (its own  
> > > > cluster). I recently upgraded these sets to 1.34 as part of an upgrade to  
> > > > the graylog2 server, and I immediately noticed some periodic high loads on  
> > > > the machines involved; here's a cpu and load graph from one of the upgrades:
> > > > 
> > > > [https://lh5.googleusercontent.com/-VpRVGkOajg8/VHzUsvLe1NI/AAAAAAAABmk/PIXlnNboHwc/s1600/cpuandload.png](https://lh5.googleusercontent.com/-VpRVGkOajg8/VHzUsvLe1NI/AAAAAAAABmk/PIXlnNboHwc/s1600/cpuandload.png)  
> > > > The upgrade occurred at ~12pm (you can see the spike on the  
> > > > ProcessorLoad graph). There are now periods of fairly high load, it goes  
> > > > up to ~5 on this graph, though when watching the machine through htop or  
> > > > the like, 5 minute load tops out at about 8 at the start of any given  
> > > > spike. I've determined that the machine is not bound by cpu, memory, or I/O  
> > > > during these events, and I've also confirmed that there is no GC thrashing.
> > > > 
> > > > I don't see anything in the logs of either elasticsearch or graylog2  
> > > > that line up with the spikes.
> > > > 
> > > > When the spike is going on, all 5 threads from the management pool tend  
> > > > to be active (learned this by comparing the running pids from htop to a  
> > > > thread dump from jstack). I've found it difficult to find much more  
> > > > concrete information since nothing seems to actually be 'stuck', the best I  
> > > > was able to gleam was the following result from /\_cat/thread\_pool during  
> > > > one of the load spikes:
> > > > 
> > > > host id mas maa maq  
> > > > (graylog2) T9hD 1 1 0  
> > > > (es-primary) YG9x 5 5 100
> > > > 
> > > > If I repeatedly query the thread\_pool during a spike I will  
> > > > occasionally get these ~100 queued management threads, though I wasn't able  
> > > > to capture what these threads are trying to do.
> > > > 
> > > > Has anyone seen this behavior before, or recognize it? I'd be happy to  
> > > > provide more information - up until now I've been using elasticsearch  
> > > > mostly as a blackbox component of graylog, so I'm not very familiar with  
> > > > debugging it.
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google  
> > > > Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > msgid/elasticsearch/017f0fc5-9619-4cce-b1a4-02db44ef4b6b%  
> > > > [40googlegroups.com](http://40googlegroups.com)  
> > > > [https://groups.google.com/d/msgid/elasticsearch/017f0fc5-9619-4cce-b1a4-02db44ef4b6b%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/017f0fc5-9619-4cce-b1a4-02db44ef4b6b%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > .  
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google Groups  
> > > "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send an  
> > > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/3c8f518c-e8f7-41d3-ba4c-fd350448e5e9%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3c8f518c-e8f7-41d3-ba4c-fd350448e5e9%40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/3c8f518c-e8f7-41d3-ba4c-fd350448e5e9%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/3c8f518c-e8f7-41d3-ba4c-fd350448e5e9%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/afeacdac-0bc5-4d9e-b469-b5527e9f0d32%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/afeacdac-0bc5-4d9e-b469-b5527e9f0d32%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [December 2, 2014, 10:12pm UTC](https://discuss.elastic.co/t/periodic-high-load-after-upgrading-from-0-90-to-1-3-4/21016/6 "2014-12-02T22:12:49Z")

</div>

Some defaults in segment merge settings have been changed since 0.90 so I  
suggest to check if you want to modify them. What you see is not much of  
concern, it reveals that receiving docs is active and the merge runs try to  
keep up with indexing the documents.

Jörg

On Tue, Dec 2, 2014 at 10:19 PM, Michael McGuinness [hunter0000@gmail.com](mailto:hunter0000@gmail.com)  
wrote:

> You are correct, I left indices in place. Unfortunately, I have been able  
> to replicate the behavior on one of the machines after deleting all indices  
> from it and starting fresh.
> 
> I'm going to try and replicate on fresh vm now that I have resources  
> available (it's a vmware + chef setup).
> 
> On Tuesday, December 2, 2014 3:26:59 PM UTC-5, Jörg Prante wrote:
> 
> > I assume you have ported old data from 0.90 into 1.3 and continued to use  
> > the same index in 1.3?
> > 
> > If so, the reason you see extra load is probably due to the feature that  
> > ES 1.3 tries to merge older 0.90 Lucene segments with new segments. By  
> > doing that, the segments are upgraded in the background to a new Lucene  
> > codec version.
> > 
> > Jörg
> > 
> > On Tue, Dec 2, 2014 at 5:15 PM, Michael McGuinness [hunte...@gmail.com](mailto:hunte...@gmail.com)  
> > wrote:
> > 
> > > I've done some poking around with hot\_threads during spikes as you've  
> > > suggested, put some of the output here: [https://gist.github.com/](https://gist.github.com/)  
> > > mmcguinn/bb9de3f5f534d2581f62
> > > 
> > > As noted in the gist - normally the hottest threads are from the  
> > > management pool (at around 4-8%) and they are normally in a lock when the  
> > > call happens. I did on occasion see these management threads in  
> > > "org.elasticsearch.action.support.broadcast.  
> > > TransportBroadcastOperationAction$ShardTransportHandler.messageReceived"  
> > > with pretty high cpu (50%). I also have seen "Lucene Merge Thread"s with  
> > > very high cpu on occasion (90%+). These both seem like operations that  
> > > could have fairly high cpu over the short term, though that's uninformed  
> > > speculation on my part.
> > > 
> > > Graylog2's server itself is not very dynamic in terms of what's showing  
> > > up in hot\_threads so I've left it out above. Generally I see the same set  
> > > of I/O processing threads all under 4%.
> > > 
> > > Does any of that seem unusual or point to a problem?
> > > 
> > > On Monday, December 1, 2014 5:55:49 PM UTC-5, Mark Walkom wrote:
> > > 
> > > > It'd be worth starting at hot threads; [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/g)  
> > > > uide/en/elasticsearch/reference/current/cluster-nodes-hot-threads.html#  
> > > > cluster-nodes-hot-threads
> > > > 
> > > > On 2 December 2014 at 08:23, Michael McGuinness [hunte...@gmail.com](mailto:hunte...@gmail.com)  
> > > > wrote:
> > > > 
> > > > > I'm running a set of very simple elasticsearch instances as part of a  
> > > > > graylog2 deployment. Each set has a single elasticsearch node (its own  
> > > > > cluster). I recently upgraded these sets to 1.34 as part of an upgrade to  
> > > > > the graylog2 server, and I immediately noticed some periodic high loads on  
> > > > > the machines involved; here's a cpu and load graph from one of the upgrades:
> > > > > 
> > > > > [https://lh5.googleusercontent.com/-VpRVGkOajg8/VHzUsvLe1NI/AAAAAAAABmk/PIXlnNboHwc/s1600/cpuandload.png](https://lh5.googleusercontent.com/-VpRVGkOajg8/VHzUsvLe1NI/AAAAAAAABmk/PIXlnNboHwc/s1600/cpuandload.png)  
> > > > > The upgrade occurred at ~12pm (you can see the spike on the  
> > > > > ProcessorLoad graph). There are now periods of fairly high load, it goes  
> > > > > up to ~5 on this graph, though when watching the machine through htop or  
> > > > > the like, 5 minute load tops out at about 8 at the start of any given  
> > > > > spike. I've determined that the machine is not bound by cpu, memory, or I/O  
> > > > > during these events, and I've also confirmed that there is no GC thrashing.
> > > > > 
> > > > > I don't see anything in the logs of either elasticsearch or graylog2  
> > > > > that line up with the spikes.
> > > > > 
> > > > > When the spike is going on, all 5 threads from the management pool  
> > > > > tend to be active (learned this by comparing the running pids from htop to  
> > > > > a thread dump from jstack). I've found it difficult to find much more  
> > > > > concrete information since nothing seems to actually be 'stuck', the best I  
> > > > > was able to gleam was the following result from /\_cat/thread\_pool during  
> > > > > one of the load spikes:
> > > > > 
> > > > > host id mas maa maq  
> > > > > (graylog2) T9hD 1 1 0  
> > > > > (es-primary) YG9x 5 5 100
> > > > > 
> > > > > If I repeatedly query the thread\_pool during a spike I will  
> > > > > occasionally get these ~100 queued management threads, though I wasn't able  
> > > > > to capture what these threads are trying to do.
> > > > > 
> > > > > Has anyone seen this behavior before, or recognize it? I'd be happy to  
> > > > > provide more information - up until now I've been using elasticsearch  
> > > > > mostly as a blackbox component of graylog, so I'm not very familiar with  
> > > > > debugging it.
> > > > > 
> > > > > --  
> > > > > You received this message because you are subscribed to the Google  
> > > > > Groups "elasticsearch" group.  
> > > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > > msgid/elasticsearch/017f0fc5-9619-4cce-b1a4-02db44ef4b6b%40goo  
> > > > > [glegroups.com](http://glegroups.com)  
> > > > > [https://groups.google.com/d/msgid/elasticsearch/017f0fc5-9619-4cce-b1a4-02db44ef4b6b%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/017f0fc5-9619-4cce-b1a4-02db44ef4b6b%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > .  
> > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google  
> > > > Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > msgid/elasticsearch/3c8f518c-e8f7-41d3-ba4c-fd350448e5e9%  
> > > > [40googlegroups.com](http://40googlegroups.com)  
> > > > [https://groups.google.com/d/msgid/elasticsearch/3c8f518c-e8f7-41d3-ba4c-fd350448e5e9%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/3c8f518c-e8f7-41d3-ba4c-fd350448e5e9%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > .
> > > 
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/afeacdac-0bc5-4d9e-b469-b5527e9f0d32%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/afeacdac-0bc5-4d9e-b469-b5527e9f0d32%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/afeacdac-0bc5-4d9e-b469-b5527e9f0d32%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/afeacdac-0bc5-4d9e-b469-b5527e9f0d32%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGL-K\_q3PNj9GXe67OE66bzR9Y5NWNtkoii\_\_xK7RPp3w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGL-K_q3PNj9GXe67OE66bzR9Y5NWNtkoii__xK7RPp3w%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:46am UTC](https://discuss.elastic.co/t/periodic-high-load-after-upgrading-from-0-90-to-1-3-4/21016/7 "2017-07-06T00:46:27Z")

</div>


