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

弱持久性高性能事务

Weakly Durable High-Performance Transactions

Yun-Sheng Chang, Yu-Fang Chen, Hsiang-Shang Ko

摘要:

现有的基于磁盘的数据库系统主要分为两类--它们要么提供非常高的性能,但几乎没有保证,要么以较低的性能为代价暴露满足完整ACID保证的事务抽象。在本文中,我们提出了一种替代方案,实现了两全其美,即良好的性能和事务属性。我们的主要观察是,由于频繁使用的同步原语,具有强大的耐久性的系统很难利用现代存储设备所赋予的极高的并行性。因此,我们探讨了弱持久事务的概念,并讨论了如何安全地放松耐久性,而不损害其他事务属性。我们提出了AciKV,一个事务系统,其设计是围绕弱耐用性。AciKV向用户公开了正常的事务接口,但它与其他接口的区别在于一个新的“持久化”原语,它从提交中获得持久性。AciKV是执行快速原子操作的系统和支持事务的系统之间的中间地带;这个中间地带很有用,因为它提供了与前者类似的性能,同时防止了像后者那样的隔离和一致性异常。我们使用YCSB基准测试的评估表明,AciKV,在涉及写请求的工作负载下,表现出比现有的强耐用系统高出两个数量级以上的吞吐量。

英文摘要:

Existing disk-based database systems largely fall into two categories -- they either provide very high performance but few guarantees, or expose the transaction abstraction satisfying the full ACID guarantees at the cost of lower performance. In this paper, we present an alternative that achieves the best of both worlds, namely good performance and transactional properties. Our key observation is that, because of the frequent use of synchronization primitives, systems with strong durability can hardly utilize the extremely high parallelism granted by modern storage devices. Thus, we explore the notion of weakly durable transactions, and discuss how to safely relax durability without compromising other transactional properties. We present AciKV, a transactional system whose design is centered around weak durability. AciKV exposes to users the normal transactional interface, but what sets it apart from others is a new "persist" primitive that decouples durability from commit. AciKV is a middle ground between systems that perform fast atomic operations, and ones that support transactions; this middle ground is useful as it provides similar performance to the former, while prevents isolation and consistency anomalies like the latter. Our evaluation using the YCSB benchmark shows that AciKV, under workloads that involve write requests, exhibits more than two orders of magnitude higher throughput than existing strongly durable systems.

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

↑