# After 6:3:1 I/O Dispatcher threads are double the cores

**URL:** <https://discuss.elastic.co/t/after-61-i-o-dispatcher-threads-are-double-the-cores/138911>\
**Category:** Elasticsearch\
**Created:** [July 6, 2018, 12:31pm UTC](https://discuss.elastic.co/t/after-61-i-o-dispatcher-threads-are-double-the-cores/138911 "2018-07-06T12:31:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pokaleshrey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pokaleshrey/32/48680_2.png) [@pokaleshrey](https://discuss.elastic.co/u/pokaleshrey)\
**Post date:** [July 6, 2018, 12:31pm UTC](https://discuss.elastic.co/t/after-61-i-o-dispatcher-threads-are-double-the-cores/138911/1 "2018-07-06T12:31:59Z")

</div>

I am using BulkProcessor to index data. I am using a 8core machine.

```
BulkProcessor.builder(highLevelClient::bulkAsync, listener).setBulkActions(3000)
                .setBulkSize(new ByteSizeValue(50, ByteSizeUnit.MB))
                .setConcurrentRequests(8)
                .setFlushInterval(TimeValue.timeValueMillis(5000))
                .build();

```

When i was on 6.3.0 i could see that the total number of I/O Dispatcher threads spawned were 8, and all of them were being used.  
After migrating to 6.3.1 i have suddenly started seeing 16 threads for I/O Dispatcher, and 8 of them are being used and other 8 are idle.

I had noted this behaviour when i was on 6.1.3 and had set connectionRequestTimeout manually to -1 as suggested in [#107216](https://discuss.elastic.co/t/bulkprocessor-cannot-send-more-than-5-concurrent-requests/107216/3)

> Is this related to the connectionRequestTimeout(-1) fix in 6.3.1 ?? [#30384](https://github.com/elastic/elasticsearch/pull/30384)

---

<div class="post-metadata">

**Author:** ![pokaleshrey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pokaleshrey/32/48680_2.png) [@pokaleshrey](https://discuss.elastic.co/u/pokaleshrey)\
**Post date:** [July 6, 2018, 12:43pm UTC](https://discuss.elastic.co/t/after-61-i-o-dispatcher-threads-are-double-the-cores/138911/2 "2018-07-06T12:43:54Z")

</div>

@Sanne @pickypg @javanna: Tagging you guys as you guys have background of this issue.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 6, 2018, 4:20pm UTC](https://discuss.elastic.co/t/after-61-i-o-dispatcher-threads-are-double-the-cores/138911/3 "2018-07-06T16:20:37Z")

</div>

Please don't ping people who are not yet part of the thread.

---

<div class="post-metadata">

**Author:** ![pokaleshrey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pokaleshrey/32/48680_2.png) [@pokaleshrey](https://discuss.elastic.co/u/pokaleshrey)\
**Post date:** [July 6, 2018, 4:26pm UTC](https://discuss.elastic.co/t/after-61-i-o-dispatcher-threads-are-double-the-cores/138911/4 "2018-07-06T16:26:27Z")

</div>

Apologies if that is not the way.

I thought of giving early feedback for 6.3.1 and the people tagged are closely related to the topic and can answer more accurately.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 6, 2018, 5:31pm UTC](https://discuss.elastic.co/t/after-61-i-o-dispatcher-threads-are-double-the-cores/138911/5 "2018-07-06T17:31:48Z")

</div>

No worries. I understand. I think you could do that the other way. Just add a comment on PR

> <https://github.com/elastic/elasticsearch/pull/30384>

With a link to your thread on discuss. That way, the team who worked on that PR can decide.

My 2 cents.

---

<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 3, 2018, 5:31pm UTC](https://discuss.elastic.co/t/after-61-i-o-dispatcher-threads-are-double-the-cores/138911/6 "2018-08-03T17:31:49Z")

</div>

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