Cassandra复制系统 - 它是如何工作的

3 installation replication cassandra

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

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

  3. 如果我想从MySQL知道具有从属备份(1节点)的多主机(2个节点)的复制,那么在Cassandra(3个节点)上设置和管理它的正确方法是什么?两个节点怎么样?

Sch*_*jer 5

Cassandra在写入时复制,是的,但它也使用Hinted Handoff,Read RepairAnti Entropy来减少不一致窗口.

如果插入一个auto_bootstrap设置为true的新节点,该节点将从集群中的其他节点获取适当的数据.

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

Set to true to make new [non-seed] nodes automatically migrate the right data to themselves. 
Run Code Online (Sandbox Code Playgroud)