You can customize the queue sizes to adjust the sizes of the document write queue and document search queue.

This topic describes how to configure the thread_pool.bulk.queue_size, thread_pool.write.queue_size, and thread_pool.search.queue_size settings to specify the sizes of the document write queue and document search queue.

The following examples show you how to set the sizes of both the document write queue and document search queue to 500. You can adjust the values as required.

thread_pool.bulk.queue_size: 500 (available for Elasticsearch V5.X)
thread_pool.write.queue_size: 500 (available for Elasticsearch V6.X and V7.X)
thread_pool.search.queue_size: 500