空间优化、计算优化、拓扑无关、吞吐量可扩展的因果交付通过混合缓冲
Space-Optimal, Computation-Optimal, Topology-Agnostic, Throughput-Scalable Causal Delivery through Hybrid Buffering
AI总结:
本文提出了一种基于混合缓冲的因果交付算法,通过结合发送端和接收端缓冲,实现空间和计算优化,同时具备拓扑无关性和吞吐量可扩展性。
摘要:
消息交付遵循因果顺序(因果交付)是分布式系统中进程间通信最经典且广泛应用的抽象之一。大多数方法通过在接收端标记消息的因果信息并缓冲直到可以安全交付。除了专门利用通信拓扑的特定方法外,其他方法通常会带来元数据开销,这对于大量进程来说是不可接受的。较少使用的是在发送端缓冲消息直到可以安全释放到网络中以强制因果顺序的方法,因为经典算法有许多缺点。在本文中,首先讨论了仅发送端缓冲方法的局限性,并引入了发送方许可发送(SPS)强制策略,证明SPS + FIFO意味着因果。我们分析了一个最近的发送端缓冲算法Cykas,该算法遵循SPS + FIFO,尽管非常保守,指出吞吐量可扩展性和活性问题。然后,我们介绍了一种新的基于SPS + FIFO的算法,它采用了一种新的混合方法:通过结合发送端缓冲来强制SPS和接收端缓冲来强制FIFO来强制因果。该算法克服了仅发送端缓冲的局限性,并实现了每个消息的有效常数元数据大小。通过精心选择的数据结构,该算法也是计算上最优的,具有均摊的有效常数处理开销。据我们所知,没有其他拓扑无关的因果交付算法具有这些特性。
英文摘要:
Message delivery respecting causal ordering (causal delivery) is one of the most classic and widely useful abstraction for inter-process communication in a distributed system. Most approaches tag messages with causality information and buffer them at the receiver until they can be safely delivered. Except for specific approaches that exploit communication topology, therefore not generally applicable, they incur a metadata overhead which is prohibitive for a large number of processes. Much less used are the approaches that enforce causal order by buffering messages at the sender, until it is safe to release them to the network, as the classic algorithm has too many drawbacks. In this paper, first we discuss the limitations of sender-only buffering approaches and introduce the Sender Permission to Send (SPS) enforcement strategy, showing that SPS + FIFO implies Causal. We analyze a recent sender-buffering algorithm, Cykas, which follows SPS + FIFO, albeit very conservatively, pointing out throughput scalability and liveness issues. Then, we introduce a novel SPS + FIFO based algorithm, which adopts a new hybrid approach: enforcing causality by combining sender-buffering to enforce SPS and receiver-buffering to enforce FIFO. The algorithm overcomes limitations of sender-only buffering, and achieves effectively constant metadata size per message. By a careful choice of data-structures, the algorithm is also computationally-optimal, with amortized effectively constant processing overhead. As far as we know, there is no other topology-agnostic causal delivery algorithm with these properties.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。