分布式执行者系统的可扩展终止检测
Scalable Termination Detection for Distributed Actor Systems
摘要:
自动垃圾回收(GC)可以防止某些类型的错误并减少编程开销。顺序程序的GC技术是基于可达性分析的。但是,从根集测试可达性不足以确定参与者是否是垃圾,因为不可达参与者可能会向可达参与者发送消息。相反,检查终止(有时也称为静止)就足够了:如果参与者当前没有处理消息,并且将来无法接收消息,则终止该参与者。此外,许多Actor框架为所有Actor提供了对文件I/O或外部存储的访问;在不检查Actor的内部代码的情况下,有必要检查Actor是否已终止,以确保它可能在这些框架中被垃圾收集。以前的算法来检测演员垃圾需要协调机制,如因果消息传递或非本地监测演员的突变。这样的协调机制对并发性有不利影响,因此在分布式系统中是昂贵的。我们提出了一个低开销的引用列表技术(称为DRL)终止检测演员系统。DRL基于异步本地快照和参与者之间的消息传递。这实现了分散的实现和瞬时网络分区容忍。本文提供了DRL的正式描述,表明所有被识别为垃圾的演员确实已经终止(安全),并且所有终止的演员-在某些合理的假设下-最终将被识别(活性)。
英文摘要:
Automatic garbage collection (GC) prevents certain kinds of bugs and reduces programming overhead. GC techniques for sequential programs are based on reachability analysis. However, testing reachability from a root set is inadequate for determining whether an actor is garbage because an unreachable actor may send a message to a reachable actor. Instead, it is sufficient to check termination (sometimes also called quiescence): an actor is terminated if it is not currently processing a message and cannot receive a message in the future. Moreover, many actor frameworks provide all actors with access to file I/O or external storage; without inspecting an actor's internal code, it is necessary to check that the actor has terminated to ensure that it may be garbage collected in these frameworks. Previous algorithms to detect actor garbage require coordination mechanisms such as causal message delivery or nonlocal monitoring of actors for mutation. Such coordination mechanisms adversely affect concurrency and are therefore expensive in distributed systems. We present a low-overhead reference listing technique (called DRL) for termination detection in actor systems. DRL is based on asynchronous local snapshots and message-passing between actors. This enables a decentralized implementation and transient network partition tolerance. The paper provides a formal description of DRL, shows that all actors identified as garbage have indeed terminated (safety), and that all terminated actors--under certain reasonable assumptions--will eventually be identified (liveness).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。