静态推断基础设施即代码的使用量边界
Statically Inferring Usage Bounds for Infrastructure as Code
AI总结:
本文提出一种基于 SMT 约束求解的细粒度静态分析工具,通过建模 IaC 部署中资源间交互来推断云资源使用量边界,并在 1000 多个真实配置上验证了其有效性。
摘要:
基础设施即代码(Infrastructure as Code,IaC)使云客户能够更敏捷地创建和修改云资源的复杂部署。通过使用 CloudFormation 等 IaC 语言编写配置,用户可以声明式地指定其基础设施,CloudFormation 将负责资源的创建。然而,理解 IaC 部署的复杂性已成为一个尚未解决的问题。特别是,估算 IaC 部署的成本需要估算部署中每个云资源的未来使用量和定价模型。获得对预测使用量/成本的可见性是云管理中的主要挑战。现有工作要么依赖历史使用指标来预测成本,要么依赖忽略资源之间交互的粗粒度静态分析。我们的关键见解是,IaC 部署的拓扑结构对每个资源的使用量施加了约束,我们可以通过使用 SMT 求解器来形式化并自动化关于约束的推理。这使客户能够对其云使用量的边界获得形式化保证。我们提出了一种细粒度静态使用量分析工具,该工具通过将 IaC 部署中资源之间的交互建模为一组 SMT 约束来工作,并在包含 1000 多个真实世界 IaC 配置的基准上评估了我们的工具。
英文摘要:
Infrastructure as Code (IaC) has enabled cloud customers to have more agility in creating and modifying complex deployments of cloud-provisioned resources. By writing a configuration in IaC languages such as CloudFormation, users can declaratively specify their infrastructure and CloudFormation will handle the creation of the resources. However, understanding the complexity of IaC deployments has emerged as an unsolved issue. In particular, estimating the cost of an IaC deployment requires estimating the future usage and pricing models of every cloud resource in the deployment. Gaining transparency into predicted usage/costs is a leading challenge in cloud management. Existing work either relies on historical usage metrics to predict cost or on coarse-grain static analysis that ignores interactions between resources. Our key insight is that the topology of an IaC deployment imposes constraints on the usage of each resource, and we can formalize and automate the reasoning on constraints by using an SMT solver. This allows customers to have formal guarantees on the bounds of their cloud usage. We propose a tool for fine-grained static usage analysis that works by modeling the inter-resource interactions in an IaC deployment as a set of SMT constraints, and evaluate our tool on a benchmark of over 1000 real world IaC configurations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。