简体   繁体   English

Elassendra 备份解决方案

[英]Elassendra backup Solution

We have three node cluster for Cassandra/Elassandra and I needs to setup backup for this.我们有 Cassandra/Elassandra 的三节点集群,我需要为此设置备份。 I used "nodetool snapshot" command for taking backup, but as we are using elasticserach so do I need to take separate backups of Indices or taking backup from "nodetool snapshot" is enough for this.我使用“nodetool 快照”命令进行备份,但由于我们使用的是 elasticserach,所以我需要单独备份索引或从“nodetool 快照”备份就足够了。

if separate backup is required for indices then can you pls suggest me how to take backup/restore because there is no proper documentation for taking elassendra backup/restore如果索引需要单独备份,那么您能否建议我如何进行备份/恢复,因为没有适当的文档来进行 elassendra 备份/恢复

Thanks谢谢

Since Elassandra = Elasticsearch + Cassandra , So you need backup from Cassandra on the same time of backup from Elasticsearch.由于Elassandra = Elasticsearch + Cassandra ,所以您需要从 Cassandra 备份同时从 Z45E23A1694843AAFD95CE8 备份。

By design, Elassandra synchronously updates Elasticsearch indices on the Cassandra write path.根据设计,Elassandra 会同步更新 Cassandra 写入路径上的 Elasticsearch 索引。 Therefore, Elassandra can backup data by taking a snapshot of Cassandra SSTables and Elasticsearch Lucene files on the same time on each node, as follows:因此,Elassandra 可以通过在每个节点上同时对 Cassandra SSTables 和 Elasticsearch Lucene 文件进行快照来备份数据,如下所示:

For Cassandra SSTables use:对于 Cassandra SSTables 使用:

nodetool snapshot --tag <snapshot_name> <keyspace_name>

And for index files use copy them by:对于索引文件,请通过以下方式复制它们:

cp -al $CASSANDRA_DATA/elasticsearch.data/<cluster_name>/nodes/0/indices/<index_name>/0/index/(_*|segment*)      $CASSANDRA_DATA/elasticsearch.data/snapshots/<index_name>/<snapshot_name>/

However there is a documentation on Elassandra to Backup and Restore .但是有一个关于 Elassandra to Backup and Restore的文档。

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

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