arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2406.01374cs.DC
收藏

sAirflow:在遗留工作流调度器中采用无服务器架构

sAirflow: Adopting Serverless in a Legacy Workflow Scheduler

Filip Mikina, Pawel Zuk, Krzysztof Rzadca

AI总结:

研究降低遗留工作流系统Airflow迁移至无服务器架构的风险,提出sAirflow系统,通过CDC和消息队列限制代码修改,利用FaaS实现高效扩展,在保持接口不变的同时显著降低成本并提升并行性能。

摘要:

无服务器云承诺高效的扩展性、减少运维劳作与资金成本。然而,将复杂的遗留应用无服务器化可能需要大规模重构,因此存在风险。作为案例研究,我们使用Airflow这一工业标准工作流系统。为降低迁移风险,我们提出通过依赖变更数据捕获(CDC)和消息队列进行内部通信来限制代码修改。为实现无服务器效率,我们依赖函数即服务(FaaS)。我们的系统sAirflow是首个将控制平面和工作节点适配到无服务器云的方案——并且它保持了相同的接口和大部分代码。在实验中,我们展示了sAirflow提供了关键的无服务器优势:扩展性和成本降低。我们将sAirflow与MWAA(一种托管SaaS Airflow)进行比较。在热系统的Alibaba基准测试中,sAirflow表现相似,同时将资金成本减半。在冷系统的高并行工作流上,sAirflow在几秒内扩展至125个工作节点,将完成时间缩短2倍至7倍。

英文摘要:

Serverless clouds promise efficient scaling, reduced toil and monetary costs. Yet, serverless-ing a complex, legacy application might require major refactoring and thus is risky. As a case study, we use Airflow, an industry-standard workflow system. To reduce migration risk, we propose to limit code modifications by relying on change data capture (CDC) and message queues for internal communication. To achieve serverless efficiency, we rely on Function-as-a-Service (FaaS). Our system, sAirflow, is the first adaptation of the control plane and workers to the serverless cloud - and it maintains the same interface and most of the code. Experimentally, we show that sAirflow delivers the key serverless benefits: scaling and cost reduction. We compare sAirflow to MWAA, a managed (SaaS) Airflow. On Alibaba benchmarks on warm systems, sAirflow performs similarly while halving the monetary cost. On highly parallel workflows on cold systems, sAirflow scales out in seconds to 125 workers, reducing makespan by 2x-7x.

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

↑