I have an Elasticsearch 6.6 cluster with two nodes running on the first server using
I want to add another node running on a separate server to get more physical resources.
I configured everything the same as the first two nodes using
But when I started the node I got timeout error after initial discovery.
The reason for the timeout is that the first two nodes bound IP addresses are the docker's addresses, which the new node obviously can't route to them (although the hosts set for discovery is the outer address of the host)
What is the solution for setting up docker Elasticsearch nodes on separated server then?
The only quick and dirty solution I found is using preroute iptables rule to masquerade the inner subnets between the servers..