Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

phofegger_148429 avatar image
phofegger_148429 asked ·

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 characters needed characters left characters exceeded

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 ·

@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 characters needed characters left characters exceeded

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

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


0 Likes 0 · ·

Please do! :)

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

0 Likes 0 · ·