# Seamingly sporadic increases in indexing latency

**URL:** <https://discuss.elastic.co/t/seamingly-sporadic-increases-in-indexing-latency/261166>\
**Category:** Elasticsearch\
**Created:** [January 14, 2021, 6:19pm UTC](https://discuss.elastic.co/t/seamingly-sporadic-increases-in-indexing-latency/261166 "2021-01-14T18:19:51Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![rex-remind](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rex-remind/32/46637_2.png) [@rex-remind](https://discuss.elastic.co/u/rex-remind)\
**Post date:** [January 16, 2021, 5:40am UTC](https://discuss.elastic.co/t/seamingly-sporadic-increases-in-indexing-latency/261166/21 "2021-01-16T05:40:47Z")

</div>

Does it therefore sound plausible that the Flink job with just 2 parallelism and therefore 2 writers would just keep sending requests to the same 2 nodes? Does the Java SDK for bulk indexing generally keep the same connections open for writes as long as possible?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 17, 2021, 10:29pm UTC](https://discuss.elastic.co/t/seamingly-sporadic-increases-in-indexing-latency/261166/22 "2021-01-17T22:29:30Z")

</div>

> [@rex-remind](#):
>
> Does it therefore sound plausible that the Flink job with just 2 parallelism and therefore 2 writers would just keep sending requests to the same 2 nodes?

100% it does.

> [@rex-remind](#):
>
> Does the Java SDK for bulk indexing generally keep the same connections open for writes as long as possible?

Yes it does connection pooling and persistency.

---

<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 14, 2021, 10:29pm UTC](https://discuss.elastic.co/t/seamingly-sporadic-increases-in-indexing-latency/261166/23 "2021-02-14T22:29:38Z")

</div>

Closed on February 14, 2021, 10:29pm 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/seamingly-sporadic-increases-in-indexing-latency/261166.md?page=1)
