# ElasticSearch Nodes go HIGH cpu

**URL:** <https://discuss.elastic.co/t/elasticsearch-nodes-go-high-cpu/91417>\
**Category:** Elasticsearch\
**Created:** [June 30, 2017, 11:51am UTC](https://discuss.elastic.co/t/elasticsearch-nodes-go-high-cpu/91417 "2017-06-30T11:51:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kscarr73](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kscarr73/32/19670_2.png) [@kscarr73](https://discuss.elastic.co/u/kscarr73)\
**Post date:** [June 30, 2017, 11:51am UTC](https://discuss.elastic.co/t/elasticsearch-nodes-go-high-cpu/91417/1 "2017-06-30T11:51:05Z")

</div>

We are having a really strange problem with our ElasticSearch cluster. Every couple of days or so, a node in our 4 node cluster goes high cpu, with a ton of reads.

We have checked the tasks page, and it doesn't appear that there is too much going on, maybe 10-15 tasks total for the node.

This switches on nodes, so sometimes it may be 2, and sometimes it may be 4 that goes high cpu.

We are using the following architecture:

- 12 core / 24 thread cpu
- 128Gb RAM
- 7 TB Drives RAID-0

Elastic Search 2.3.1

3 instances on each node.

1 - Master  
2 - Data1  
3 - Data2

We have about 10 billion records spread across 3000 indices. Each with 3 shards and 1 replica. There are several dashboards that were created around 1.5 years ago that run constantly. This problem started around 1 month ago, and seems to be getting worse.

How would we go about diagnosing what is happening during these high CPU cycles.

---

<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 3, 2017, 9:37am UTC](https://discuss.elastic.co/t/elasticsearch-nodes-go-high-cpu/91417/2 "2017-07-03T09:37:06Z")

</div>

Use the [hot threads API](https://www.elastic.co/guide/en/elasticsearch/reference/2.3/cluster-nodes-hot-threads.html) to get some insights into what is going on when are experiencing these periods of high CPU usage.

---

<div class="post-metadata">

**Author:** ![kscarr73](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kscarr73/32/19670_2.png) [@kscarr73](https://discuss.elastic.co/u/kscarr73)\
**Post date:** [July 5, 2017, 8:25pm UTC](https://discuss.elastic.co/t/elasticsearch-nodes-go-high-cpu/91417/3 "2017-07-05T20:25:19Z")

</div>

We have been using tasks and hot\_threads, and we do not see much as far as hot threads, other than the management tasks, during this period.

It seems we are running into an issue where the data1 and data2 instances are both trying to get IO, and getting blocked at the IO Wait.

We are working on getting each instance on its own RAID array, currently both instances go through the same RAID array.

---

<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 2, 2017, 8:25pm UTC](https://discuss.elastic.co/t/elasticsearch-nodes-go-high-cpu/91417/4 "2017-08-02T20:25:24Z")

</div>

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