Priam备份自动还原 [英] Priam backup automatic restore

查看:82
本文介绍了Priam备份自动还原的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个由Priam管理的Cassandra集群,有3个节点。我使用临时磁盘存储我的Cassandra数据,因此当我启动1个节点时,Cassandra数据目录为空。

I have a Cassandra cluster managed by Priam, with 3 nodes. I use ephemeral disks to store my Cassandra data, so when I start 1 node, the Cassandra data dir is empty.

我已经正确配置了Priam,并且可以看到备份保存在Amazon S3中。假设一个节点发生故障,然后启动另一个节点。当节点再次出现时,Priam是否知道如何从S3自动还原备份? Cassandra数据目录将开始为空,因此我假设Priam将给新节点与旧节点相同的令牌,并且它将恢复数据...对吗?

I have Priam properly configured and I can see backups are saved in Amazon S3. Suppose a node goes down and then I start another node. Will Priam know how to automatic restore backup from S3 when the node comes up again? The Cassandra data dir will start empty, so I am assuming Priam would give the new node the same token as the old one and it would restore the data... Right?

推荐答案

是的。我一直在EC2上运行独立的Cassandra,在EC2上运行mesos上的小型Cassandra群集,在EC2上运行较大的DataStax Enterprise群集(使用Cassandra)。

Yes. I have been running standalone Cassandra on EC2, small Cassandra clusters on mesos on EC2, and larger DataStax Enterprise clusters (with Cassandra) on EC2.

我一直在使用Priam 3.x分支。

I have been using the Priam 3.x branch.

还原时,它将计算initial_token,更新cassandra.yaml文件,还原快照和增量备份文件,然后重新启动Cassandra。

On restore, it calculates the initial_token, updates the cassandra.yaml file, restores the snapshot and incremental backup files, and restarts Cassandra.

根据Priam / Netflix约定,如果您的Cassandra具有3节点群集,则您的节点应命名为some_thing-other-things。每个节点都应该是名为some_thing的自动缩放组的一部分。每个节点还应使用一个名为some_thing的安全组。

According to Priam/Netflix conventions, if you have a 3 node cluster with Cassandra, your nodes should be named some_thing-other-things. Each node should be a part of an Auto-scaling group called some_thing. Each node should also use a Security Group named some_thing.

创建一个3节点的开发集群,并使用可以轻松重新创建的数据测试备份和还原。不在乎。习惯于管理自动缩放组和Priam。然后,在测试集群中使用您关心的数据进行尝试。

Create a 3 node dev cluster and test your backups and restores with data that you can easily recreate, that you don't care about too much. Get used to managing the Auto-scaling groups and Priam. Then, try it on test clusters with data that you care about.

这篇关于Priam备份自动还原的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆