Skip to main content
QUICK REVIEW

[论文解读] Serverless Supercomputing: High Performance Function as a Service for Science

Ryan Chard, Tyler J. Skluzacek|arXiv (Cornell University)|Aug 13, 2019
Cloud Computing and Resource ManagementComputer Science被引用 17
一句话总结

本文介绍了 $f$ unc X,一种高性能无服务器计算(FaaS)平台,通过抽象跨云、集群和超级计算机的远程执行,实现了科学工作负载的无服务器超算。该平台在 Theta 超级计算机上实现了数百万个函数的低延迟、可扩展执行,支持 65,000 个并发工作者,性能与商业 FaaS 平台相当。

ABSTRACT

Growing data volumes and velocities are driving exciting new methods across the sciences in which data analytics and machine learning are increasingly intertwined with research. These new methods require new approaches for scientific computing in which computation is mobile, so that, for example, it can occur near data, be triggered by events (e.g., arrival of new data), or be offloaded to specialized accelerators. They also require new design approaches in which monolithic applications can be decomposed into smaller components, that may in turn be executed separately and on the most efficient resources. To address these needs we propose funcX---a high-performance function-as-a-service (FaaS) platform that enables intuitive, flexible, efficient, scalable, and performant remote function execution on existing infrastructure including clouds, clusters, and supercomputers. It allows users to register and then execute Python functions without regard for the physical resource location, scheduler architecture, or virtualization technology on which the function is executed---an approach we refer to as "serverless supercomputing." We motivate the need for funcX in science, describe our prototype implementation, and demonstrate, via experiments on two supercomputers, that funcX can process millions of functions across more than 65000 concurrent workers. We also outline five scientific scenarios in which funcX has been deployed and highlight the benefits of funcX in these scenarios.

研究动机与目标

  • 解决科学工作负载在 HPC 基础设施上具有间歇性、短时运行特性与传统批处理作业系统之间的不匹配问题。
  • 使科学家能够远程执行 Python 函数,而无需管理基础设施、调度器或认证复杂性。
  • 通过将函数逻辑与底层执行环境解耦,支持事件驱动、数据驱动和加速器感知计算。
  • 为跨异构科研计算基础设施执行科学函数提供可移植、安全且可扩展的抽象。
  • 通过容器化、基于函数的工作负载,实现安全的代码共享和可重现的执行,支持科学团队协作。

提出的方法

  • f$ unc X 平台通过 FaaS 接口暴露,用户可使用 @python_app 或 @bash_app 装饰器注册 Python 函数,实现远程执行。
  • 利用容器化和动态容器暂存技术,确保在包括 Slurm、Kubernetes 和云提供商在内的多样化执行后端之间具备可移植性和兼容性。
  • 系统使用轻量级端点服务,统一管理跨异构 HPC 和云环境的函数调用、调度和资源分配。
  • 与现有 HPC 调度器(如 Slurm)集成,并支持按需动态分配计算资源,实现无服务器执行。
  • 平台支持基于事件的触发机制,可自动扩展以处理数千个并发函数调用。
  • 通过未来扩展支持按用户和按函数的计费机制,实现细粒度的访问控制和多租户支持。

实验结果

研究问题

  • RQ1FaaS 模型能否有效适配需要在 HPC 和云资源上实现低延迟、高吞吐量执行的科学工作负载?
  • RQ2在像 Theta 这类大规模超级计算机上部署时,$f$ unc X 在延迟和可扩展性方面表现如何?
  • RQ3与传统批处理作业系统相比,$f$ unc X 在简化科学工作负载的部署和管理方面能带来多大程度的改进?
  • RQ4在真实科研场景中,$f$ unc X 支持事件驱动和数据驱动科学工作流的能力如何?
  • RQ5在异构科学计算基础设施上实现可移植、安全且高效的函数执行,面临哪些关键挑战?

主要发现

  • $f$ unc X 在 Theta 超级计算机上实现了低延迟函数执行,性能与商业云 FaaS 平台相当。
  • 该平台成功在 Theta 超级计算机的 1024 个节点上,通过 65,000 个并发工作者执行了 100 万个函数。
  • 在 XPCS 用例中,corr 函数在约 50 秒内处理完一个数据集,图像通过按需函数调用并行处理。
  • 在 SSX 用例中,$f$ unc X 实现了从单个到数千个图像分析任务的无缝水平扩展,得益于其自动工作负载分发机制。
  • 研究人员报告开发和部署开销显著降低,不再需要管理作业提交脚本、认证或环境配置。
  • 该平台实现了安全的代码共享,研究人员可直接在其本地数据集上运行函数,无需配置本地环境。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。