# Logstash CPUAffinity

**URL:** <https://discuss.elastic.co/t/logstash-cpuaffinity/123853>\
**Category:** Logstash\
**Created:** [March 14, 2018, 7:23am UTC](https://discuss.elastic.co/t/logstash-cpuaffinity/123853 "2018-03-14T07:23:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Megha\_Gautam](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@Megha\_Gautam](https://discuss.elastic.co/u/Megha_Gautam)\
**Post date:** [March 14, 2018, 7:23am UTC](https://discuss.elastic.co/t/logstash-cpuaffinity/123853/1 "2018-03-14T07:23:28Z")

</div>

I am running Logstash as a service on a 16 core machine, with following conf

```
 curl -XGET 'localhost:9600/_node/pipelines?pretty'
{
  "host" : "0.0.0.0",
  "version" : "6.1.2",
  "http_address" : "127.0.0.1:9600",
  "id" : "8311cdf3-165c-47b4-8373-37cd2007d858",
  "name" : "0.0.0.0",
  "pipelines" : {
    "main" : {
      "workers" : 16,
      "batch_size" : 100,
      "batch_delay" : 5,
      "config_reload_automatic" : false,
      "config_reload_interval" : 3000000000,
      "dead_letter_queue_enabled" : false
    }
  }

```

However the machine has a "isolated cpu" setting : **isolcpus=0-13**  
I have defined the CPUAffinity for logstash via systemctl as : **CPUAffinity=0-13**

My problem is that all the logstash pipeline worker threads are still running on core 0, but not being distributed among all the available cores. Please help.

---

<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:** [April 11, 2018, 7:23am UTC](https://discuss.elastic.co/t/logstash-cpuaffinity/123853/2 "2018-04-11T07:23:41Z")

</div>

Closed on April 11, 2018, 7:23am UTC

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