Removing nodes from a cluster

The most obvious way to trim resources is to remove nodes from the cluster. Sometimes, nodes may need to be removed after crashing on their own. In a cloud environment built with efficient DevOps processes, it is often much faster to re-provision a troublesome node than it is to spend time resurrecting it. There are two nodetool commands used to remove nodes from a cluster: nodetool decommission and nodetool removenode. These will be discussed based on their use cases (live node versus dead node) in the following section.

Get Mastering Apache Cassandra 3.x - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.