I am using the Java TransportClient to connect to ElasticSearch.
The code is just like the following demo:
Settings settings;
TransportClient transportClient = new TransportClient(settings);
transportClient.addTransportAddress(
new InetSocketTransportAddress("xxxx", "9300")));
My questions:
- I just open one transport client, the connection numbers of the ES server is increased by 42.
Why just a transport consumes 42 tcp connections? - How many tcp connections can the ES server hold? If I open many transport clients, for example 1000 transport clients, the tcp connection numbers will increase to a large number, can the ES server hold such many tcp connections?
- Is there any way to configure the max number of tcp connections for ES server?
Thank you!