Add a node and then decommission the old node
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 HCD on all nodes in the cluster, as described in each of the installation methods.
-
Prepare and start the replacement node:
-
If using vnodes: Add nodes to vnode-enabled cluster
-
If not using vnodes: Add single-token nodes to a cluster
-
-
Confirm that the replacement node is alive:
-
If not using vnodes: Run
nodetool ringand make sure the output shows the new node asUp. -
If using vnodes: Run
nodetool statusand make sure the output shows the new node asUN(Up/Normal).
For tarball installations, you must run these commands from the
INSTALL_DIRECTORY/resources/cassandra/bindirectory. -
-
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 decommissioncommand. -
Run
nodetool cleanupon all the other nodes in the same datacenter.Failure to run
nodetool cleanupafter adding a node may result in data inconsistencies including resurrection of previously deleted data.