How to limit the number of threads in your elastics search

I am new to Elastic Search. When I create a Client instance for Elastic Search using java, it does not create threads (about 16 threads). How can I set a limit on the number of threads created by the Client? What are the pros and cons of changing the default settings?
I got some information from this.

+4
source share
1 answer

As you can see in the sources, the TransportClient that you create to connect to the cluster uses ThreadPool .

So, it seems that these settings also affect the client side.

This post may give you some insight into how the thread pool can affect your applications: http://jontai.me/blog/2013/06/esrejectedexecutionexception-rejected-execution-of-messagechannelhandler-requesthandler/

+3
source

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


All Articles