Apache Cassandra™ 2.0

Removing a node

Reduce the size of a data center.

Use these instructions when you want to remove nodes to reduce the size of your cluster, not for replacing a dead node.
Attention: If you are not using virtual nodes (vnodes), you must rebalance the cluster.

Procedure

  1. Run a repair on each keyspace:
    $ nodetool repair -h ip_address_of_node keyspace_name

    The nodetool repair command repairs inconsistencies across all of the replicas for a given range of data.

  2. If the node is up, run nodetool decommission.

    This assigns the ranges that the node was responsible for to other nodes and replicates the data appropriately.

    Use nodetool netstats to monitor the progress.

  3. If the node is down, confirm that the node is dead using nodetool status before removing the node:

    The nodetool command shows a down status for the dead node (DN):

    If the node is not dead, perform step 2.

  4. Remove the node:
Show/hide