CAP定理的量化和推广
Quantifying and Generalizing the CAP Theorem
摘要:
在分布式应用程序中,Brewer的CAP定理告诉我们,当网络变得分区时,在一致性和可用性之间存在权衡。一致性是系统中共享变量值的一致性,而可用性是响应访问这些共享变量的读写的能力。我们量化这些概念,给出数值的不一致性和不可用性。认识到网络划分不是一个全有或全无的命题,我们用L(表观延迟的数值度量)替换CAP中的P,并推导出CAL定理,即不一致性、不可用性和表观延迟之间的代数关系。这种关系表明,如果等待时间变得无限(例如,网络被分割),则不一致性和不可用性之一也必须成为无界的,因此CAP定理是CAL定理的特殊情况。我们描述了两个分布式协调机制,我们已经实现的通用语言协调语言的扩展,支持一致性和可用性之间的任意权衡明显的延迟变化。在集中协调的情况下,不一致性仍然受到所选数值的限制,代价是网络分区下的不可用性变得无界。在分散式协调下,不可用性仍然受到所选数值的限制,代价是不一致性在网络分区下变得无界。我们的集中式协调机制是历史上用于分布式仿真的技术的扩展,分布式仿真是一致性至关重要的应用程序。我们的去中心化协调机制是在可用性至关重要的情况下在分布式数据库中使用的技术的扩展。
英文摘要:
In distributed applications, Brewer's CAP theorem tells us that when networks become partitioned, there is a tradeoff between consistency and availability. Consistency is agreement on the values of shared variables across a system, and availability is the ability to respond to reads and writes accessing those shared variables. We quantify these concepts, giving numerical values to inconsistency and unavailability. Recognizing that network partitioning is not an all-or-nothing proposition, we replace the P in CAP with L, a numerical measure of apparent latency, and derive the CAL theorem, an algebraic relation between inconsistency, unavailability, and apparent latency. This relation shows that if latency becomes unbounded (e.g., the network becomes partitioned), then one of inconsistency and unavailability must also become unbounded, and hence the CAP theorem is a special case of the CAL theorem. We describe two distributed coordination mechanisms, which we have implemented as an extension of the Lingua Franca coordination language, that support arbitrary tradeoffs between consistency and availability as apparent latency varies. With centralized coordination, inconsistency remains bounded by a chosen numerical value at the cost that unavailability becomes unbounded under network partitioning. With decentralized coordination, unavailability remains bounded by a chosen numerical quantity at the cost that inconsistency becomes unbounded under network partitioning. Our centralized coordination mechanism is an extension of techniques that have historically been used for distributed simulation, an application where consistency is paramount. Our decentralized coordination mechanism is an extension of techniques that have been used in distributed databases when availability is paramount.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。