# Queue Size and Threadpools

**URL:** <https://discuss.elastic.co/t/queue-size-and-threadpools/304414>\
**Category:** Elasticsearch\
**Created:** [May 11, 2022, 5:52am UTC](https://discuss.elastic.co/t/queue-size-and-threadpools/304414 "2022-05-11T05:52:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nyquillus](https://avatars.discourse-cdn.com/v4/letter/n/c77e96/32.png) [@nyquillus](https://discuss.elastic.co/u/nyquillus)\
**Post date:** [May 11, 2022, 5:52am UTC](https://discuss.elastic.co/t/queue-size-and-threadpools/304414/1 "2022-05-11T05:52:58Z")

</div>

Hello,

I was wondering something about the relation between queue sizes and threadpool sizes.  
For example, as of the most recent version I think write thread pool has 10000 default queue. Is this queue size for each allocated core? Or is it 10000 no matter the cpu allocation?

Thanks.

---

<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:** [May 11, 2022, 7:38am UTC](https://discuss.elastic.co/t/queue-size-and-threadpools/304414/2 "2022-05-11T07:38:05Z")

</div>

It's a per node size/limit and it's calculated based on the number of CPU cores - [Thread pools | Elasticsearch Guide [8.2] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/8.2/modules-threadpool.html)

---

<div class="post-metadata">

**Author:** ![nyquillus](https://avatars.discourse-cdn.com/v4/letter/n/c77e96/32.png) [@nyquillus](https://discuss.elastic.co/u/nyquillus)\
**Post date:** [May 11, 2022, 9:36am UTC](https://discuss.elastic.co/t/queue-size-and-threadpools/304414/3 "2022-05-11T09:36:23Z")

</div>

So you're saying that queue is fixed 10000 even if I allocate 1 cpu core or 10 on a single node?

---

<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:** [May 11, 2022, 10:21pm UTC](https://discuss.elastic.co/t/queue-size-and-threadpools/304414/4 "2022-05-11T22:21:51Z")

</div>

The documentation goes into that, but yes it's fixed for that queue.

---

<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:** [June 8, 2022, 10:22pm UTC](https://discuss.elastic.co/t/queue-size-and-threadpools/304414/5 "2022-06-08T22:22:37Z")

</div>

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