gpt4 book ai didi

database - CAP定理的 "Availability"怎么理解?

转载 作者:太空狗 更新时间:2023-10-30 01:42:47 25 4
gpt4 key购买 nike

我不知道这是不是一个合适的问题。

众所周知,在CAP定理中,“A”表示“可用性”。在 wikipedia ,“Availability”的解释是:

Availability: a guarantee that every request receives a response about whether it was successful or failed

但是,从工程的角度来看,没有绝对的可用性。我们只能说一个系统的可用性是5'9'(99.999%),甚至8'9',但不能说一个系统的可用性是100%,100%可用的系统在现实中是不存在的,即使系统有数百万个重复节点,对吧?

CAP 定理证明没有系统可以同时满足这 3 个要求。我的问题是,如果一个系统声称同时满足“A”和“P”,那么这个“A”的准确含义是什么? 6'9' 甚至更高?

最佳答案

我建议您避免使用维基百科,而是阅读 Gilbert and Lynch 证明中提供的定义。 .

"every request received by a non-failing node in the system must result in a response"

以及回答您问题的相关脚注

"Brewer originally only required almost all requests to receive a response. As allowing probabilistic availability does not change the result when arbitrary failures occur, for simplicity we are requiring 100% availability"

因此,如果几乎所有请求都收到响应,或者我们允许发生任意故障,则可以认为系统具有高可用性。

关于database - CAP定理的 "Availability"怎么理解?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10069147/

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