arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1905.08733cs.DC
收藏

基于状态的CRDT的线性化状态机复制

Linearizable State Machine Replication of State-Based CRDTs without Logs

Jan Skrzypczak, Florian Schintke, Thorsten Schütt

摘要:

状态机复制的一般解决方案必须确保所有副本以相同的顺序应用相同的命令,即使在出现故障的情况下。这种严格的排序会导致高同步成本,这是由分布式共识或领导者的使用引起的。本文提出了一种无冲突复制数据类型(CRDTs)的线性化状态机复制协议,该协议既不需要共识也不需要领导者。通过利用基于状态的CRDT的属性-特别是连接半格的单调增长-同步开销大大降低。因此,更新只需要一个往返行程,并在不需要日志的情况下“就地”修改状态。此外,用于协调的消息大小开销由每个消息的单个计数器组成。对于查询,我们保证有限的写入终止。我们在一个实验评估表明,超过99%的查询可以在一个到三个高度并发访问下的往返行程。我们的协议实现了高吞吐量,没有辅助过程,如命令日志管理或领导选举。因此,它非常适合需要在细粒度范围内线性访问CRDT数据的实际场景。

英文摘要:

General solutions of state machine replication have to ensure that all replicas apply the same commands in the same order, even in the presence of failures. Such strict ordering incurs high synchronization costs caused by distributed consensus or by the use of a leader. This paper presents a protocol for linearizable state machine replication of conflict-free replicated data types (CRDTs) that neither requires consensus nor a leader. By leveraging the properties of state-based CRDTs - in particular, the monotonic growth of a join semilattice - synchronization overhead is greatly reduced. As a result, updates only need a single round trip and modify the state 'in-place' without the need for a log. Furthermore, the message size overhead for coordination consists of a single counter per message. For queries, we guarantee finite writes termination. We show in an experimental evaluation that more than 99 % of queries can be handled in one to three round trips under highly concurrent accesses. Our protocol achieves high throughput without auxiliary processes such as command log management or leader election. Thus, it is well suited for practical scenarios that need linearizable access to CRDT data on a fine-granular scale.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑