Manage the connection pool size in Java client


I am currently utilizing the ElasticsearchClient library in java for connecting to Elasticsearch. As per the docs the library manages its own connection pool and its not required to create a separate client with each thread. However, I wanted to manage the connection pool size like the max/min number of connections that the client creates or so. Was unable to find any doc specific to this.

Apologies if I missed something obvious here.


From Elastic Search to Elasticsearch

Added language-clients

Hi, any insights on this? I'm still struggling with the issue for its necessary to have an idea of the connection pool. Thanks!

The connection is managed by the low level rest client, here is where you can find its documentation; for example here it's explained how to configure threads.
Hope it helps!