Change the IP address of a node
-
Edit the
cassandra.yamlfile. -
Replace the old IP address with the new one in the following parameters:
-
(Optional if already set)
rpc_address
-
If the node is a seed node, update the
-seedsparameter in theseed_providerlist on all nodes. -
If the
endpoint_snitchis PropertyFileSnitch, add a new entry for the new IP address incassandra-topology.propertieson all nodes.Don’t remove the entry for the old IP address in
cassandra-topology.properties. -
Update the DNS and the local host IP settings.
-
Start HCD on the local host.
-
If using the PropertyFileSnitch, perform a rolling restart of all nodes in the cluster.