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

CIR:轻量级容器镜像用于跨平台部署

CIR: Lightweight Container Image for Cross-Platform Deployment

Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);University of Chinese Academy of Sciences(中国科学院大学)

Fengzhi Li, Xiaohui Peng, Qingru Xu, Qisong Shi, Tuo Zhou, Yongxuan Dai, Yifan Wang, Ninghui Sun, Zhiwei Xu

AI总结:

本文提出CIR轻量级容器镜像,通过延迟构建方法和新镜像格式,实现跨平台部署,减少镜像大小和部署时间。

摘要:

在现代云和异构分布式基础设施中,容器镜像被广泛用作机器学习应用的部署单元。镜像捆绑了应用程序及其整个平台特定的执行环境,可以直接启动容器实例。然而,这种方法迫使开发者为每个目标部署平台构建和维护单独的镜像。这一限制在广泛使用的解释语言如Python和R中尤为明显,其中应用程序代码本质上是跨平台的,但运行时依赖性高度平台特定。随着新兴计算范式如天空计算和边缘计算的出现,这些范式要求无缝的工作负载迁移和跨平台部署。传统镜像不仅在存储和网络使用上引入了效率低下,还对开发者造成了沉重负担,因为他们必须反复构建和管理平台特定的构建。为了解决这些挑战,我们提出了一种延迟构建方法,将平台特定的构建推迟到部署阶段,从而保持镜像本身跨平台。为此,我们引入了一种新的镜像格式CIR(容器中间表示),以及其预构建器和延迟构建器。CIR针对解释语言应用程序,仅存储应用程序直接依赖项的标识符,将平台适应交给延迟构建器,在部署时将实际依赖项组装成可运行的容器。因此,一个CIR可以跨异构平台部署,同时将镜像大小减少到传统镜像的5%。在我们的评估中,CIR相比预构建镜像减少了40-60%的部署时间,优于Docker、Buildah和Apptainer等现有系统。

英文摘要:

In modern cloud and heterogeneous distributed infrastructures, container images are widely used as the deployment unit for machine learning applications. An image bundles the application with its entire platform-specific execution environment and can be directly launched into a container instance. However, this approach forces developers to build and maintain separate images for each target deployment platform. This limitation is particularly evident for widely used interpreted languages such as Python and R in data analytics and machine learning, where application code is inherently cross-platform, yet the runtime dependencies are highly platform-specific. With emerging computing paradigms such as sky computing and edge computing, which demand seamless workload migration and cross-platform deployment, traditional images not only introduce inefficiencies in storage and network usage, but also impose substantial burdens on developers, who must repeatedly craft and manage platform-specific builds. To address these challenges, we propose a lazy-build approach that defers platform-specific construction to the deployment stage, thus keeping the image itself cross-platform. To enable this, we introduce a new image format, CIR (Container Intermediate Representation), together with its pre-builder and lazy-builder. CIR targets interpreted-language applications and only stores the identifiers of the application's direct dependencies, leaving platform adaptation to the lazy-builder, which at deployment time assembles the actual dependencies into runnable containers. A single CIR can therefore be deployed across heterogeneous platforms while reducing image size by 95% compared to conventional images that bundle all dependencies. In our evaluation, CIR reduces deployment time by 40-60% compared with pre-built images, outperforming state-of-the-art systems such as Docker, Buildah, and Apptainer.

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

↑