这不是终结:重新思考无服务器函数终止
This is not the End: Rethinking Serverless Function Termination
摘要:
弹性扩展是无服务器平台提供的核心优势之一,要求它们根据不断变化的工作负载来扩展资源。无服务器平台通过终止先前启动的实例(容器或进程)来缩减资源。无服务器编程模型确保终止实例是安全的,假设在实例上运行的所有应用程序代码都已完成或超时。因此,安全性取决于无服务器平台正确确定应用程序处理完成。在本文中,我们首先观察到当前的无服务器平台在确定应用程序处理是否完成时没有考虑到挂起的异步I/O操作。因此,当执行使用异步I/O的程序时,这些平台是不安全的,并且当使用这些平台时,错误地判定应用程序处理已经终止可能导致数据不一致。我们表明,这个问题的原因是,目前的无服务器语义耦合在无服务器应用程序的终止和响应生成。我们通过对当前语义的扩展来解决这个问题,该扩展可以使响应的生成和终止变得简单,并通过扩展OpenWhisk(一个开源无服务器平台)来证明我们的建议的有效性和好处。
英文摘要:
Elastic scaling is one of the central benefits provided by serverless platforms, and requires that they scale resource up and down in response to changing workloads. Serverless platforms scale-down resources by terminating previously launched instances (which are containers or processes). The serverless programming model ensures that terminating instances is safe assuming all application code running on the instance has either completed or timed out. Safety thus depends on the serverless platform's correctly determining that application processing is complete. In this paper, we start with the observation that current serverless platforms do not account for pending asynchronous I/O operations when determining whether application processing is complete. These platforms are thus unsafe when executing programs that use asynchronous I/O, and incorrectly deciding that application processing has terminated can result in data inconsistency when these platforms are used. We show that the reason for this problem is that current serverless semantics couple termination and response generation in serverless applications. We address this problem by proposing an extension to current semantics that decouples response generation and termination, and demonstrate the efficacy and benefits of our proposal by extending OpenWhisk, an open source serverless platform.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。