Data acquisition from high-rate detectors at MAX IV
Paul Bell, Michele Cascella, Felix Engelmann, Thomas Eriksson, Aleko Lilius, Zdenek Matej, Jeremy Metz, Andrii Salnikov, Clemens Weninger, Meghdad Yazdi
TL;DR
This paper presents a scalable data acquisition architecture for MAX IV's high-frame-rate detectors, integrating detector-specific DCUs with a central Kubernetes-managed DAQ cluster and GPFS storage to enable live feedback and on-the-fly processing. It introduces the STINS streaming protocol over ZeroMQ, a Python-based stream-receiver pipeline with modular processing and a Tango-controlled detector interface, and demonstrates through end-to-end tests that the system can sustain up to $2{,}000$ fps for typical $200{,}kB$ frames and up to $4{,}GB/s$ for large frames, with performance limited by software I/O rather than network bandwidth. The work details the IT and Kubernetes infrastructure, including SR-IOV networking, GitOps deployment, and policy-driven infrastructure separation, and identifies bottlenecks in HDF5 writing while outlining clear paths for optimization and expansion to multimodal online pipelines. The practical impact lies in enabling reliable, real-time data processing and visualization for high-rate X-ray experiments, with a scalable framework ready to accommodate future detector generations and increasing data deluge.
Abstract
At MAX IV pixelated area detectors are operated at high frame rates to take advantage of the X-ray beam properties available from the fourth generation synchrotron in scattering, diffraction and imaging applications. A variety of photon counting and charge integrating detectors and sCMOS cameras have been integrated into a common data acquisition (DAQ) system in which data are streamed to a central Kubernetes cluster, mounting an IBM Storage Scale (GPFS) file system. The DAQ system provides live feedback from the detectors/cameras and extends to enable on-the-fly data processing. Control system integration via Tango provides a standardised single interface for controlling all DAQ components. Starting from an overview of the detector types in use, we describe the design and implementation of the MAX~IV detector-DAQ system and report a quantitative study of its performance in terms of data throughput and detector operating rates.
