Cassandra replication system - how it works

我是研究僧i 提交于 2020-01-22 16:18:28

问题


  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?


回答1:


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. 


来源:https://stackoverflow.com/questions/3027047/cassandra-replication-system-how-it-works

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!