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

使用 Docker Compose 进行服务编排的多容器组合模式

Patterns of Multi-Container Composition for Service Orchestration with Docker Compose

Kalvin Eng, Abram Hindle, Eleni Stroulia

AI总结:

本文通过构建使用 Docker Compose 的成功开源项目数据集并分析其配置,识别出反复出现的多容器组合模式,为服务编排实践和软件工程实证研究提供参考。

摘要:

软件设计模式为常见的软件设计问题提供了通用的代码解决方案。现代软件系统在运行其组成服务组件时高度依赖容器。然而,尽管随时可用于参与应用程序多容器服务组合的即用型 Docker 服务镜像十分普遍,开发者在如何组合自己的 Docker 服务编排方面仍缺乏足够指导。因此,在本工作中,我们整理了一个成功项目数据集,这些项目采用 Docker Compose 作为编排工具来运行多个服务容器;随后,我们对 Docker Compose 配置进行了定性和定量分析。数据收集与分析使我们能够识别并命名在众多成功开源项目中反复出现的多容器组合模式,这与软件设计模式非常相似。这些模式突出展示了现实世界中软件系统是如何被编排的,并可为任何希望组合自身服务编排的人员提供示例。这些贡献还推进了软件工程模式方面的实证研究,因为其提供了有关 Docker Compose 实际使用方式的证据。

英文摘要:

Software design patterns present general code solutions to common software design problems. Modern software systems rely heavily on containers for running their constituent service components. Yet, despite the prevalence of ready-to-use Docker service images ready to participate in multi-container service compositions of applications, developers do not have much guidance on how to compose their own Docker service orchestrations. Thus in this work, we curate a dataset of successful projects that employ Docker Compose as an orchestration tool to run multiple service containers; then, we engage in qualitative and quantitative analysis of Docker Compose configurations. The collection of data and analysis enables the identification and naming of repeating multi-container composition patterns that are used in numerous successful open-source projects, much like software design patterns. These patterns highlight how software systems are orchestrated in the real-world and can give examples to anybody wishing to compose their own service orchestrations. These contributions also advance empirical research in software engineering patterns as evidence is provided about how Docker Compose is used.

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

↑