We have elasticsearch cluster with three nodes. Now all are connected each other and each have it's own public IPS too. From curl commands it's working fine. In our program which running on a different network, need to connect with cluster. It's working when we connect with anyone of the nodes. It seems to be connected node is master.
Now suppose the connected master node fails because of hardware failure or any similar issue... Then how can my program reach to the cluster? Because the master IP is mentioned in my program side.