简体   繁体   English

在 Kubernetes 上备份和恢复 Cassandra

[英]Backup and Restore Cassandra On Kubernetes

We have a Cassandra Cluster on my kubernetes cluster.我们的 kubernetes 集群上有一个 Cassandra 集群。 How we are planning migrate the current cluster from GCP to AWS.我们计划如何将当前集群从 GCP 迁移到 AWS。 How can I restore my Cassandra Keyspaces and Snapshots.如何恢复我的 Cassandra 密钥空间和快照。 From the following link, I got a idea for took backup: https://8kmiles.com/blog/cassandra-backup-and-restore-methods/从以下链接,我得到了备份的想法: 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.?如何备份我的 Keyspace 和 Snapshot。? How can I retore the same.我怎么能恢复相同。 Our Cassandra running on Kubernetes both GCP and AWS.我们的 Cassandra 在 GCP 和 AWS 的 Kubernetes 上运行。

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.请注意, nodetool snapshot正在复制您的数据并在schema.cql文件中导出表的架构。 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.您需要在现有集群上运行describe keyspace命令并在新集群上运行它以创建新的密钥空间,因为 nodetool 没有这样做。 This answer has some details regarding this matter.这个答案有一些关于这个问题的细节。
  2. Add a new DC and decommission the old one, after the data is migrated.迁移数据后,添加新 DC停用DC Here you must have the same cassandra version.在这里,您必须具有相同的 cassandra 版本。

使用 ETL(例如 Spark 作业)将数据从一个云传输到另一个云

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM