arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.02867cs.DC
收藏

GoldFish:面向边云连续体的具有短期记忆状态的无服务器 Actor

GoldFish: Serverless Actors with Short-Term Memory State for the Edge-Cloud Continuum

Cynthia Marcelino, Jack Shahhoud, Stefan Nastic

AI总结:

针对无服务器 actor 依赖远程状态管理导致的性能与成本问题,本文提出短期有状态生命周期与新型调用模型,并实现基于 WebAssembly 的 GoldFish 平台,显著降低延迟、提升吞吐。

摘要:

无服务器计算是一种提供高效基础设施管理和弹性可扩展性的计算范式。无服务器函数根据需求进行扩缩容,这意味着函数不能被直接寻址,而依赖平台管理的调用。无服务器的无状态特性要求函数利用对象存储和 KVS 等外部服务来交换数据。无服务器 actor 已作为解决这些问题的方案出现。然而,最先进的无服务器生命周期和事件触发调用迫使 actor 利用远程服务来管理其状态并交换数据,这会影响性能,并产生额外成本以及对第三方服务的依赖。为解决这些问题,本文提出一种新颖的无服务器生命周期模型,允许短期有状态 actor,使 actor 能够在多次执行之间保持其状态。此外,我们提出一种新颖的无服务器调用模型,使无服务器 actor 能够影响未来消息的处理。我们介绍了 GoldFish,这是一个轻量级的 WebAssembly 短期有状态无服务器 actor 平台,提供新颖的无服务器 actor 生命周期和调用模型。GoldFish 利用 WebAssembly 为 actor 提供轻量级沙箱隔离,使其适用于计算资源有限的边云连续体。实验结果表明,与 OpenFaaS 和 Spin 相比,GoldFish 将数据交换延迟最高优化了 92%,并将吞吐量最高提升至 10 倍。

英文摘要:

Serverless Computing is a computing paradigm that provides efficient infrastructure management and elastic scalability. Serverless functions scale up or down based on demand, which means that functions are not directly addressable and rely on platform-managed invocation. Serverless stateless nature requires functions to leverage external services, such as object storage and KVS, to exchange data. Serverless actors have emerged as a solution to these issues. However, the state-of-the-art serverless lifecycle and event-trigger invocation force actors to leverage remote services to manage their state and exchange data, which impacts the performance and incurs additional costs and dependency on third-party services. To address these issues, in this paper, we introduce a novel serverless lifecycle model that allows short-term stateful actors, enabling actors to maintain their state between executions. Additionally, we propose a novel serverless Invocation Model that enables serverless actors to influence the processing of future messages. We present GoldFish, a lightweight WebAssembly short-term stateful serverless actor platform that provides a novel serverless actor lifecycle and invocation model. GoldFish leverages WebAssembly to provide the actors with lightweight sandbox isolation, making them suitable for the Edge-Cloud Continuum, where computational resources are limited. Experimental results show that GoldFish optimizes the data exchange latency by up to 92% and increases the throughput by up to 10x compared to OpenFaaS and Spin.

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

↑