Smells-sus:IaC中的可持续性坏味道
Smells-sus: Sustainability Smells in IaC
AI总结:
本研究针对Terraform IaC脚本定义并验证了七种可持续性坏味道,通过大规模数据集分析发现单体式基础设施最为普遍,占比9.67%,并揭示了其成因的复杂性。
摘要:
从业者使用基础设施即代码(IaC)脚本,通过机器可读的定义文件来高效配置IT基础设施。然而,在开发这些脚本的过程中,某些代码模式或部署选择可能会导致可持续性问题,例如资源利用效率低下或冗余配置等。我们将这类模式称为可持续性坏味道。鉴于云计算规模的不断增长,这些低效问题带来了显著的环境和财务挑战。本研究聚焦于Terraform,一种被广泛采用的IaC工具。我们的研究包括定义七种可持续性坏味道,并通过一项涉及19名IaC从业者的调查对其进行验证。我们使用了来自395个开源仓库的28,327个Terraform脚本数据集。我们从原始数据集中随机抽取了1,860个Terraform脚本进行了详细的定性分析,以识别与可持续性坏味道相对应的代码模式,并使用其余26,467个Terraform脚本研究所定义的可持续性坏味道的普遍性。我们的结果表明,这些坏味道在数据集中的普遍率各不相同。最普遍的坏味道是单体式基础设施,出现在9.67%的脚本中。此外,我们的发现强调了针对可持续性问题进行根因分析的复杂性,因为这些坏味道通常源于脚本结构、配置选择和部署上下文的共同作用。
英文摘要:
Practitioners use Infrastructure as Code (IaC) scripts to efficiently configure IT infrastructures through machine-readable definition files. However, during the development of these scripts, some code patterns or deployment choices may lead to sustainability issues like inefficient resource utilization or redundant provisioning for example. We call this type of patterns sustainability smells. These inefficiencies pose significant environmental and financial challenges, given the growing scale of cloud computing. This research focuses on Terraform, a widely adopted IaC tool. Our study involves defining seven sustainability smells and validating them through a survey with 19 IaC practitioners. We utilized a dataset of 28,327 Terraform scripts from 395 open-source repositories. We performed a detailed qualitative analysis of a randomly sampled 1,860 Terraform scripts from the original dataset to identify code patterns that correspond to the sustainability smells and used the other 26,467 Terraform scripts to study the prevalence of the defined sustainability smells. Our results indicate varying prevalence rates of these smells across the dataset. The most prevalent smell is Monolithic Infrastructure, which appears in 9.67\% of the scripts. Additionally, our findings highlight the complexity of conducting root cause analysis for sustainability issues, as these smells often arise from a confluence of script structures, configuration choices, and deployment contexts.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。