# Optimum number of workers

**URL:** https://discuss.elastic.co/t/optimum-number-of-workers/243324
**Category:** Logstash
**Created:** [July 31, 2020, 8:34am UTC](https://discuss.elastic.co/t/optimum-number-of-workers/243324 "2020-07-31T08:34:06Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Darshan\_Parab](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/darshan_parab/32/51098_2.png) [@Darshan\_Parab](https://discuss.elastic.co/u/Darshan_Parab)
#### Post date: [July 31, 2020, 8:34am UTC](https://discuss.elastic.co/t/optimum-number-of-workers/243324/1 "2020-07-31T08:34:06Z")

</div>

Hello guys,

I have a Kafka topic with 5 partitions. Assume I setup a 2 node Logstash cluster each with a pipeline to read from a Kafka topic, and each pipeline is assigned 4 worker nodes.

Now what would be the number of consumers that are reading from Kafka topic? Is it 2 or 8?

Thanks.  
Darshan

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [July 31, 2020, 2:22pm UTC](https://discuss.elastic.co/t/optimum-number-of-workers/243324/2 "2020-07-31T14:22:41Z")

</div>

Two. The number of worker threads does not affect the number of inputs.

---

<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: [August 28, 2020, 2:22pm UTC](https://discuss.elastic.co/t/optimum-number-of-workers/243324/3 "2020-08-28T14:22:49Z")

</div>

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