Real-time HEP analysis with funcX, a high-performance platform for function as a service

Anna Woodard, A. Trisovic, Zhuozhao Li, Yadu Babuji, Ryan Chard, Tyler J. Skluzacek, Ben Blaiszik, Daniel S. Katz, Ian Foster, Kyle ChardEPJ 2020

Abstract

We explore how the function as a service (FaaS) paradigm can be used to address the computing challenges in experimental high-energy physics (HEP) at CERN. As a case study, we use funcX—a high-performance FaaS platform that enables intuitive, flexible, efficient, and scalable remote function execution on existing infrastructure—to parallelize an analysis operating on columnar data to aggregate histograms of analysis products of interest in real-time. We demonstrate efficient execution of such analyses on heterogeneous resources.

Introduction

Experimental high-energy physics, particularly research conducted at CERN’s Large Hadron Collider (LHC), generates staggering amounts of data—hundreds of petabytes annually. Distilling this information into manageable datasets for analysis remains a significant computational hurdle. Traditionally, HEP analysis is performed using monolithic programs and site-specific batch scripts for different computing clusters (using schedulers like Slurm or PBS). This approach suffers from limited portability, poor cross-resource scalability, and high infrastructure management overhead, often forcing researchers to spend more time on "plumbing" than on physics.

The funcX Platform and Methodology

To address these bottlenecks, we propose a FaaS approach using funcX, a distributed platform designed specifically for scientific research. Unlike commercial FaaS offerings, funcX allows users to deploy "endpoints" on existing high-performance computing (HPC) infrastructure. Users interact with a cloud-hosted REST API to register Python functions and submit tasks, abstracting the underlying complexity of the hardware.

Overview of the funcX system architecture, showing the interaction between the client, cloud-hosted service, and remote endpoints.

The system integrates with the Coffea (Columnar Object Framework For Effective Analysis) framework. Coffea shifts from traditional event loops to columnar analysis, utilizing array programming primitives to process entire columns of data at once. To solve environment consistency issues across heterogeneous hardware, the system employs Docker containerization to standardize the execution environment.

Experimental Setup

We evaluated the funcX-Coffea backend using a 425 GB dataset from the Compact Muon Solenoid (CMS) experiment at the LHC. The analysis task involved searching for events where a Higgs boson is produced and subsequently decays into two bottom quarks ($H \to b\bar{b}$). Testing was conducted across four heterogeneous sites with varying hardware (8 to 64 CPU cores per node):

  • University of Chicago (Midway cluster)
  • University of Wisconsin-Madison (CMS Tier-2)
  • University of Notre Dame (NDCRC)
  • River (a 70-node Kubernetes cluster)

Results and Discussion

The evaluation confirms that the funcX-Coffea backend scales efficiently and handles real-world workloads. On the Midway cluster, strong scaling tests showed significant reductions in makespan as core counts increased, leveling off at approximately 250 cores. Weak scaling tests demonstrated the system's ability to support up to 10 concurrent analysts sharing the same endpoint, with all analyses completing in under 10 minutes—a critical threshold for interactive research.

Strong and weak scaling results on the Midway cluster, showing makespan in minutes versus core count for various concurrent analyses.

By abstracting the underlying infrastructure, funcX allows physicists to treat a massive supercomputer as a simple function call. This separation of logic from execution enables the use of heterogeneous resources—routing data-heavy tasks to standard CPUs and machine learning components to GPU-enabled endpoints—without requiring changes to the analysis code.

Conclusion and Future Work

The funcX-Coffea integration enables near real-time interactive analysis of HEP data, significantly reducing the latency between hypothesis and result. Future work will focus on enhancing multi-tenancy security, optimizing data locality to further reduce staging latency, and expanding access to Open Data initiatives. This model provides a scalable path forward for the next generation of high-energy physics research.

Summary updated

BibTeX
@inproceedings{woodard2020real,
  author = {Anna Woodard and A. Trisovic and Zhuozhao Li and Yadu Babuji and Ryan Chard and Tyler J. Skluzacek and Ben Blaiszik and Daniel S. Katz and Ian Foster and Kyle Chard},
  title = {{Real-time HEP analysis with funcX, a high-performance platform for function as a service}},
  booktitle = {EPJ},
  year = {2020},
  doi = {10.1051/epjconf/202024507046},
}
Figure