HotSwap:在无服务器计算中实现实时依赖共享
HotSwap: Enabling Live Dependency Sharing in Serverless Computing
AI总结:
本文提出 HotSwap,一种无服务器计算中提供商侧的跨函数冷启动优化方法,通过预初始化实时依赖镜像迁移与共享策略,在遵守缓存约束的前提下,显著加速依赖加载并节省缓存空间。
摘要:
本工作提出了 HotSwap,一种用于无服务器计算的全新提供商侧冷启动优化方法。该优化减少了在函数容器内运行时启动和加载依赖项时的冷启动时间。以往的研究广泛集中于减少特定函数的冷启动延迟。然而,对于倾斜的生产工作负载却鲜少受到关注。在这种情况下,跨函数优化变得至关重要。如果没有跨函数优化,云提供商只剩下两个同样糟糕的选择:(i)要么云提供商放弃对长尾中每个函数的优化(这很慢);要么(ii)云提供商对长尾中的每个函数应用特定于函数的优化(例如,缓存函数镜像)(这违反了供应商的缓存约束)。HotSwap 使用一种新颖的预热策略展示了跨函数优化。在此策略中,预初始化的实时依赖镜像被迁移到新的函数实例。同时,HotSwap 尊重提供商的缓存约束,因为缓存中单个预热的依赖镜像可以在所有需要该镜像的无服务器函数之间共享。HotSwap 已在 FunctionBench 的七个代表性函数上进行了测试。在这些测试中,HotSwap 将那些具有大依赖需求的无服务器函数的依赖加载速度提高了 2.2 到 3.2 倍。使用 Azure 轨迹的模拟实验表明,当在十个不同函数之间共享依赖镜像时,与先前特定于函数的方法 PreBaking 相比,HotSwap 可以节省 88% 的空间。
英文摘要:
This work presents HotSwap, a novel provider-side cold-start optimization for serverless computing. This optimization reduces cold-start time when booting and loading dependencies at runtime inside a function container. Previous research has extensively focused on reducing cold-start latency for specific functions. However, little attention has been given to skewed production workloads. In such cases, cross-function optimization becomes essential. Without cross-function optimization, a cloud provider is left with two equally poor options: (i) Either the cloud provider gives up optimization for each function in the long tail (which is slow); or (ii) the cloud provider applies function-specific optimizations (e.g., cache function images) to every function in the long tail (which violates the vendor's cache constraints). HotSwap demonstrates cross-function optimization using a novel pre-warming strategy. In this strategy, a pre-initialized live dependency image is migrated to the new function instance. At the same time, HotSwap respects the provider's cache constraints, because a single pre-warmed dependency image in the cache can be shared among all serverless functions that require that image. HotSwap has been tested on seven representative functions from FunctionBench. In those tests, HotSwap accelerates dependency loading for those serverless functions with large dependency requirements by a factor ranging from 2.2 to 3.2. Simulation experiments using Azure traces indicate that HotSwap can save 88\% of space, compared with a previous function-specific method, PreBaking, when sharing a dependency image among ten different functions.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。