arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~

使用初始化脚本实现快速端到端云应用冷启动

Fast end-to-end cloud application cold-start with initscripts

Ariel Szekely, Hannah Gross, Robert Morris, M. Frans Kaashoek

arXiv 2608.07358首次发表:更新:

AI 中文总结

本文提出initscripts(初始化脚本),通过重叠设置与初始化步骤减少无服务器应用冷启动延迟,经测试可将ServerlessBench Python应用等的冷启动平均提速1.67倍。

AI 中文摘要

无服务器函数是部署云应用的流行方式。由于其中许多函数运行时间短且频繁遭遇冷启动,启动延迟往往主导其执行延迟。启动延迟可分为两部分:设置和初始化。设置涉及云平台启动应用时执行的步骤,例如下载其二进制文件并创建隔离执行环境;初始化涉及应用启动后、能执行有用工作前的步骤,例如连接其他服务、协调申请工作及下载输入。本文提出initscripts(初始化脚本),为开发者提供可脚本化接口,以向云平台指定应用的初始化例程。平台随后可运行应用的初始化脚本,通过重叠设置与初始化步骤减少应用启动延迟。应用正常运行后,初始化脚本会将初始化结果传输给应用以引导其启动。使用初始化脚本,我们无需修改应用即可将多个ServerlessBench Python应用的冷启动平均提速1.67倍;还将无服务器图像识别工作负载的启动时间提速1.81倍,同时也能加速etcd和memcached等现成微服务的启动。

英文摘要

Serverless functions are a popular way of deploying cloud applications. Because many of these functions are short- running and experience frequent cold-starts, start latencies often dominate their execution latency. Start latency can be broken down into two components: setup and initialization. Setup involves steps the cloud platform takes when starting an application, such as downloading its binary and creating an isolated execution environment. Initialization involves steps the application takes after it has started running but before it can do useful work, such as connecting to other services, coordinating to claim work, and downloading inputs. This paper contributes initscripts, which provide a script- able interface for developers to specify their application's initialization routine to the cloud platform. The platform can then run an application's initscript and reduce application start latency by overlapping setup and initialization steps. Once the application is up and running, the initscript bootstraps the application by transferring initialization results to it. Using initscripts, we were able to speed up cold-starts of several of the ServerlessBench Python applications by an average 1.67X with no modifications to the application. Initscripts also speed up start times for a serverless image recognition workload by 1.81X, and off-the-shelf microservices like etcd and memcached.

论文原文

arXiv 摘要页 · PDF 原文 · HTML 原文

↑