Connecting to ES instance from node.js Rest API

It could be a very novice question. I have three node ES cluster.
when i connect to ES instance from node.js Rest API, i should always point to the master node? please confirm.

No, you can send requests to any node in the cluster.

In larger clusters we recommend dedicated master nodes and in general you should avoid sending requests to the master nodes in such a cluster. However if you've only 3 nodes then it doesn't matter which nodes you use.

1 Like

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