# The CPU useage of elasticsearch three nodes is not balance

**URL:** <https://discuss.elastic.co/t/the-cpu-useage-of-elasticsearch-three-nodes-is-not-balance/309243>\
**Category:** Elasticsearch\
**Created:** [July 9, 2022, 3:50am UTC](https://discuss.elastic.co/t/the-cpu-useage-of-elasticsearch-three-nodes-is-not-balance/309243 "2022-07-09T03:50:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zekaifeng](https://avatars.discourse-cdn.com/v4/letter/z/c6cbf5/32.png) [@zekaifeng](https://discuss.elastic.co/u/zekaifeng)\
**Post date:** [July 9, 2022, 3:50am UTC](https://discuss.elastic.co/t/the-cpu-useage-of-elasticsearch-three-nodes-is-not-balance/309243/1 "2022-07-09T03:50:01Z")

</div>

elasticsearch version：7.10.2  
nodes：3  
indice config：3 primary shard & 1 Replica

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/8/c825ce2319944657ff3ffbb2a6520221a2daf880.png)  
I use {"query": {"match\_all": {}} to query 10 pieces of data, and the CPU useage of the three nodes is not balance.  
node-0:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/2/f2c896ac2d46b7490b1dd2ce9b12c38a3286197d.png)  
node-1:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/7/37ec972c6e5112e52e7b309fe353bf2cdee00254.png)  
node-2:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/8/980210cc7cf3f548cccdf6f0a06d78b49e5cda7a.png)

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [July 9, 2022, 7:08am UTC](https://discuss.elastic.co/t/the-cpu-useage-of-elasticsearch-three-nodes-is-not-balance/309243/2 "2022-07-09T07:08:28Z")

</div>

What is the full output of the [cluster stats API](https://www.elastic.co/guide/en/elasticsearch/reference/8.2/cluster-stats.html)?

How are you running the test? How many concurrent connections are you using? Have you verified that the connections and the load are evenly spread out across the nodes? Is there any other load on the cluster at the time you test the queries?

Is this imbalance causing any issues? As far as I can see there seems to be plenty of resources available.

---

<div class="post-metadata">

**Author:** ![zekaifeng](https://avatars.discourse-cdn.com/v4/letter/z/c6cbf5/32.png) [@zekaifeng](https://discuss.elastic.co/u/zekaifeng)\
**Post date:** [July 9, 2022, 8:06am UTC](https://discuss.elastic.co/t/the-cpu-useage-of-elasticsearch-three-nodes-is-not-balance/309243/3 "2022-07-09T08:06:27Z")

</div>

Using esrally to test, I have tried to connect directly to the node and the domain name, all of which are the same.  
The cluster stops all other business operations during query.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [July 9, 2022, 11:27am UTC](https://discuss.elastic.co/t/the-cpu-useage-of-elasticsearch-three-nodes-is-not-balance/309243/4 "2022-07-09T11:27:59Z")

</div>

What about the other questions?

Have you checked the number of Rally connections to the different nodes?

I do not see this being something to worry about.

I also wonder what you are looking to getcfrom this test, which does not seem very realistic.

---

<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:** [August 6, 2022, 11:28am UTC](https://discuss.elastic.co/t/the-cpu-useage-of-elasticsearch-three-nodes-is-not-balance/309243/5 "2022-08-06T11:28:10Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
