# Increase Threadpool size of each node

**URL:** <https://discuss.elastic.co/t/increase-threadpool-size-of-each-node/134021>\
**Category:** Elasticsearch\
**Created:** [May 31, 2018, 10:28am UTC](https://discuss.elastic.co/t/increase-threadpool-size-of-each-node/134021 "2018-05-31T10:28:59Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![krishan](https://avatars.discourse-cdn.com/v4/letter/k/e36b37/32.png) [@krishan](https://discuss.elastic.co/u/krishan)\
**Post date:** [May 31, 2018, 10:29am UTC](https://discuss.elastic.co/t/increase-threadpool-size-of-each-node/134021/1 "2018-05-31T10:29:00Z")

</div>

Is it possible to increase Threadpool sizes of nodes from the default value.If yes,how can I do it ?

---

<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 31, 2018, 10:31am UTC](https://discuss.elastic.co/t/increase-threadpool-size-of-each-node/134021/2 "2018-05-31T10:31:22Z")

</div>

Why are you looking to do this?

---

<div class="post-metadata">

**Author:** ![krishan](https://avatars.discourse-cdn.com/v4/letter/k/e36b37/32.png) [@krishan](https://discuss.elastic.co/u/krishan)\
**Post date:** [June 25, 2018, 4:08am UTC](https://discuss.elastic.co/t/increase-threadpool-size-of-each-node/134021/3 "2018-06-25T04:08:12Z")

</div>

I want to experiment with this value so that I can find the optimum values for pool sizes.Sometimes I have a sudden increase in the elastic throughput and its thread are not able to serve the load and the request goes to queue which ultimately increases my application request time even when the the CPU usage is not significant.I know that it not completely related to the CPU rather the number of cores my machine has,but still as I said I want to experiment with this value.

---

<div class="post-metadata">

**Author:** ![sharju](https://avatars.discourse-cdn.com/v4/letter/s/b9e5f3/32.png) [@sharju](https://discuss.elastic.co/u/sharju)\
**Post date:** [June 27, 2018, 1:00pm UTC](https://discuss.elastic.co/t/increase-threadpool-size-of-each-node/134021/4 "2018-06-27T13:00:25Z")

</div>

It's all in the reference:  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-threadpool.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-threadpool.html)

Check your current settings:

:9200/\_nodes/thread\_pool?pretty

You should find your current thread pool settings:

```
...
"thread_pool" : {
        "watcher" : {
          "type" : "fixed",
          "min" : 25,
          "max" : 25,
          "queue_size" : 1000
        },
        "force_merge" : {
          "type" : "fixed",
          "min" : 1,
          "max" : 1,
          "queue_size" : -1
        },
...

```

Add your changes to elasticsearch.yml:

```
# ---------------------------------- Various -----------------------------------
#
# Require explicit names when deleting indices:
#
#action.destructive_requires_name: true

thread_pool.watcher.queue_size: 2000

```

Restart node and experiment.

---

<div class="post-metadata">

**Author:** ![krishan](https://avatars.discourse-cdn.com/v4/letter/k/e36b37/32.png) [@krishan](https://discuss.elastic.co/u/krishan)\
**Post date:** [July 18, 2018, 6:05am UTC](https://discuss.elastic.co/t/increase-threadpool-size-of-each-node/134021/5 "2018-07-18T06:05:14Z")

</div>

Can I change this value on the fly without restarting the node just like we change the index settings ?

---

<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 18, 2018, 6:06am UTC](https://discuss.elastic.co/t/increase-threadpool-size-of-each-node/134021/6 "2018-07-18T06:06:00Z")

</div>

No you cannot.

---

<div class="post-metadata">

**Author:** ![krishan](https://avatars.discourse-cdn.com/v4/letter/k/e36b37/32.png) [@krishan](https://discuss.elastic.co/u/krishan)\
**Post date:** [July 18, 2018, 6:08am UTC](https://discuss.elastic.co/t/increase-threadpool-size-of-each-node/134021/7 "2018-07-18T06:08:05Z")

</div>

ok.Thanks.

---

<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 15, 2018, 6:08am UTC](https://discuss.elastic.co/t/increase-threadpool-size-of-each-node/134021/8 "2018-08-15T06:08:08Z")

</div>

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