Abstract
Modern scientific instruments are increasingly becoming "data firehoses," generating information at rates that overwhelm traditional manual processing and local storage capabilities. This paper describes a framework designed to bridge the gap between experimental facilities and high-performance computing (HPC) resources. By leveraging the Globus platform and the Gladier toolkit, the authors demonstrate a method for automating distributed computing pipelines—termed "flows"—that facilitate real-time analysis, metadata indexing, and experimental steering.
Introduction
We have entered an era of "Big Data" in experimental science. New detectors at synchrotrons, free-electron lasers, and robotic laboratories now routinely collect data at multiple gigabytes per second (GB/s), often totaling hundreds of terabytes per day. The primary bottleneck in this ecosystem is no longer the acquisition of data, but the speed at which that data can be processed to inform decision-making.
To maximize the utility of scarce experimental time, researchers require online analysis: the ability to process data, extract insights, and steer the instrument in real-time. However, building these pipelines is technically demanding, requiring the coordination of data movement, security, authentication, and diverse computing resources across institutional boundaries. This paper presents a platform-based approach to research automation that addresses these challenges through standardized patterns and specialized toolkits.
The Proposed Framework: Globus and Gladier
Rather than building bespoke scripts for every unique experiment, the authors propose a decoupled architecture that separates the definition of an action from its execution environment. This is achieved through two primary components:
- The Globus Platform: A suite of cloud-hosted services that manage the complexities of distributed systems. Key services include Globus Transfer for reliable data movement, funcX (a federated Function-as-a-Service) for executing code on remote clusters, and Globus Search for automated metadata indexing.
- The Gladier Toolkit: A Python library that allows scientists to define complex flows as simple Python objects. Gladier abstracts the underlying authentication and remote execution logic, enabling domain scientists—rather than just software engineers—to author and maintain automation pipelines.
This architecture allows a flow to move data from an instrument to an HPC center, execute GPU-intensive analysis, and return a summary to the researcher's interface seamlessly.
Application Patterns and Evaluation
The framework was evaluated across five distinct, high-impact scientific applications at the Advanced Photon Source (APS) and the Argonne Leadership Computing Facility (ALCF):
- XPCS (X-ray Photon Correlation Spectroscopy): Studying material dynamics at the nanoscale.
- SSX (Serial Synchrotron Crystallography): Determining protein structures from thousands of micro-crystals.
- Ptychography: High-resolution diffraction imaging.
- HEDM (High Energy Diffraction Microscopy): Characterizing polycrystalline microstructures.
- BraggNN: Utilizing neural networks to approximate expensive curve-fitting functions for HEDM.
Throughout the study, the framework managed approximately 108 TB of data across nearly 50,000 distinct flow runs, demonstrating its robustness in production environments.
Key Insights
The "Flow" Concept
The authors distinguish "flows" from traditional workflows. Flows are specialized, high-speed data patterns specifically associated with instrumentation, requiring low-latency triggers and high-reliability execution to keep pace with physical experiments.
The Computing Continuum
Computation is treated as fluid, moving across a continuum from "edge" devices near the instrument (for rapid quality checks) to massive HPC clusters (for heavy-duty reconstruction). This flexibility ensures that resources are used efficiently based on the specific needs of the analysis step.
FAIR by Design
By automating metadata extraction and indexing via Globus Search, the framework ensures that data is Findable, Accessible, Interoperable, and Reusable (FAIR) as a natural byproduct of the analysis process, rather than an administrative afterthought.
Results and Performance
- Scalability: In XPCS applications, the system successfully managed up to 39 concurrent flows, matching an acquisition rate of one massive data file per minute.
- Efficiency: The system proved to be "compute-bound," meaning the orchestration overhead introduced by the Globus cloud was negligible. In the Ptychography flow, for instance, orchestration overhead accounted for only 0.6% of the total execution time.
- Accessibility: The "low-code" nature of the Gladier toolkit allowed domain scientists to author flows with minimal support, validating the framework's goal of democratizing HPC access.
Discussion and Future Work
While the framework is highly effective, it currently relies on a continuous connection to Globus cloud services, making it sensitive to network outages. Additionally, the current "polling" mechanism for task completion can introduce minor latencies in extremely high-frequency tasks.
Future work aims to move toward "closed-loop" experiments, where AI models automatically adjust instrument parameters based on the results of the preceding flow. Furthermore, the success of these patterns depends heavily on facilities adopting "ScienceDMZ" network architectures to handle the high-speed data transfers required to feed modern HPC centers.
Summary updated