Two methods for replacing a node with a new node, such as when updating to newer hardware or performing proactive maintenance.
Steps to replace a node with a new node, such as when updating to newer hardware or performing proactive maintenance.
You must prepare and start the replacement node, integrate it into the cluster, and then decommission the old node.
Be sure to use the same version of Cassandra on all nodes in the cluster. See Installing prior releases.
Prepare and start the replacement node, as described in Adding nodes to an existing
Note: If not using vnodes, see Adding or replacing single-token nodes.
Confirm that the replacement node is alive:
The status should show:
- nodetool ring: Up
- nodetool status: UN
- Note the Host ID of the original node; it is used in the next step.
- Using the Host ID of the original node, decommission the original node from the cluster using the nodetool decommission command.
- Run nodetool cleanup on all the other nodes in the same datacenter.
This method allows you to replace a running node while avoiding streaming the data twice or running cleanup.