我想了解 aerospike 在不同一致性模式下的行为。
考虑一个运行有 3 个节点和复制因子 3 的 aerospike 集群。
AP modes is simple and it says
Aerospike 将允许在每个子集群中进行读写。
And Maximum no. of node which can go down < 3 (replication factor)
对于 aerospike 强一致性,它说
请注意,唯一成功的写入是在复制因子数量的节点上进行的。其他所有写入都不成功
这是否真的意味着如果可用节点 < 复制因子,则不允许写入。
然后同一份文件说
在系统向客户端返回成功之前,所有写入都提交到每个副本。如果其中一个副本写入失败,master 将确保写入完成到集群内适当数量的副本(或子集群,以防系统受到损害)。
什么appropriate number of replica means
?
因此,如果我从具有强一致性和复制因子 3 的 3 节点集群中丢失一个节点,我将无法写入数据?