# Allocation of cpu cores for logstash instances in a 64 vCPU cores server

**URL:** <https://discuss.elastic.co/t/allocation-of-cpu-cores-for-logstash-instances-in-a-64-vcpu-cores-server/161041>\
**Category:** Logstash\
**Created:** [December 16, 2018, 5:38pm UTC](https://discuss.elastic.co/t/allocation-of-cpu-cores-for-logstash-instances-in-a-64-vcpu-cores-server/161041 "2018-12-16T17:38:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mruthyu](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@mruthyu](https://discuss.elastic.co/u/mruthyu)\
**Post date:** [December 16, 2018, 5:38pm UTC](https://discuss.elastic.co/t/allocation-of-cpu-cores-for-logstash-instances-in-a-64-vcpu-cores-server/161041/1 "2018-12-16T17:38:36Z")

</div>

Would like to know the proper worker thread configuration for a logstash server having 64 vCPU cores and 256GB ram. There are 21 logstash instances running with different configuration files. In the documentation I see that "Number of the host’s CPU cores" is the default value for pipeline.workers field. Would like to know in a situation where multiple logstash instances are running how the vCPU cores will get allocated and also how they are managed.

Looking for a optimal configuration for logstash to make sure the vCPU cores are used optimally without creating the issue like high CPU usage alerts.

---

<div class="post-metadata">

**Author:** ![mruthyu](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@mruthyu](https://discuss.elastic.co/u/mruthyu)\
**Post date:** [December 17, 2018, 3:49am UTC](https://discuss.elastic.co/t/allocation-of-cpu-cores-for-logstash-instances-in-a-64-vcpu-cores-server/161041/2 "2018-12-17T03:49:08Z")

</div>

Is it possible to set the number of worker threads for each processes individually similar to the heap memory settings in the jvm.options file?

---

<div class="post-metadata">

**Author:** ![mruthyu](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@mruthyu](https://discuss.elastic.co/u/mruthyu)\
**Post date:** [December 17, 2018, 11:50am UTC](https://discuss.elastic.co/t/allocation-of-cpu-cores-for-logstash-instances-in-a-64-vcpu-cores-server/161041/3 "2018-12-17T11:50:17Z")

</div>

Let me know if I have to provide any further information for this query.

---

<div class="post-metadata">

**Author:** ![mruthyu](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@mruthyu](https://discuss.elastic.co/u/mruthyu)\
**Post date:** [December 19, 2018, 3:55pm UTC](https://discuss.elastic.co/t/allocation-of-cpu-cores-for-logstash-instances-in-a-64-vcpu-cores-server/161041/4 "2018-12-19T15:55:14Z")

</div>

Can you please share you views on the requested query?

---

<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, 2019, 3:55pm UTC](https://discuss.elastic.co/t/allocation-of-cpu-cores-for-logstash-instances-in-a-64-vcpu-cores-server/161041/5 "2019-01-16T15:55:15Z")

</div>

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