【发布时间】:2020-01-11 11:18:40
【问题描述】:
我想在演示文稿中明确显示R + W > N 规则。
所以我最初的想法如下:
// setup
1: Create a Docker network with 3 Cassandra Nodes.
2: Create a simple Keyspace with Replication-Factor of 3.
3: Explicitly shutdown two of the docker nodes.
4: Create a write query inserting some data with W=1
As two of the nodes are down but one is still online this should succeed
5: Bring both of the nodes back online
6: Reading the Data I just pushed to one node with R=1
如果我正确理解R + W > N,我现在应该有 2/3 的机会获得不一致的数据。这正是我想要展示的。
我的问题是:
是否需要禁用某个选项才能阻止节点在重新联机时同步?
所以我需要禁用这些选项?
【问题讨论】:
标签: cassandra cassandra-2.0 cassandra-3.0