arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2104.05128cs.LO
收藏

一种可扩展的去中心化Actor终止检测算法

A Scalable Algorithm for Decentralized Actor Termination Detection

Dan Plyukhin, Gul Agha

AI总结:

本文提出一种基于异步本地快照和消息传递的低开销延迟引用列表技术(DRL),用于actor系统的去中心化终止检测,兼顾安全性与活性。

摘要:

自动垃圾回收(GC)可以防止某些类型的错误并降低编程开销。针对顺序程序的GC技术基于可达性分析。然而,从根集合测试可达性不足以确定一个actor是否为垃圾:观察到不可达的actor可能向可达的actor发送消息。相反,检查终止(有时也称为静止)就足够了:如果一个actor当前没有处理消息且将来无法接收消息,则该actor已终止。此外,许多actor框架为所有actor提供文件I/O或外部存储的访问权限;在不检查actor内部代码的情况下,有必要检查actor是否已终止,以确保在这些框架中可以对其进行垃圾回收。先前的actor垃圾检测算法需要协调机制,如因果消息传递或对actor变异的非本地监控。此类协调机制会对并发性产生不利影响,因此在分布式系统中代价高昂。我们提出了一种低开销的延迟引用列表技术(称为DRL),用于actor系统中的终止检测。DRL基于异步本地快照和actor之间的消息传递。这实现了去中心化实现和瞬态网络分区容忍性。本文提供了DRL的形式化描述,证明了所有被识别为垃圾的actor确实已终止(安全性),并且所有已终止的actor——在一定的合理假设下——最终将被识别(活性)。

英文摘要:

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: Observe that 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 deferred 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分析而来,可能存在错误,请以论文正文为准。

↑