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

FaaS 不够用:面向突发并行作业的无服务器处理

FaaS Is Not Enough: Serverless Handling of Burst-Parallel Jobs

Daniel Barcelona-Pons, Aitor Arjona, Pedro García-López, Enrique Molina-Giménez, Stepan Klymonchuk

AI总结:

针对FaaS处理突发并行作业的不足,提出基于组调用原语的无服务器方案,通过整合容器增强局部性,实现同步通信,显著降低延迟,TeraSort提速2倍,PageRank提速13倍。

摘要:

函数即服务(FaaS)在处理突发并行作业时面临困难,因为启动一个作业需要多次独立的函数调用。缺乏组调用原语使应用程序开发复杂化,并忽略了诸如局部性和工作进程间通信等关键方面。我们提出了一种专为突发并行作业设计的新型无服务器解决方案。与FaaS不同,我们的解决方案通过组调用原语确保作业级隔离,允许同时启动大量工作进程组。该方法通过将工作进程整合到更少的容器中来优化资源分配,加快其初始化并增强局部性。与FaaS相比,增强的局部性大幅减少了远程通信,结合同时性,使工作进程能够通过消息传递和组集合进行同步通信。这使得在FaaS下不可行的应用变得可行。我们在OpenWhisk上实现了我们的解决方案,提供了一种通信中间件,利用零拷贝消息传递高效地利用局部性。评估表明,与传统的FaaS相比,它减少了作业调用和通信延迟,使TeraSort提速2倍,PageRank的远程通信减少98.5%(提速13倍)。

英文摘要:

Function-as-a-Service (FaaS) struggles with burst-parallel jobs due to needing multiple independent invocations to start a job. The lack of a group invocation primitive complicates application development and overlooks crucial aspects like locality and worker communication. We introduce a new serverless solution designed specifically for burst-parallel jobs. Unlike FaaS, our solution ensures job-level isolation using a group invocation primitive, allowing large groups of workers to be launched simultaneously. This method optimizes resource allocation by consolidating workers into fewer containers, speeding up their initialization and enhancing locality. Enhanced locality drastically reduces remote communication compared to FaaS, and combined with simultaneity, it enables workers to communicate synchronously via message passing and group collectives. This makes applications that are impractical with FaaS feasible. We implemented our solution on OpenWhisk, providing a communication middleware that efficiently uses locality with zero-copy messaging. Evaluations show that it reduces job invocation and communication latency, resulting in a 2$\times$ speed-up for TeraSort and a 98.5% reduction in remote communication for PageRank (13$\times$ speed-up) compared to traditional FaaS.

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

↑