Master eligible node won't rejoin cluster after reboot

I'd say to stick with hostnames and adjust your DNS system if they're not resolving as you need them to.

The important address is the transport publish address. Every node needs to be able to access every other node's transport publish address. You can obtain this from the nodes' logs at startup:

[2020-05-25T20:03:40,148][INFO ][o.e.t.TransportService   ] [node-0] publish_address {127.0.0.1:9300}, bound_addresses {127.0.0.1:9300}

Alternatively you can request it from a running node with GET /_nodes/_local/transport?filter_path=nodes.*.name,nodes.*.transport.publish_address (i.e. curl 'http://$HTTP_ADDRESS/_nodes/_local/transport?filter_path=nodes.*.name,nodes.*.transport.publish_address'.

1 Like