# How to adjust thread pool settings?

**URL:** <https://discuss.elastic.co/t/how-to-adjust-thread-pool-settings/24648>\
**Category:** Elasticsearch\
**Created:** [June 30, 2015, 5:31pm UTC](https://discuss.elastic.co/t/how-to-adjust-thread-pool-settings/24648 "2015-06-30T17:31:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nathaniel](https://avatars.discourse-cdn.com/v4/letter/n/ba8739/32.png) [@nathaniel](https://discuss.elastic.co/u/nathaniel)\
**Post date:** [June 30, 2015, 5:31pm UTC](https://discuss.elastic.co/t/how-to-adjust-thread-pool-settings/24648/1 "2015-06-30T17:31:03Z")

</div>

Hi guys, so sorry I have to ask this simple question. I want to adjust the thread pool setting of the elasticsearch, but I just cannot figure out how. I have read the documents, but they just give me some command like this:

threadpool:  
index:  
type: fixed  
size: 30

I tried to input these with "curl -XPUT" command, but nothing happend. As there are hardly any examples online, i am really stuck here. Can any of you guys help me out and show me hwo to adjust the index thread size? Very much appreciated. So sorry for asking this simple question.

---

<div class="post-metadata">

**Author:** ![nathaniel](https://avatars.discourse-cdn.com/v4/letter/n/ba8739/32.png) [@nathaniel](https://discuss.elastic.co/u/nathaniel)\
**Post date:** [June 30, 2015, 5:44pm UTC](https://discuss.elastic.co/t/how-to-adjust-thread-pool-settings/24648/2 "2015-06-30T17:44:12Z")

</div>

Problem solved. Thanks for noticing the question guys.

In case someone will look into this in the future, the command is:

curl -XPUT localhost:9200/\_cluster/settings -d '  
{  
"persistent" : {  
"threadpool.index.size" : 40  
}  
}'

---

<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:** [July 1, 2015, 1:40am UTC](https://discuss.elastic.co/t/how-to-adjust-thread-pool-settings/24648/3 "2015-07-01T01:40:51Z")

</div>

Why do you want to adjust the threadpools though?  
It's not something we generally recommend.

---

<div class="post-metadata">

**Author:** ![Igor\_Zeiger](https://avatars.discourse-cdn.com/v4/letter/i/9fc29f/32.png) [@Igor\_Zeiger](https://discuss.elastic.co/u/Igor_Zeiger)\
**Post date:** [July 1, 2015, 8:29am UTC](https://discuss.elastic.co/t/how-to-adjust-thread-pool-settings/24648/4 "2015-07-01T08:29:56Z")

</div>

Hi Mark, for the threadpool, do you recommend to remove the definition of the parameters from yml file at all, so the ES will use the default parameters and dynamically manage them?

thank you

---

<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:** [July 6, 2017, 12:04am UTC](https://discuss.elastic.co/t/how-to-adjust-thread-pool-settings/24648/5 "2017-07-06T00:04:23Z")

</div>


