# Logstash multi pipeline optimal configuration

**URL:** https://discuss.elastic.co/t/logstash-multi-pipeline-optimal-configuration/260832
**Category:** Logstash
**Created:** [January 12, 2021, 1:27pm UTC](https://discuss.elastic.co/t/logstash-multi-pipeline-optimal-configuration/260832 "2021-01-12T13:27:57Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Dimitrios\_Dellios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dimitrios_dellios/32/46835_2.png) [@Dimitrios\_Dellios](https://discuss.elastic.co/u/Dimitrios_Dellios)
#### Post date: [January 12, 2021, 1:27pm UTC](https://discuss.elastic.co/t/logstash-multi-pipeline-optimal-configuration/260832/1 "2021-01-12T13:27:57Z")

</div>

Greetings!

I am currently running Logstash 7.9.2, on a production node, with Logstash being the only one of the stack installed there. My node has 8 cores. I am running a multiple pipeline configuration, with some pipelines being more demanding in terms of processing events and the amount of events they handle.

I have a few questions on the topic:

1. Should I configure specific pipeline.workers and pipeline.batch.size to each one in the pipelines.yml file or just specify a number of workers and batch size in the logstash.yml file? I am pretty sure the first option is the right one, but any more help would be appreciated
2. Is there a rule regarding to how many workers should be assigned to a pipeline, based on the events/second? Because I could not find anything....☹
3. If I do not specify a worker and batch size on some pipelines, will the get the default values I have specified in the logstash.yml, or will that setting override my configuration in the pipelines.yml file?

Thanks in advance,  
Dimitris

---

<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: [February 9, 2021, 1:28pm UTC](https://discuss.elastic.co/t/logstash-multi-pipeline-optimal-configuration/260832/2 "2021-02-09T13:28:33Z")

</div>

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