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, following the steps in Replacing a dead node except don't replace the node.
- If using vnodes, remove the node using the nodetool removenode command.
- If not using vnodes, removing a node from the cluster will create a hotspot. Adjust your tokens to evenly distribute the data across the remaining nodes before running the nodetool removenode command.