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

FaaSLight:面向无服务器计算中功能即服务的通用应用级冷启动延迟优化

FaaSLight: General Application-Level Cold-Start Latency Optimization for Function-as-a-Service in Serverless Computing

Xuanzhe Liu, Jinfeng Wen, Zhenpeng Chen, Ding Li, Junkai Chen, Yi Liu, Haoyu Wang, Xin Jin

摘要:

无服务器计算是一种流行的云计算范例,它将开发人员从服务器管理中解放出来。功能即服务(FaaS)是无服务器计算最流行的实现,将应用程序表示为事件驱动和无状态功能。然而,现有的研究报告称,FaaS应用程序的功能严重遭受冷启动延迟。在本文中,我们提出了一种名为FaaSLight的方法,通过应用程序级优化来加速FaaS应用程序的冷启动。我们首先进行测量研究,以调查FaaS冷启动问题的可能根本原因。结果表明,应用程序代码加载延迟是一个显着的开销。因此,只从FaaS应用程序加载不可或缺的代码可能是一个足够的解决方案。基于这种见解,我们通过构建函数级调用图来识别与应用程序功能相关的代码,并将其他代码(即,可选代码)。分离出的可选代码可以按需加载,避免了不可缺少的代码识别不准确导致应用程序失败。特别是,指导FaaSLight设计的一个关键原则本质上是通用的,即,与平台和语言无关。在真实FaaS应用上的评测结果表明,FaaSLight可以显著降低代码加载延迟(最高可达78.95%,平均为28.78%),从而降低冷启动延迟。其结果是,总的反应潜伏期可以减少高达42.05%(平均19.21%)。与最先进的技术相比,FaaSLight在减少平均总响应延迟方面实现了21.25倍的改进。

英文摘要:

Serverless computing is a popular cloud computing paradigm that frees developers from server management. Function-as-a-Service (FaaS) is the most popular implementation of serverless computing, representing applications as event-driven and stateless functions. However, existing studies report that functions of FaaS applications severely suffer from cold-start latency. In this paper, we propose an approach namely FaaSLight to accelerating the cold start for FaaS applications through application-level optimization. We first conduct a measurement study to investigate the possible root cause of the cold start problem of FaaS. The result shows that application code loading latency is a significant overhead. Therefore, loading only indispensable code from FaaS applications can be an adequate solution. Based on this insight, we identify code related to application functionalities by constructing the function-level call graph, and separate other code (i.e., optional code) from FaaS applications. The separated optional code can be loaded on demand to avoid the inaccurate identification of indispensable code causing application failure. In particular, a key principle guiding the design of FaaSLight is inherently general, i.e., platform- and language-agnostic. The evaluation results on real-world FaaS applications show that FaaSLight can significantly reduce the code loading latency (up to 78.95%, 28.78% on average), thereby reducing the cold-start latency. As a result, the total response latency of functions can be decreased by up to 42.05% (19.21% on average). Compared with the state-of-the-art, FaaSLight achieves a 21.25X improvement in reducing the average total response latency.

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

↑