# What would make cpu usage differs too excessively between nodes?

**URL:** <https://discuss.elastic.co/t/what-would-make-cpu-usage-differs-too-excessively-between-nodes/238405>\
**Category:** Elasticsearch\
**Created:** [June 24, 2020, 8:45am UTC](https://discuss.elastic.co/t/what-would-make-cpu-usage-differs-too-excessively-between-nodes/238405 "2020-06-24T08:45:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Morriaty](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@Morriaty](https://discuss.elastic.co/u/Morriaty)\
**Post date:** [June 24, 2020, 8:45am UTC](https://discuss.elastic.co/t/what-would-make-cpu-usage-differs-too-excessively-between-nodes/238405/1 "2020-06-24T08:45:54Z")

</div>

We have a cluster of three nodes with same hardwares. We have made some http benchmark test on:

- one index of 4 million docs, 5 shards, 1 replica
- use golang client `gopkg.in/olivere/elastic.v6` connect to all three nodes. The coordinate node should not be focused on one node
- es version: 6.5.4
- this is a pure benchmark test environment, no other application processes and no other es query / index requests

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/4/f4021ef1fbafb40e6d741da4d932b5df8f41fb24.png)

---

<div class="post-metadata">

**Author:** ![Morriaty](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@Morriaty](https://discuss.elastic.co/u/Morriaty)\
**Post date:** [June 24, 2020, 8:49am UTC](https://discuss.elastic.co/t/what-would-make-cpu-usage-differs-too-excessively-between-nodes/238405/2 "2020-06-24T08:49:24Z")

</div>

And this is out output of hot thread

> <https://gist.github.com/Morriaty-The-Murderer/8c0a075f328ffcb640a0f91707975ff2>

---

<div class="post-metadata">

**Author:** ![wangqinghuan](https://avatars.discourse-cdn.com/v4/letter/w/d26b3c/32.png) [@wangqinghuan](https://discuss.elastic.co/u/wangqinghuan)\
**Post date:** [June 24, 2020, 9:58am UTC](https://discuss.elastic.co/t/what-would-make-cpu-usage-differs-too-excessively-between-nodes/238405/3 "2020-06-24T09:58:19Z")

</div>

Does your data distribute evenly across three nodes?

---

<div class="post-metadata">

**Author:** ![Morriaty](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@Morriaty](https://discuss.elastic.co/u/Morriaty)\
**Post date:** [June 24, 2020, 10:12am UTC](https://discuss.elastic.co/t/what-would-make-cpu-usage-differs-too-excessively-between-nodes/238405/5 "2020-06-24T10:12:36Z")

</div>

The shards distribution seems to be evenly.

```auto
index shard prirep state docs store node
quick_match_v1 3 p STARTED 847408 570.7mb matchtest_es-node-172.16.0.223
quick_match_v1 3 r STARTED 847408 570.7mb matchtest_es-node-172.16.0.222
quick_match_v1 2 r STARTED 847348 559.9mb matchtest_es-node-172.16.0.223
quick_match_v1 2 p STARTED 847348 559.9mb matchtest_es-node-172.16.0.221
quick_match_v1 4 p STARTED 846896 568.2mb matchtest_es-node-172.16.0.222
quick_match_v1 4 r STARTED 846896 546.8mb matchtest_es-node-172.16.0.221
quick_match_v1 1 p STARTED 845880 587.8mb matchtest_es-node-172.16.0.223
quick_match_v1 1 r STARTED 845880 575.7mb matchtest_es-node-172.16.0.221
quick_match_v1 0 r STARTED 848310 570.9mb matchtest_es-node-172.16.0.223
quick_match_v1 0 p STARTED 848310 570.9mb matchtest_es-node-172.16.0.222

```

---

<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 22, 2020, 10:24am UTC](https://discuss.elastic.co/t/what-would-make-cpu-usage-differs-too-excessively-between-nodes/238405/6 "2020-07-22T10:24:33Z")

</div>

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