# Worker setting of elasticsearch output plugin

**URL:** <https://discuss.elastic.co/t/worker-setting-of-elasticsearch-output-plugin/56020>\
**Category:** Logstash\
**Created:** [July 20, 2016, 7:28pm UTC](https://discuss.elastic.co/t/worker-setting-of-elasticsearch-output-plugin/56020 "2016-07-20T19:28:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sharon.c](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sharon.c/32/16076_2.png) [@sharon.c](https://discuss.elastic.co/u/sharon.c)\
**Post date:** [July 20, 2016, 7:28pm UTC](https://discuss.elastic.co/t/worker-setting-of-elasticsearch-output-plugin/56020/1 "2016-07-20T19:28:06Z")

</div>

I have a question about the number of pipeline workers and elasticsearch output workers.

By default, logstash pipeline will initiate workers based on the number of cores of the server. If I have 6 cores in the server, then it will initiate 6 worker threads running. And I can also set the worker number using command line –w.

On the other hand, the output workers can be defined separately. For example, in Elasticsearch output plugin, there is a setting default workers =\> 1. Does it mean no matter there is already 6 workers for logstash pipeline, elasticsearch output has its own worker which is only 1 thread?

These two worker settings are related to each other or not?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [July 27, 2016, 6:32pm UTC](https://discuss.elastic.co/t/worker-setting-of-elasticsearch-output-plugin/56020/2 "2016-07-27T18:32:55Z")

</div>

I suspect the recent blog post [A History of Logstash Output Workers](https://www.elastic.co/blog/a-history-of-logstash-output-workers) will help you.

---

<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:** [July 6, 2017, 4:46am UTC](https://discuss.elastic.co/t/worker-setting-of-elasticsearch-output-plugin/56020/3 "2017-07-06T04:46:13Z")

</div>


