Adding a node and then decommissioning the old node

Two methods for replacing 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.

Procedure

Be sure to use the same version of DataStax Distribution of Apache Cassandra™ (DDAC) on all nodes in the cluster. See Installing DataStax Distribution of Apache Cassandra patch releases.

  1. Prepare and start the replacement node, as described in Adding nodes to an existing cluster.
  2. Confirm that the replacement node is alive:
    Path:
    installation_location/bin/
    The status should show:
    • nodetool ring: Up
    • nodetool status: UN
  3. Note the Host ID of the original node; it is used in the next step.
  4. Using the Host ID of the original node, decommission the original node from the cluster using the nodetool decommission command.
  5. Run nodetool cleanup on all the other nodes in the same datacenter.