Increase Threadpool size of each node


#1

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


(Mark Walkom) #2

Why are you looking to do this?


#3

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.


#4

It's all in the reference:
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.


#5

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


(Mark Walkom) #6

No you cannot.


#7

ok.Thanks.


(system) #8

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