# ES output plugin is slow in indexing even with 2 data nodes and 1 master node

**URL:** <https://discuss.elastic.co/t/es-output-plugin-is-slow-in-indexing-even-with-2-data-nodes-and-1-master-node/183561>\
**Category:** Logstash\
**Created:** [May 30, 2019, 3:08pm UTC](https://discuss.elastic.co/t/es-output-plugin-is-slow-in-indexing-even-with-2-data-nodes-and-1-master-node/183561 "2019-05-30T15:08:04Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [June 2, 2019, 6:46am UTC](https://discuss.elastic.co/t/es-output-plugin-is-slow-in-indexing-even-with-2-data-nodes-and-1-master-node/183561/21 "2019-06-02T06:46:49Z")

</div>

The internal Logstash batch size does not need to match what is used for the inputs, so having it set to a smaller value should not be a problem. I therefore do not understand why it needs to be 4000. I also find it hard to understand exactly what you have done so am not sure I will be able to assist unless you provide a much more detailed description.

---

<div class="post-metadata">

**Author:** ![romariol](https://avatars.discourse-cdn.com/v4/letter/r/97f17d/32.png) [@romariol](https://discuss.elastic.co/u/romariol)\
**Post date:** [June 4, 2019, 2:15pm UTC](https://discuss.elastic.co/t/es-output-plugin-is-slow-in-indexing-even-with-2-data-nodes-and-1-master-node/183561/22 "2019-06-04T14:15:24Z")

</div>

When it comes to the batches of 50.100, have you measured that with the monitoring API? With which settings are that? With the paging enabled? When I run my pipeline for 6 minutes the JDBC input doesn't give me more than 4k results p/s

---

<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 2, 2019, 2:15pm UTC](https://discuss.elastic.co/t/es-output-plugin-is-slow-in-indexing-even-with-2-data-nodes-and-1-master-node/183561/23 "2019-07-02T14:15:26Z")

</div>

Closed on July 2, 2019, 2:15pm UTC

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

[Previous page](https://discuss.elastic.co/t/es-output-plugin-is-slow-in-indexing-even-with-2-data-nodes-and-1-master-node/183561.md?page=1)
