键值存储中的乐观执行
Optimistic Execution in Key-Value Store
摘要:
CAP定理的局限性意味着,如果在网络分区的存在下需要可用性,则必须牺牲顺序一致性,这是一种对于系统设计更自然的一致性模型。我们关注的问题是,如果设计师有一个算法可以在顺序一致性的情况下正确工作,但面临的是一个底层键值存储,它提供了一个较弱的(例如,最终或因果)一致性。我们提出了一种基于检测回滚的方法:设计者识别一个正确性谓词,比如P,并继续运行协议,因为我们的系统监视P。如果违反了P(因为底层的键值存储提供了较弱的一致性),则系统回滚并在P保持的状态下恢复计算。我们在Voldemort键值存储中评估这种方法。我们在Amazon AWS上部署Voldemort的实验表明,与顺序一致性相比,使用最终一致性和监控可以提供20 - 40%的吞吐量增加。我们还表明,监视器本身的开销很小(通常小于8%),检测违规行为的延迟非常低。例如,超过99.9%的违规在不到1秒的时间内被检测到。
英文摘要:
Limitations of CAP theorem imply that if availability is desired in the presence of network partitions, one must sacrifice sequential consistency, a consistency model that is more natural for system design. We focus on the problem of what a designer should do if she has an algorithm that works correctly with sequential consistency but is faced with an underlying key-value store that provides a weaker (e.g., eventual or causal) consistency. We propose a detect-rollback based approach: The designer identifies a correctness predicate, say P , and continue to run the protocol, as our system monitors P . If P is violated (because the underlying key-value store provides a weaker consistency), the system rolls back and resumes the computation at a state where P holds. We evaluate this approach in the Voldemort key-value store. Our experiments with deployment of Voldemort on Amazon AWS shows that using eventual consistency with monitoring can provide 20 - 40% increase in throughput when compared with sequential consistency. We also show that the overhead of the monitor itself is small (typically less than 8%) and the latency of detecting violations is very low. For example, more than 99.9% violations are detected in less than 1 second.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。