Cassandra复制系统 - 它如何工作 [英] Cassandra replication system - how it works

查看:263
本文介绍了Cassandra复制系统 - 它如何工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  1. Cassandra是否仅在写过程中复制(具有选定的一致性级别)?如果我想在每个节点中的对称数据,是否有缺席节点的自动复制选项?


  2. 如果我将新节点插入集群,则不会有自动复制。如何从其他节点同步新数据?


  3. 如果我想要复制像多主机(2个节点) MySQL,什么是正确的方式来设置和管理Cassandra(3个节点)?



解决方案

Cassandra在写入时复制,它还使用提示切换阅读修复反熵以减少不一致性窗口。



如果插入一个新的节点,并将auto_bootstrap设置为true,则该节点将从集群中的其他节点获取相应的数据。 / p>

从cassandra.yaml(0.6.x中的storage-conf.xml)关于auto_bootstrap:

 设置为true以使新的[非种子]节点自动将正确的数据迁移到自己。 


  1. Does Cassandra replicate only on write procedure (with chosen consistency level)? Is there any auto-replicate option for absent nodes, if I want symmetric data in every node?

  2. If I plug in a new node to the cluster, there is no auto replication. How can I sync data from other nodes with the new one?

  3. If I want replication like multimaster (2 nodes) with slave backup (1 node) known from MySQL, what is the proper way to set up and manage that on Cassandra (3 nodes)? How about two nodes?

解决方案

Cassandra replicates on writes, yes, but it also uses Hinted Handoff, Read Repair and Anti Entropy to to reduce the inconsistency window.

If you plugin a new node with auto_bootstrap set to true that node will get the appropriate data from the other nodes in the cluster.

From cassandra.yaml (storage-conf.xml in 0.6.x) about auto_bootstrap:

Set to true to make new [non-seed] nodes automatically migrate the right data to themselves. 

这篇关于Cassandra复制系统 - 它如何工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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