Change the IP address of a node
Steps to change the IP address of a node.
Procedure
-
To speed up the restart process, before stopping the HCD service, run
nodetool drain. -
Replace the old IP address in the
cassandra.yamlwith the new one.-
(Optional if already set)
native_transport_address
-
If the node is a seed node, update the
- seedsparameter in theseed_providerlistcassandra.yamlfile on all nodes. -
If the
endpoint_snitchisPropertyFileSnitch, add an entry for the new IP address in the thecassandra-topology.propertiesfile on all nodes.Do NOT remove the entry for the old IP address.
-
Update the DNS and the local host IP settings.
-
Start HCD on the local host.
-
If the using the
PropertyFileSnitch, then perform a rolling restart.