可查找的OCI:通过范围请求索引延迟加载容器镜像
Seekable OCI: Lazy-Loading Container Images via Range-Request Indexing
AI总结:
研究针对Kubernetes环境中容器镜像拉取耗时问题,提出SOCI延迟加载架构,通过构建外部索引、利用FUSE文件系统和HTTP范围请求实现,大幅减少冷启动拉取时间,在生产环境中应用并取得良好效果。
摘要:
在Kubernetes环境中,容器镜像拉取占Pod启动时间的大部分。标准拉取会在容器启动前下载整个镜像,即便应用在启动时仅访问镜像内容的一小部分。我们提出了SOCI(可查找的OCI),一种延迟加载架构,能使容器不下载完整镜像就启动。SOCI在标准OCI镜像上构建外部索引,将文件映射到压缩层内的字节范围。运行时,FUSE文件系统拦截文件访问并通过HTTP范围请求提供服务。与需要镜像格式转换的先前方法不同,SOCI适用于未修改的镜像和标准注册表。索引存储为OCI引用工件,无需对镜像、注册表或部署工具进行更改。在一个1.3GB的Python网络服务镜像上,SOCI将冷启动拉取时间从20秒减少到约2.8秒(加速7.4倍),拉取时间与镜像大小无关。更大的镜像加速倍数更大(2.5GB镜像上为9.3倍),因为SOCI拉取时间恒定,而标准拉取呈线性扩展。我们测量出在80%访问密度时有一个交叉点:低于此值,延迟加载更优;高于此值,并行全拉更快。SOCI延迟加载已在亚马逊EKS和亚马逊ECS Fargate上投入生产(在2025年Prime Day期间每天启动1840万个任务),自2023年以来一直在处理延迟加载请求。EKS自动模式对GPU实例使用SOCI的并行拉取模式。
英文摘要:
Container image pulling accounts for the majority of pod startup time in Kubernetes environments. Standard pull downloads the entire image before the container can start, even when the application accesses only a fraction of the image content at startup. We present SOCI (Seekable OCI), a lazy-loading architecture that enables containers to start without downloading the full image. SOCI builds an external index over standard OCI images, mapping files to byte ranges within compressed layers. At runtime, a FUSE filesystem intercepts file accesses and serves them via HTTP range requests. Unlike prior approaches that require image format conversion, SOCI works with unmodified images and standard registries. The index is stored as an OCI referrer artifact, requiring no changes to images, registries, or deployment tooling. On a 1.3 GB Python web service image, SOCI reduces cold-start pull time from 20 seconds to approximately 2.8 seconds (7.4x speedup), with pull time independent of image size. Larger images see larger speedups (9.3x on a 2.5 GB image) because SOCI pull time is constant while standard pull scales linearly. We measure a crossover at 80% access density: below this, lazy loading wins; above, parallel full pull is faster. SOCI lazy loading is deployed in production on Amazon EKS and Amazon ECS Fargate (which launched 18.4 million tasks per day during Prime Day 2025), and has been serving lazy-load requests since 2023. EKS Auto Mode uses SOCI's parallel pull mode for GPU instances.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。