Skip to main content
QUICK REVIEW

[Paper 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 Science17 citations
TL;DR

This paper introduces $f$ unc X, a high-performance function-as-a-service (FaaS) platform enabling serverless supercomputing for scientific workloads by abstracting remote execution across clouds, clusters, and supercomputers. It achieves low-latency, scalable execution of millions of functions across 65,000 concurrent workers on the Theta supercomputer, demonstrating performance comparable to commercial FaaS platforms.

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.

Motivation & Objective

  • To address the impedance mismatch between sporadic, short-duration scientific workloads and traditional batch job systems on HPC infrastructure.
  • To enable scientists to execute Python functions remotely without managing infrastructure, schedulers, or authentication complexities.
  • To support event-driven, data-driven, and accelerator-aware computation by decoupling function logic from underlying execution environments.
  • To provide a portable, secure, and scalable abstraction for executing scientific functions across heterogeneous research cyberinfrastructure.
  • To enable secure code sharing and reproducible execution across scientific teams using containerized, function-based workloads.

Proposed method

  • The $f$ unc X platform exposes a FaaS interface where users register Python functions annotated with @python_app or @bash_app decorators for remote execution.
  • It leverages containerization and dynamic container staging to ensure portability and compatibility across diverse execution backends, including Slurm, Kubernetes, and cloud providers.
  • The system uses a lightweight endpoint service to manage function invocation, scheduling, and resource allocation across heterogeneous HPC and cloud environments.
  • It integrates with existing HPC schedulers (e.g., Slurm) and supports dynamic provisioning of compute resources on demand, enabling serverless execution.
  • The platform supports event-based triggers and scales automatically to handle thousands of concurrent function invocations.
  • It enables secure, fine-grained access control and supports multi-tenancy through future extensions for per-user and per-function accounting.

Experimental results

Research questions

  • RQ1Can a FaaS model be effectively adapted to scientific workloads that require low-latency, high-throughput execution across HPC and cloud resources?
  • RQ2How does $f$ unc X perform in terms of latency and scalability when deployed on a large-scale supercomputer like Theta?
  • RQ3To what extent can $f$ unc X simplify the deployment and management of scientific workloads compared to traditional batch job systems?
  • RQ4How well does $f$ unc X support event-driven and data-driven scientific workflows in real-world research scenarios?
  • RQ5What are the key challenges in enabling portable, secure, and efficient function execution across heterogeneous scientific computing infrastructures?

Key findings

  • $f$ unc X achieved low-latency function execution on the Theta supercomputer, with performance comparable to commercial cloud-based FaaS platforms.
  • The platform successfully executed 1 million functions across 65,000 concurrent workers on 1024 nodes of the Theta supercomputer.
  • In the XPCS use case, the corr function processed a dataset in approximately 50 seconds, with images processed in parallel via on-demand function invocation.
  • The SSX use case demonstrated seamless horizontal scaling from one to thousands of image analyses, enabled by $f$ unc X’s automatic workload distribution.
  • Researchers reported significant reductions in development and deployment overhead, as they no longer needed to manage job submission scripts, authentication, or environment setup.
  • The platform enabled secure code sharing, allowing researchers to run functions on their own datasets without local environment configuration.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.