Shut down, change IP and rejoin the cluster?

I need to change IP of one of the nodes in a cluster from public to private. On that node, will I be able to shut down elasticsearch service, change IP in the elasticsearch.yml, and restart elasticsearch service and join the cluster without any complications?

Thanks!
B

Depends, can the other nodes reach that private IP?

Yes, all of the nodes can reach each other via private IP.

Actually, I wanted to change all of the nodes to use private IP, so I want to modify both 1) network.host: and 2)discovery.zen.ping.unicast.hosts: to use private IP's of itself and other nodes in the cluster.

Thanks for a quick response!

Successfully performed above without any prob. Thanks!

1 Like