Hybrid Transactional Replication:状态机和延迟更新复制的组合
Hybrid Transactional Replication: State-Machine and Deferred-Update Replication Combined
摘要:
我们提出了一种新的高可靠性服务的复制方案--混合传输复制(HTR)。它结合了两个方案:事务或者由延迟更新模式(DU)中的仅一个服务副本乐观地执行,或者由状态机模式(SM)中的所有副本确定地执行;选择由oracle做出。DU模式允许并行性,因此可以利用多核硬件。与DU相比,SM模式保证了无异常中止的执行,因此它适用于不可撤销的操作和产生高争用的事务。为了表现力,可以根据需要丢弃或重试事务。我们正式证明,该计划的更高的灵活性并不以较弱的客户端的保证为代价:HTR满足强一致性保证类似于其他流行的事务复制计划,如延迟更新复制。我们开发了基于HTR的Paxos STM,一个基于对象的分布式事务内存系统,并在各种工作负载下对其进行了全面的评估。我们展示了使用一种新的甲骨文的好处,它依赖于机器学习技术自动适应不断变化的条件。在我们的测试中,与仅运行DU或仅运行SM的Oracle的系统相比,基于ML的Oracle的吞吐量提高了50%。我们的方法的灵感来自于一个众所周知的算法中使用的多臂强盗问题。
英文摘要:
We propose Hybrid Transactional Replication (HTR), a novel replication scheme for highly dependable services. It combines two schemes: a transaction is executed either optimistically by only one service replica in the deferred update mode (DU), or deterministically by all replicas in the state machine mode (SM); the choice is made by an oracle. The DU mode allows for parallelism and thus takes advantage of multicore hardware. In contrast to DU, the SM mode guarantees abort-free execution, so it is suitable for irrevocable operations and transactions generating high contention. For expressiveness, transactions can be discarded or retried on demand. We formally prove that the higher flexibility of the scheme does not come at the cost of weaker guarantees for clients: HTR satisfies strong consistency guarantees akin to those provided by other popular transactional replication schemes such as Deferred Update Replication. We developed HTR-enabled Paxos STM, an object-based distributed transactional memory system, and evaluated it thoroughly under various workloads. We show the benefits of using a novel oracle, which relies on machine learning techniques for automatic adaptation to changing conditions. In our tests, the ML-based oracle provides up to 50% improvement in throughput when compared to the system running with DU-only or SM-only oracles. Our approach is inspired by a well known algorithm used in the context of the multi-armed bandit problem.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。