arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1903.00424cs.DB
收藏

SCAR:使用异步复制和最小协调实现强一致性

SCAR: Strong Consistency using Asynchronous Replication with Minimal Coordination

Yi Lu, Xiangyao Yu, Samuel Madden

摘要:

在现代分布式系统中,数据复制作为提供高可用性的一种手段至关重要。已经提出了许多技术来利用副本来提高系统的性能,通常需要昂贵的协调或牺牲一致性。在本文中,我们提出了SCAR,一个新的分布式和复制的内存数据库,允许串行化的事务,以最小的协调从备份副本读取。SCAR的工作原理是为数据库记录分配逻辑时间戳,这样事务就可以安全地从备份副本读取数据,而无需与主副本协调,因为记录在特定的逻辑时间内无法更改。此外,我们提出了两个优化技术,时间戳同步和并行锁定和验证,以进一步减少协调。我们表明,SCAR优于传统的并发控制算法和复制策略的系统,在三个流行的基准测试的2倍。我们还证明了SCAR通过在降低的隔离级别下运行来实现更高的吞吐量,并实时的检测并发异常。

英文摘要:

Data replication is crucial in modern distributed systems as a means to provide high availability. Many techniques have been proposed to utilize replicas to improve a system's performance, often requiring expensive coordination or sacrificing consistency. In this paper, we present SCAR, a new distributed and replicated in-memory database that allows serializable transactions to read from backup replicas with minimal coordination. SCAR works by assigning logical timestamps to database records so that a transaction can safely read from a backup replica without coordinating with the primary replica, because the records cannot be changed up to a certain logical time. In addition, we propose two optimization techniques, timestamp synchronization and parallel locking and validation, to further reduce coordination. We show that SCAR outperforms systems with conventional concurrency control algorithms and replication strategies by up to a factor of 2 on three popular benchmarks. We also demonstrate that SCAR achieves higher throughput by running under reduced isolation levels and detects concurrency anomalies in real time.

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

↑