Reputation: 1531
As you can see in the attached screenshot, our cluster has 11 nodes, however one of the slaves is always on red CPU 99%
. To mention that this changes from one slave to another. At the same time, lately all query responses are really slow, (one simple query can take between 5
and 8
seconds). I dug tens of forums and resources, both, about Elasticsearch and Java and couldn't find any solutions or at least clues on how to solve this.
Any help and/or thoughts will be really appreciated. If there's a need for more info about servers, do not hesitate to ask and I'll provide updates.
Thank You.
Upvotes: 2
Views: 4037
Reputation: 2613
It's difficult to answer this without going into a lot of details about your indexes and what kind of queries you're doing. I had a similar experience with fewer nodes but one that was always at max CPU. Here's what I learned in order of importance:
routing
, a query will hit all nodes but the response will be prepared by one node. Depending on the amount of data being processed, this could explain a constant high CPU usage.The ElasticSearch team is making great progress with every release... so the first thing to do whenever possible is upgrade to the latest stable release. I went from 1.3 to 1.5 and many problems just disappeared :)
Upvotes: 2