Increasing queue size in Elasticsearch?

Ive looked at my elasticsearch logs and I came across an error

rejected execution (queue capacity 1000) on org.elasticsearch.search.action.SearchServiceTransportAction$23@6d32fa18

After searching for the error, the general and consensus was to increase the size of the queue discussed here - https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-threadpool.html

The question I have is how to actually do this? Is there a configuration file that I am missing?

+4
source share
2 answers

To change the queue size, you can add it to the configuration file for each node as follows:

threadpool.search.queue_size: <new queue size>.

However, this will also require a restart of the cluster.

Elasticsearch 2.x cluster-setting api, , Elasticsearch 5.x .

curl -XPUT  _cluster/settings -d '{
    "persistent" : {
        "threadpool.search.queue_size" : <new_size>
    }
}'

:

curl <server>/_cat/thread_pool?v&h=search.queueSize

+8

Elasticsearch 5, API threadpool. node. . this.

node - . , API .

threadpool, thread_pool.search.queue_size : <New size> elasticsearch.yml node, elasticsearch.

+5

Source: https://habr.com/ru/post/1611486/


All Articles