# Thread Pool max Size and Number of Processor

**URL:** <https://discuss.elastic.co/t/thread-pool-max-size-and-number-of-processor/271971>\
**Category:** Elasticsearch\
**Created:** [May 3, 2021, 11:34am UTC](https://discuss.elastic.co/t/thread-pool-max-size-and-number-of-processor/271971 "2021-05-03T11:34:55Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![mani1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mani1/32/91044_2.png) [@mani1](https://discuss.elastic.co/u/mani1)\
**Post date:** [May 3, 2021, 11:34am UTC](https://discuss.elastic.co/t/thread-pool-max-size-and-number-of-processor/271971/1 "2021-05-03T11:34:55Z")

</div>

Hi, In latest elasticSearch Version 7 series, How to decide the maximum Search Thread Pool Size, will it depends on number of vCPUs , and decided by the formula (vCPU\*3/2)+1 OR the max size still is based on 32 vCPUs as was earlier .Thanx

---

<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 3, 2021, 11:09pm UTC](https://discuss.elastic.co/t/thread-pool-max-size-and-number-of-processor/271971/2 "2021-05-03T23:09:45Z")

</div>

Welcome to our community! 😃

It's based on the number of processors allocated to the node, see [Thread pools | Elasticsearch Guide [7.12] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.12/modules-threadpool.html) and [Thread pools | Elasticsearch Guide [7.12] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.12/modules-threadpool.html#node.processors)

---

<div class="post-metadata">

**Author:** ![mani1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mani1/32/91044_2.png) [@mani1](https://discuss.elastic.co/u/mani1)\
**Post date:** [May 4, 2021, 4:39am UTC](https://discuss.elastic.co/t/thread-pool-max-size-and-number-of-processor/271971/3 "2021-05-04T04:39:37Z")

</div>

Thanx for reply. I had also gone through the Thread Pool Guide but somewhere I have read that there is max limit of 32 Thread irrespective of allocated vCPUs (even more than 32). So now it's confirmed that , if I increase the vCPUs to cater my heavier load , Thred Pool size will be more. For Ex, If I assign 48 vCPUs, then effecctive search Thread Pool size will be 48\*3/2 + 1 = 73  
Pl acknowledge

---

<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 4, 2021, 5:18am UTC](https://discuss.elastic.co/t/thread-pool-max-size-and-number-of-processor/271971/4 "2021-05-04T05:18:17Z")

</div>

For the search thread pool, yes.

---

<div class="post-metadata">

**Author:** ![mani1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mani1/32/91044_2.png) [@mani1](https://discuss.elastic.co/u/mani1)\
**Post date:** [May 4, 2021, 5:31am UTC](https://discuss.elastic.co/t/thread-pool-max-size-and-number-of-processor/271971/5 "2021-05-04T05:31:25Z")

</div>

Thanks

---

<div class="post-metadata">

**Author:** ![kuldeep\_gupta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kuldeep_gupta/32/88162_2.png) [@kuldeep\_gupta](https://discuss.elastic.co/u/kuldeep_gupta)\
**Post date:** [May 4, 2021, 6:44am UTC](https://discuss.elastic.co/t/thread-pool-max-size-and-number-of-processor/271971/6 "2021-05-04T06:44:18Z")

</div>

But there has to be limit for maximum number of vCpu allocation for a node because vertical scaling is not supported by elastic search...what is limit for vCpu allocation ?

---

<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 4, 2021, 7:07am UTC](https://discuss.elastic.co/t/thread-pool-max-size-and-number-of-processor/271971/7 "2021-05-04T07:07:36Z")

</div>

Welcome to our community! 😃

> [@kuldeep\_gupta](#):
>
> because vertical scaling is not supported by Elasticsearch

Why do you say that?

---

<div class="post-metadata">

**Author:** ![kuldeep\_gupta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kuldeep_gupta/32/88162_2.png) [@kuldeep\_gupta](https://discuss.elastic.co/u/kuldeep_gupta)\
**Post date:** [May 4, 2021, 7:15am UTC](https://discuss.elastic.co/t/thread-pool-max-size-and-number-of-processor/271971/8 "2021-05-04T07:15:42Z")

</div>

Once i had a meeting with elasticsearch team In that meeting they mentioned that vertical scaling is possible upto some limit (due to heap memory and garbage collection ), beyond that we need to do horizontal scaling,So i want to know about the limit of that vertical scaling . is there any benchmark for that?

---

<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 4, 2021, 7:17am UTC](https://discuss.elastic.co/t/thread-pool-max-size-and-number-of-processor/271971/9 "2021-05-04T07:17:35Z")

</div>

I think you should create a separate topic on that question 🙂

---

<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:** [May 4, 2021, 7:23am UTC](https://discuss.elastic.co/t/thread-pool-max-size-and-number-of-processor/271971/10 "2021-05-04T07:23:45Z")

</div>

What is your use case? Have you identified what is limiting performance for you? Elasticsearch is often more limited by storage performance that CPU or memory. The exception to this is e.g. if all your data is cached in the operating system page cache and is rarely changed. How much data do you have? What is the hardware specified fixation of the node/cluster? Is it a query heavy load?

---

<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 4, 2021, 7:25am UTC](https://discuss.elastic.co/t/thread-pool-max-size-and-number-of-processor/271971/11 "2021-05-04T07:25:03Z")

</div>

It'd be better to move any further discussions into a new thread, to save taking this off topic 🙂

---

<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 1, 2021, 7:25am UTC](https://discuss.elastic.co/t/thread-pool-max-size-and-number-of-processor/271971/12 "2021-06-01T07:25:34Z")

</div>

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