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

一种基于内存的无服务器函数加速器

A Language-based Serverless Function Accelerator

Emily Herbert, Arjun Guha

摘要:

无服务器计算是云计算的一种方法,它允许程序员运行无服务器功能以响应外部事件。无服务器功能的价格为亚秒级,支持透明的弹性,并将程序员从管理操作系统中解放出来。因此,无服务器功能允许程序员专注于编写应用程序代码,而云提供商则可以在全球范围内管理计算资源。不幸的是,今天的无服务器平台表现出高延迟,因为很难在最大限度地提高资源利用率的同时最大限度地降低运营成本。本文提出了无服务器函数加速,这是一种透明地降低一大类无服务器函数的延迟和资源利用率的方法。我们使用基于语言的沙箱来实现这一点,而现有的无服务器平台采用更昂贵的操作系统沙箱技术,如容器和虚拟机。基于操作系统的沙箱比基于语言的技术兼容更多的程序。然而,我们并没有排除任何程序,而是在可能的情况下使用基于语言的沙箱,如果必要的话,使用基于操作系统的沙箱。此外,我们无缝过渡基于语言和基于操作系统的沙盒利用的事实,即无服务器功能必须容忍重新执行容错。因此,当无服务器函数试图在基于语言的沙箱中执行不受支持的操作时,我们可以安全地在容器中重新执行它。我们使用一种新的方法来跟踪编译构建源代码级,过程间,执行跟踪树的无服务器功能编写的JavaScript。我们将跟踪树编译为Rust的安全子集,验证编译器输出,并将其链接到运行时系统。我们在我们的实现中评估这些技术,我们称之为无容器。

英文摘要:

Serverless computing is an approach to cloud computing that allows programmers to run serverless functions in response to external events. Serverless functions are priced at sub-second granularity, support transparent elasticity, and relieve programmers from managing the operating system. Thus serverless functions allow programmers to focus on writing application code, and the cloud provider to manage computing resources globally. Unfortunately, today's serverless platforms exhibit high latency, because it is difficult to maximize resource utilization while minimizing operating costs. This paper presents serverless function acceleration, which is an approach that transparently lowers the latency and resource utilization of a large class of serverless functions. We accomplish this using language-based sandboxing, whereas existing serverless platforms employ more expensive operating system sandboxing technologies, such as containers and virtual machines. OS-based sandboxing is compatible with more programs than language-based techniques. However, instead of ruling out any programs, we use language-based sandboxing when possible, and OS-based sandboxing if necessary. Moreover, we seamlessly transition between language-based and OS-based sandboxing by leveraging the fact that serverless functions must tolerate re-execution for fault tolerance. Therefore, when a serverless function attempts to perform an unsupported operation in the language-based sandbox, we can safely re-execute it in a container. We use a new approach to trace compilation to build source-level, interprocedural, execution trace trees for serverless functions written in JavaScript. We compile trace trees to a safe subset of Rust, validate the compiler output, and link it to a runtime system. We evaluate these techniques in our implementation, which we call Containerless.

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

↑