Removing a data center

A good way to safely and seamlessly phase in new changes to your cluster is by adding a new data center. For instance, migrating between cloud providers can be easily accomplished with Apache Cassandra, simply by creating nodes within a new, logical data center on the new provider. However, improperly disabling or shutting down nodes, still hosted on the old provider, can introduce problems with gossip (as described previously). Therefore, knowing how to properly remove an existing data center is an important part of any Cassandra DBA's repertoire.

First of all, you should identify the name of the target data center and nodes to be removed. Consider the following cluster:

nodetool statusDatacenter: ClockworkAngels

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.