有状态数据流系统中的故障透明性(技术报告)
Failure Transparency in Stateful Dataflow Systems (Technical Report)
AI总结:
本文通过小步操作语义建模 Apache Flink,提出基于观察可解释性的故障透明性新定义,并形式化证明其实现模型满足故障透明性且具有公平执行下的活性,为有状态数据流系统的验证栈奠定基础。
摘要:
故障透明性使用户能够在更高抽象层次上对分布式系统进行推理,其中复杂的故障处理逻辑被隐藏起来。这对于有状态数据流系统尤其如此,这类系统是许多云应用的骨干。本文特别关注证明 Apache Flink(一个流行的有状态数据流系统)中的故障透明性。尽管故障透明性是 Apache Flink 的一个关键方面,但迄今为止它尚未被形式化证明。然而,由于该机制本身的复杂性,证明故障透明性机制的正确性具有挑战性。尽管如此,这种复杂性可以有效地隐藏在故障透明的编程接口之后。为了证明 Apache Flink 具有故障透明性,我们使用小步操作语义对其进行建模。接下来,我们基于观察可解释性(observational explainability)——一个根据观察将执行关联起来的概念——给出了故障透明性的新定义。最后,我们为实现模型提供了故障透明性的形式化证明;即,我们证明了无故障模型正确地抽象掉了实现模型中与故障相关的细节。我们还证明了实现模型在公平执行假设下的活性(liveness)。这些结果是迈向有状态数据流系统经过验证的软件栈的第一步。
英文摘要:
Failure transparency enables users to reason about distributed systems at a higher level of abstraction, where complex failure-handling logic is hidden. This is especially true for stateful dataflow systems, which are the backbone of many cloud applications. In particular, this paper focuses on proving failure transparency in Apache Flink, a popular stateful dataflow system. Even though failure transparency is a critical aspect of Apache Flink, to date it has not been formally proven. Showing that the failure transparency mechanism is correct, however, is challenging due to the complexity of the mechanism itself. Nevertheless, this complexity can be effectively hidden behind a failure transparent programming interface. To show that Apache Flink is failure transparent, we model it in small-step operational semantics. Next, we provide a novel definition of failure transparency based on observational explainability, a concept which relates executions according to their observations. Finally, we provide a formal proof of failure transparency for the implementation model; i.e., we prove that the failure-free model correctly abstracts from the failure-related details of the implementation model. We also show liveness of the implementation model under a fair execution assumption. These results are a first step towards a verified stack for stateful dataflow systems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。