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