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.
Hello!
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!
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.