# How to inprove the cpu usage?

**URL:** <https://discuss.elastic.co/t/how-to-inprove-the-cpu-usage/233277>\
**Category:** Elasticsearch\
**Created:** [May 19, 2020, 8:39am UTC](https://discuss.elastic.co/t/how-to-inprove-the-cpu-usage/233277 "2020-05-19T08:39:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ted\_ye](https://avatars.discourse-cdn.com/v4/letter/t/958977/32.png) [@ted\_ye](https://discuss.elastic.co/u/ted_ye)\
**Post date:** [May 19, 2020, 8:39am UTC](https://discuss.elastic.co/t/how-to-inprove-the-cpu-usage/233277/1 "2020-05-19T08:39:01Z")

</div>

hello,  
I have a server with 40 cpu cores and 126GB memory, I installed three elasticsearch data nodes on this server, but I found that the total cpu usage is very low. So how to inprove the cpu usage of elasticsearch, can I bound cpu cores to each data node?  
thanks.

---

<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:** [May 19, 2020, 8:56am UTC](https://discuss.elastic.co/t/how-to-inprove-the-cpu-usage/233277/2 "2020-05-19T08:56:19Z")

</div>

What type of workload do you have? Elasticsearch is often limited by disk I/O rather than CPU. Have you verified that you storage is not a bottleneck?

---

<div class="post-metadata">

**Author:** ![ted\_ye](https://avatars.discourse-cdn.com/v4/letter/t/958977/32.png) [@ted\_ye](https://discuss.elastic.co/u/ted_ye)\
**Post date:** [May 19, 2020, 9:07am UTC](https://discuss.elastic.co/t/how-to-inprove-the-cpu-usage/233277/3 "2020-05-19T09:07:32Z")

</div>

I have monitored the spu memory and disk i/o on grafana, I saw the i/o is also not high, so I think the disk i/o is not the bottleneck.

---

<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:** [May 19, 2020, 9:22am UTC](https://discuss.elastic.co/t/how-to-inprove-the-cpu-usage/233277/4 "2020-05-19T09:22:28Z")

</div>

Are you having performance problems? What is the use case and workload?

---

<div class="post-metadata">

**Author:** ![ted\_ye](https://avatars.discourse-cdn.com/v4/letter/t/958977/32.png) [@ted\_ye](https://discuss.elastic.co/u/ted_ye)\
**Post date:** [May 19, 2020, 10:53am UTC](https://discuss.elastic.co/t/how-to-inprove-the-cpu-usage/233277/5 "2020-05-19T10:53:44Z")

</div>

I use elasticsearch as log system. my elasticsearch cluster used to installed on virtual server, each server install one node. Every day nearly 0.5 billion logs will put in to es, I found the virtual server's cpu usage was very high. But on the phyisical server with 3 data nodes, the cpu usage is very low ,40 cpu cores usage is nearly 20% , I doubt the machine resources is not fully used.

---

<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:** [May 19, 2020, 11:10am UTC](https://discuss.elastic.co/t/how-to-inprove-the-cpu-usage/233277/6 "2020-05-19T11:10:01Z")

</div>

If you are not having performance problems maybe the current resource usage is all that is needed.

---

<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:** [June 16, 2020, 11:10am UTC](https://discuss.elastic.co/t/how-to-inprove-the-cpu-usage/233277/7 "2020-06-16T11:10:17Z")

</div>

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