微秒级应用的微秒级共识
Microsecond Consensus for Microsecond Applications
摘要:
我们考虑通过复制使应用程序容错的问题,当应用程序在微秒级运行时,如在金融,嵌入式计算和微服务应用程序中。这些应用程序需要一个复制方案,也在微秒级运行,否则复制将成为一个负担。我们提出了Mu,一个在内存中复制一个(小)请求所需时间不到1.3微秒的系统,并且在不到1毫秒的时间内对系统进行故障转移-这将先前系统的复制和故障转移延迟减少了至少61%和90%。Mu为通用应用程序实现了真正的状态机复制/共识(SMR),具有很强的一致性,但它确实适用于微秒级应用程序,即使是最小的开销也很重要。为了提供这种性能,Mu引入了一种新的SMR协议,该协议仔细地利用了RDMA。粗略地说,在Mu中,leader通过使用RDMA直接将请求写入其他副本的日志来复制请求,而无需任何额外的通信。然而,这样做会带来处理并发领导者、更改领导者、垃圾收集日志等方面的挑战-我们在本文中通过明智地组合RDMA权限和分布式算法设计来解决这些挑战。我们实现了Mu,并使用它复制了几个系统:一个名为Liquibook的金融交易应用程序,Redis,Memcached和HERD。我们的评估表明,穆招致一个小的复制延迟,在某些情况下,是唯一可行的复制系统,招致一个可接受的开销。
英文摘要:
We consider the problem of making apps fault-tolerant through replication, when apps operate at the microsecond scale, as in finance, embedded computing, and microservices apps. These apps need a replication scheme that also operates at the microsecond scale, otherwise replication becomes a burden. We propose Mu, a system that takes less than 1.3 microseconds to replicate a (small) request in memory, and less than a millisecond to fail-over the system - this cuts the replication and fail-over latencies of the prior systems by at least 61% and 90%. Mu implements bona fide state machine replication/consensus (SMR) with strong consistency for a generic app, but it really shines on microsecond apps, where even the smallest overhead is significant. To provide this performance, Mu introduces a new SMR protocol that carefully leverages RDMA. Roughly, in Mu a leader replicates a request by simply writing it directly to the log of other replicas using RDMA, without any additional communication. Doing so, however, introduces the challenge of handling concurrent leaders, changing leaders, garbage collecting the logs, and more - challenges that we address in this paper through a judicious combination of RDMA permissions and distributed algorithmic design. We implemented Mu and used it to replicate several systems: a financial exchange app called Liquibook, Redis, Memcached, and HERD. Our evaluation shows that Mu incurs a small replication latency, in some cases being the only viable replication system that incurs an acceptable overhead.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。