# Help figureing out the thread pool distribution

**URL:** <https://discuss.elastic.co/t/help-figureing-out-the-thread-pool-distribution/69078>\
**Category:** Elasticsearch\
**Created:** [December 14, 2016, 8:11pm UTC](https://discuss.elastic.co/t/help-figureing-out-the-thread-pool-distribution/69078 "2016-12-14T20:11:50Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![stecino](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@stecino](https://discuss.elastic.co/u/stecino)\
**Post date:** [December 14, 2016, 8:11pm UTC](https://discuss.elastic.co/t/help-figureing-out-the-thread-pool-distribution/69078/1 "2016-12-14T20:11:50Z")

</div>

Hello,

I have 15 node cluster, 3 masters, 2 queries and 10 data nodes. At the moment, I am running into some ingestion issues by this application, while other indices are ok. I have been playing with the index.queueSize and it has gone up to 4500, at which point I have no index rejections but queue remains pretty high, and only spread among two data nodes. Is there a way to tell ES to spread index.queue distribution among all 10 data nodes? Hopefully, I was able to explain it right. At this screen capture it's distributed to 4 nodes looks like

 ![](https://us1.discourse-cdn.com/elastic/original/2X/c/c0c000ceb9afd1381789589f5f1000d3020ba7ef.png)

---

<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:** [December 14, 2016, 9:34pm UTC](https://discuss.elastic.co/t/help-figureing-out-the-thread-pool-distribution/69078/2 "2016-12-14T21:34:22Z")

</div>

Which nodes have the high count, the clients?

---

<div class="post-metadata">

**Author:** ![stecino](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@stecino](https://discuss.elastic.co/u/stecino)\
**Post date:** [December 14, 2016, 9:53pm UTC](https://discuss.elastic.co/t/help-figureing-out-the-thread-pool-distribution/69078/3 "2016-12-14T21:53:29Z")

</div>

Data nodes

---

<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:** [December 14, 2016, 10:00pm UTC](https://discuss.elastic.co/t/help-figureing-out-the-thread-pool-distribution/69078/4 "2016-12-14T22:00:09Z")

</div>

Are you sending indexing requests to the client nodes or to the data nodes?

---

<div class="post-metadata">

**Author:** ![stecino](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@stecino](https://discuss.elastic.co/u/stecino)\
**Post date:** [December 14, 2016, 10:24pm UTC](https://discuss.elastic.co/t/help-figureing-out-the-thread-pool-distribution/69078/5 "2016-12-14T22:24:34Z")

</div>

In this particular case, it's java clients that are sending requests to data nodes.

---

<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:** [December 14, 2016, 11:35pm UTC](https://discuss.elastic.co/t/help-figureing-out-the-thread-pool-distribution/69078/6 "2016-12-14T23:35:04Z")

</div>

Then you probably need to check that the clients have load balancing setup correctly.

---

<div class="post-metadata">

**Author:** ![stecino](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@stecino](https://discuss.elastic.co/u/stecino)\
**Post date:** [December 15, 2016, 1:41am UTC](https://discuss.elastic.co/t/help-figureing-out-the-thread-pool-distribution/69078/7 "2016-12-15T01:41:08Z")

</div>

Is there a best practices guide in load balancing the data nodes from the client? Also, they call some groovy stuff also. I know that groovy isn't recommended by Elastic. Is there anything else other than groovy that can be recommended?

---

<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:** [January 12, 2017, 1:41am UTC](https://discuss.elastic.co/t/help-figureing-out-the-thread-pool-distribution/69078/8 "2017-01-12T01:41:17Z")

</div>

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