[Paper Review] Real-Time XFEL Data Analysis at SLAC and NERSC: a Trial Run of Nascent Exascale Experimental Data Analysis
This paper demonstrates real-time, exascale-capable data analysis for X-ray Free Electron Laser (XFEL) experiments by integrating SLAC's LCLS facility with NERSC's Cori supercomputer via a Superfacility workflow. Using automated data transfer and the CCTBX software stack in Docker containers, the team achieved full molecular reconstruction in as little as 10 minutes—matching the data acquisition rate and enabling real-time experimental decision-making for high-throughput XFEL studies.
X-ray scattering experiments using Free Electron Lasers (XFELs) are a powerful tool to determine the molecular structure and function of unknown samples (such as COVID-19 viral proteins). XFEL experiments are a challenge to computing in two ways: i) due to the high cost of running XFELs, a fast turnaround time from data acquisition to data analysis is essential to make informed decisions on experimental protocols; ii) data collection rates are growing exponentially, requiring new scalable algorithms. Here we report our experiences analyzing data from two experiments at the Linac Coherent Light Source (LCLS) during September 2020. Raw data were analyzed on NERSC's Cori XC40 system, using the Superfacility paradigm: our workflow automatically moves raw data between LCLS and NERSC, where it is analyzed using the software package CCTBX. We achieved real time data analysis with a turnaround time from data acquisition to full molecular reconstruction in as little as 10 min -- sufficient time for the experiment's operators to make informed decisions. By hosting the data analysis on Cori, and by automating LCLS-NERSC interoperability, we achieved a data analysis rate which matches the data acquisition rate. Completing data analysis with 10 mins is a first for XFEL experiments and an important milestone if we are to keep up with data collection trends.
Motivation & Objective
- To address the growing computational challenge of analyzing ultra-high-rate XFEL data, which is expected to exceed 400× current rates by 2025.
- To enable real-time feedback during XFEL experiments by synchronizing data analysis with data acquisition, ensuring timely decisions on experimental protocols.
- To develop and validate a scalable, automated, and resilient workflow for distributed HPC-based analysis across national user facilities.
- To demonstrate the feasibility of using the Superfacility model—integrating experimental facilities with HPC centers—for sustainable, urgent computing in high-data-rate science.
- To create a generalizable, portable, and production-ready pipeline for real-time analysis of serial femtosecond crystallography data.
Proposed method
- Automated data transfer from LCLS’s spinning-disk storage to NERSC’s Scratch file system using XRootD over the ESNet network at rates up to 2.6 GB/s.
- Deployment of CCTBX software in Shifter containers on Cori XC40 compute nodes to enable reproducible, isolated, and portable analysis workflows.
- Use of DataWarp burst buffer at NERSC as a high-speed cache to accelerate I/O-intensive data processing.
- Orchestration of analysis jobs via a MySQL database hosted at NERSC, allowing real-time monitoring and parameter iteration by users at both LCLS and NERSC.
- Integration of the Science Facility (SF) API to monitor system health, manage job scheduling, and automate data movement and job execution across HPC resources.
- Implementation of an Airflow-based Directed Acyclic Graph (DAG) to manage complex, multi-stage analysis pipelines, including indexing, merging, and reconstruction steps.
Experimental results
Research questions
- RQ1Can real-time data analysis be achieved at scale for XFEL experiments, with turnaround times matching data acquisition rates?
- RQ2How can a robust, automated, and fault-tolerant workflow be established between a national user facility (LCLS) and a high-performance computing center (NERSC)?
- RQ3To what extent can HPC resources be dynamically and automatically orchestrated to handle urgent, high-throughput data analysis in experimental science?
- RQ4What architectural and software patterns enable sustainable, scalable, and portable real-time analysis for future exascale XFEL facilities?
- RQ5How can system health and resource availability be programmatically monitored and used to guide automated data and job routing in real time?
Key findings
- The team achieved a peak turnaround time of 10 minutes from data acquisition to full molecular reconstruction, enabling real-time feedback for experimental decisions.
- The data analysis rate matched the data acquisition rate of 120 images per second, processing 130 TB of raw data (28 million images) over 15 TB per day.
- The Superfacility workflow successfully automated data movement and analysis across LCLS and NERSC, reducing manual intervention and increasing operational efficiency.
- The use of the SF API enabled dynamic, automated job scheduling and health monitoring, with status checks via /status/ endpoints and automated data transfers via /storage.
- The workflow was fully portable to newer systems, including NERSC’s Perlmutter supercomputer, with successful deployment of CCTBX.xfel on Perlmutter’s CPU nodes.
- The Airflow-based DAG pipeline enabled reliable, stateful execution of complex, multi-step analysis workflows with real-time progress tracking and result delivery to users.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.