question

phofegger_148429 avatar image
phofegger_148429 asked Erick Ramirez commented

Migrate nodes to a new physical datacenter and update topology

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):

  1. Decommission 5 nodes one at a time in DC2.
  2. Move the 5 nodes to the new Service Provider.
  3. 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
  4. All DCs in sync.
  5. Decommission Datacenter DC2 -> now we have DC1: 10 nodes ; DC1new: 5 nodes
  6. Move the 5 nodes to the new Service Provider.
  7. Add new DC DC2New with the five nodes according the DataStax Document -> now we have DC1: 10 nodes; DC1new: 5 nodes; DC2new: 5 nodes
  8. All DC in sync.
  9. 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.

cassandra
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered Erick Ramirez commented

@phofegger_148429 Your approach as you outlined it is sound and perfect. Good luck with the relocation and keep us posted with updates. We'd love to hear how it's going. Cheers!

2 comments Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

phofegger_148429 avatar image phofegger_148429 commented ·

Thank you for the pleasant answer. I will keep you informed! Cheers!


0 Likes 0 ·
Erick Ramirez avatar image Erick Ramirez ♦♦ phofegger_148429 commented ·

Please do! :)

P.S. I've converted your post to a comment since it's not "answer". Cheers!

0 Likes 0 ·