Our goal is to migrate cassandra Cluster to new Datacenter (physical Datacenter) and reduce nodes.
We have two Cassandra cluster running:
- DC1: 10x Cassandra Nodes
- DC2: 10x Cassandra Nodes (for DataAnalytics Mesos / Spark co-located)
Our goal is to reduce the nodes from 20 to 10 nodes and migrate 10 nodes from DC2 to new physical DC (Service Provider) and split them in two DC1new and DC2new
My plan is to use only the nodes from DC2 because the nodes are newer and have the same resources (cores, ram, disk space).
The target architecture:
- DC1New: 5x Cassandra Nodes
- DC2New: 5x Cassandra Nodes
and here the steps (my approach):
- Decommission 5 nodes one at a time in DC2.
- Move the 5 nodes to the new Service Provider.
- Add new DC DC1New with the five nodes according to the DataStax Document https://docs.datastax.com/en/dse/5.1/dse-admin/datastax_enterprise/operations/opsAddDCToCluster.html -> now we have DC1: 10 nodes; DC2: 5 nodes; DC1new: 5 nodes
- All DCs in sync.
- Decommission Datacenter DC2 -> now we have DC1: 10 nodes ; DC1new: 5 nodes
- Move the 5 nodes to the new Service Provider.
- Add new DC DC2New with the five nodes according the DataStax Document -> now we have DC1: 10 nodes; DC1new: 5 nodes; DC2new: 5 nodes
- All DC in sync.
- Decommission Datacenter DC1. now we have DC1new: 5 nodes, DC2new: 5 nodes => the goal has been achieved
Is this approach possible? Have I missed something? What else must I consider?
Please verify my approach.
Many Thanks in advance.