Real-Time XFEL Data Analysis at SLAC and NERSC: a Trial Run of Nascent Exascale Experimental Data Analysis
Johannes P. Blaschke, Aaron S. Brewster, Daniel W. Paley, Derek Mendez, Asmit Bhowmick, Nicholas K. Sauter, Wilko Kröger, Murali Shankar, Bjoern Enders, Deborah Bard
TL;DR
The study addresses the challenge of real-time analysis for high-rate XFEL experiments by implementing a Superfacility workflow that relocates raw data from LCLS to NERSC for processing with CCTBX. Data movement relies on Kafka-driven datamovers, XRootD, ESnet, and the DataWarp burst buffer, while analysis runs on the Cori XC40 using a scalable MPI-based cctbx.xfel pipeline. A containerized, API-enabled orchestration layer (Spin API) coordinates data transfers, workflow tasks, and real-time reporting, enabling turnaround times as low as 10 minutes and matching data acquisition rates. This work demonstrates End-to-end automation, real-time feedback for experiment control, and actionable insights toward exascale data analysis, with generalizable architectural patterns for other data-intensive science domains.
Abstract
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.
