gpt4 book ai didi

Cassandra - 一致性级别为 1 的阅读

转载 作者:行者123 更新时间:2023-12-04 04:45:06 25 4
gpt4 key购买 nike

Cassandra 是如何使用 CL ONE 进行阅读的?

协调器是否查询所有副本并等待第一个回答?

根据文档,协调器应该查询一个最近的副本。如果在此查询期间发生超时会发生什么 - 它是尝试另一个副本,还是向客户端返回错误?

最佳答案

Does coordinator query all replicas and waits for the first to answer?



正如你提到的,它查询最近的节点,由告密者确定。

What happens if timeout occurs during this query



有关于 Dynamic Snitch 的附加文档,其中指出:

By default, all snitches also use a dynamic snitch layer that monitors read latency and, when possible, routes requests away from poorly-performing nodes.



根据该定义,如果 snitch 选择的节点出现故障,则 snitch 应将事务路由到 [下一个] 最近的节点。

请注意,从 2.0.2 开始,Cassandra 有一个名为 Rapid Read Protection 的特性。 ,其中:

[A]llows Cassandra to tolerate node failure without dropping a single request

关于Cassandra - 一致性级别为 1 的阅读,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18331305/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com