Creek:一种低延迟、混合一致性的事务复制方案
Creek: Low-latency, Mixed-Consistency Transactional Replication Scheme
摘要:
在本文中,我们将介绍Creek,一个低延迟,最终一致的复制方案,也使执行强一致的操作(类似于ACID事务)。操作可以具有任意复杂(但确定性)的语义。与状态机复制(SMR)类似,Creek完全命令所有操作,但使用两种不同的广播机制:基于时间戳的广播机制和我们新颖的条件原子广播(CAB)。前者用于建立推测执行的所有操作的临时顺序,并且它可以容忍网络分区。另一方面,CAB仅用于确保强一致性操作的线性化执行,只要分布式共识可以解决。强一致性操作的执行也稳定了因果相关的弱一致性操作的执行顺序。Creek使用多版本并发控制来有效地处理由于临时执行顺序和最终执行顺序之间的不匹配而导致的操作回滚和重新执行。在TPC-C基准测试中,与最先进的推测SMR方案相比,Creek在返回客户端响应时的延迟降低了2.5倍,同时保持了推测执行的高准确性(92-100%)。
英文摘要:
In this paper we introduce Creek, a low-latency, eventually consistent replication scheme that also enables execution of strongly consistent operations (akin to ACID transactions). Operations can have arbitrary complex (but deterministic) semantics. Similarly to state machine replication (SMR), Creek totally-orders all operations, but does so using two different broadcast mechanisms: a timestamp-based one and our novel conditional atomic broadcast (CAB). The former is used to establish a tentative order of all operations for speculative execution, and it can tolerate network partitions. On the other hand, CAB is only used to ensure linearizable execution of the strongly consistent operations, whenever distributed consensus can be solved. The execution of strongly consistent operations also stabilizes the execution order of the causally related weakly consistent operations. Creek uses multiversion concurrency control to efficiently handle operations' rollbacks and reexecutions resulting from the mismatch between the tentative and the final execution orders. In the TPC-C benchmark, Creek offers up to 2.5 times lower latency in returning client responses compared to the state-of-the-art speculative SMR scheme, while maintaining high accuracy of the speculative execution (92-100%).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。