# High CPU on bulk update/insert

**URL:** https://discuss.elastic.co/t/high-cpu-on-bulk-update-insert/112326
**Category:** Elasticsearch
**Created:** [December 19, 2017, 1:25am UTC](https://discuss.elastic.co/t/high-cpu-on-bulk-update-insert/112326 "2017-12-19T01:25:26Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Zuhaib\_Siddique](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zuhaib_siddique/32/1896_2.png) [@Zuhaib\_Siddique](https://discuss.elastic.co/u/Zuhaib_Siddique)
#### Post date: [December 19, 2017, 1:25am UTC](https://discuss.elastic.co/t/high-cpu-on-bulk-update-insert/112326/1 "2017-12-19T01:25:26Z")

</div>

So I have attached our Hot Thread, [https://gist.github.com/zsiddique/5cf5212582f87dd1cf8c9332c553d8c9](https://gist.github.com/zsiddique/5cf5212582f87dd1cf8c9332c553d8c9), we are using an update script (Groovy right now) to handle updates. We need a script to update because we use nested data type and want to handle updates in that nested field.

We are seeing a handful of nodes have high CPU (mostly those with more primary shards) but other nodes are pretty ok (around 50%). We are indexing peak around 10k/s, around 8-9k/s normally.

We are running 12 data nodes, i3.2xl on AWS. I would expect we could push more documents per seconds.

---

<div class="post-metadata">

### Author: ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)
#### Post date: [December 19, 2017, 3:12am UTC](https://discuss.elastic.co/t/high-cpu-on-bulk-update-insert/112326/2 "2017-12-19T03:12:14Z")

</div>

see the configure about elasticsearch.yml file update theapool setting  
see the io about system. good idea use SSD..

---

<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: [January 16, 2018, 3:12am UTC](https://discuss.elastic.co/t/high-cpu-on-bulk-update-insert/112326/3 "2018-01-16T03:12:33Z")

</div>

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