As per the documentation setting can be - discovery.zen.ping.unicast.hosts: ["host1", "host2"].
Both hosts host1 and host2 are in their private networks e.g. in 20.x.x.x and 30.x.x.x. These 2 networks can't talk to each other.
There are floating IPs to host1 and host2 that can talk to each other on required port(s) but they are say in 192.x.x.x. But IPs in 192.x.x.x are not mapped on local NIC. Hyperviser allows redirects to appropriate host in 20.x.x.x and 30.x.x.x.
What configuration should be done in this case so that host1,host2 can work in one elastic cluster?
Is there any way to make that happen? Or only way is to make 20.x.x.x and 30.x.x.x talk to each other on required port(s)??
If you can give any example config to explain how this can still work using 20.x.x.x,30.x.x.x and 192.x.x.x?
This sounds like it is going to cause trouble. The simplest plan is really to allow the nodes to talk to each other properly. Elasticsearch assumes each node is accessible from all other nodes at a single address, so there will be difficulties if a node has different addresses depending on the location of the observer on the network.
It's possible that setting network.bind_host to 20.x.x.x or 30.x.x.x and network.publish_host to 192.x.x.x will do what you want, but it's also possible that what you want is not feasible with such a segregated network.
Thanks for reply..
Correct me if my understanding is not right here.. But I think in the suggestion you gave, network.publish_host IP (192.x.x.x) needs to be mapped on one of the NIC cards on the host for it to work, isn't it?
How should I configure discovery.zen.ping.unicast.hosts: in this case?
I think that this one is a problem. If you configure private IPs(10.x.. and 20.x..), then they can't talk to each other.
If you configure 192.x.x.x, then elasticsearch won't start.. That was my observation from past, hence this question.. Please let me know. Thanks.
Tested.. Cluster is formed when you set -
discovery.zen.ping.unicast.hosts: 192.x.x.x [of remote host in the cluster]
Now we should be able to use 192.x.x.x for adding data..
My configs look ok?