STAR:通过非对称复制扩展事务
STAR: Scaling Transactions through Asymmetric Replication
摘要:
在本文中,我们提出了STAR,一个新的分布式内存数据库与非对称复制。通过对某些副本采用单节点非分区架构,对其他副本采用分区架构,STAR能够有效地运行高度可分区的工作负载和涉及跨分区事务的工作负载。其核心思想是一种新的阶段切换算法,其中单分区和跨分区事务的执行是分开的。在分区阶段,单分区事务在多台机器上并行运行,以利用更多的并发性。在单主阶段,整个数据库的主控权被切换到单个指定的主节点,该节点可以执行这些事务,而无需使用昂贵的协调协议,如两阶段提交。因为主节点拥有数据库的完整副本,所以这种阶段切换的成本可以忽略不计。我们在两个流行的基准测试(YCSB和TPC-C)的实验表明,通过复制的高可用性可以与分布式内存数据库中的快速可串行化事务执行共存,STAR优于采用传统的并发控制和复制算法的系统高达一个数量级。
英文摘要:
In this paper, we present STAR, a new distributed in-memory database with asymmetric replication. By employing a single-node non-partitioned architecture for some replicas and a partitioned architecture for other replicas, STAR is able to efficiently run both highly partitionable workloads and workloads that involve cross-partition transactions. The key idea is a new phase-switching algorithm where the execution of single-partition and cross-partition transactions is separated. In the partitioned phase, single-partition transactions are run on multiple machines in parallel to exploit more concurrency. In the single-master phase, mastership for the entire database is switched to a single designated master node, which can execute these transactions without the use of expensive coordination protocols like two-phase commit. Because the master node has a full copy of the database, this phase-switching can be done at negligible cost. Our experiments on two popular benchmarks (YCSB and TPC-C) show that high availability via replication can coexist with fast serializable transaction execution in distributed in-memory databases, with STAR outperforming systems that employ conventional concurrency control and replication algorithms by up to one order of magnitude.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。