Elastic search is pointing only one node of server

I am using elastic 6.4.0 and it's working fine, problem is that there are 3 nodes in server in my case but my service pointing only one node always. cause of performance is going slowdown.

How to point all node of server?

Any help would be highly appreciated.

Regards,
Azhar

You can set up client with multiple ip:port. An example in Java RestHighLevelClient:

RestHighLevelClient client = new RestHighLevelClient(
        RestClient.builder(
                new HttpHost("localhost", 9200, "http"),
                new HttpHost("localhost", 9201, "http")));

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.