Backup and Restore Cassandra On Kubernetes

8/6/2018

We have a Cassandra Cluster on my kubernetes cluster. How we are planning migrate the current cluster from GCP to AWS. How can I restore my Cassandra Keyspaces and Snapshots. From the following link, I got a idea for took backup: https://8kmiles.com/blog/cassandra-backup-and-restore-methods/

But the docs shows only snapshot backup case. Nothing says about 'Keyspaces'. How can I backup my Keyspace and Snapshot.? How can I retore the same. Our Cassandra running on Kubernetes both GCP and AWS.

-- Steven Lung
cassandra
kubernetes

1 Answer

8/6/2018

I think you have two options here:

  1. a backup/restore approach as you stated. Be aware that nodetool snapshot is copying your data and exports the schema of the table in schema.cql file. You will need to run a describe keyspace command on the existing cluster and run it on the new cluster in order to create the new keyspace, since nodetool is not doing this. This answer has some details regarding this matter.
  2. Add a new DC and decommission the old one, after the data is migrated. Here you must have the same cassandra version.
-- Horia
Source: StackOverflow