arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1509.05100cs.PL
收藏

Rehearsal:一个面向Puppet的配置验证工具

Rehearsal: A Configuration Verification Tool for Puppet

Rian Shambaugh, Aaron Weiss, Arjun Guha

摘要:

大规模数据中心和云计算的发展使系统配置成为一个具有挑战性的问题。几次广为人知的宕机不是归咎于软件错误,而是配置错误。为了应对这种情况,成千上万的组织使用系统配置语言来管理他们的计算基础设施。其中,Puppet是使用最广泛的,拥有数千名付费客户和更多的开源用户。Puppet的核心是一种描述系统状态的领域特定语言。Puppet已经执行了一些基本的静态检查,但它们只能防止一小部分错误。此外,测试是无效的,因为许多错误仅在难以预测和再现的特定机器状态下触发。通过几个例子,我们证明了Puppet的一个关键问题是配置可能是不确定的。本文介绍了排练,木偶配置验证工具。Rehearsal为Puppet实现了一个健全、完整和可扩展的确定性分析。为了开发它,我们(1)提出了一个正式的语义木偶,(2)使用几个分析,以缩小我们的模型到一个易于处理的大小,和(3)框架确定性检查作为可判定的公式SMT求解器。然后,Rehearsal利用确定性分析来检查其他重要属性,例如幂等性。最后,我们将排练应用于几个真实世界的木偶配置。

英文摘要:

Large-scale data centers and cloud computing have turned system configuration into a challenging problem. Several widely-publicized outages have been blamed not on software bugs, but on configuration bugs. To cope, thousands of organizations use system configuration languages to manage their computing infrastructure. Of these, Puppet is the most widely used with thousands of paying customers and many more open-source users. The heart of Puppet is a domain-specific language that describes the state of a system. Puppet already performs some basic static checks, but they only prevent a narrow range of errors. Furthermore, testing is ineffective because many errors are only triggered under specific machine states that are difficult to predict and reproduce. With several examples, we show that a key problem with Puppet is that configurations can be non-deterministic. This paper presents Rehearsal, a verification tool for Puppet configurations. Rehearsal implements a sound, complete, and scalable determinacy analysis for Puppet. To develop it, we (1) present a formal semantics for Puppet, (2) use several analyses to shrink our models to a tractable size, and (3) frame determinism-checking as decidable formulas for an SMT solver. Rehearsal then leverages the determinacy analysis to check other important properties, such as idempotency. Finally, we apply Rehearsal to several real-world Puppet configurations.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑