Removing a node
Reduce the size of a data center.
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.
If the node is up, run nodetool
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.
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.
Remove the node:
- If using vnodes, remove the node using the nodetool removenode command.
- If not using vnodes, before running the nodetool removenode command, adjust your tokens to evenly distribute the data across the remaining nodes to avoid creating a hot spot. See the following in the Cassandra 1.1 documentation: