Abstract
High-performance computing (HPC) applications have traditionally relied on parallel file systems and file transfer services to manage data movement and storage. Alternative approaches have been proposed that use direct communications between application components, trading persistence and fault tolerance for speed. Event-driven architectures, as popularized in enterprise contexts, present a compelling middle ground, avoiding the performance cost and API constraints of parallel file systems while retaining persistence and offering impedance matching between application components. However, adapting streaming frameworks to HPC workloads requires addressing challenges unique to HPC systems. This paper investigates the potential for a streaming framework designed for HPC infrastructures and use cases. We introduce Mofka, a persistent event-streaming framework designed specifically for HPC environments. Mofka combines the capabilities of a traditional streaming service with optimizations tailored to the HPC context, such as support for massively multicore nodes, efficient scaling for large producer-consumer workflows, RDMA-enabled high-performance network communications, specialized network fabrics with multiple links per node, and efficient handling of large scientific data payloads. Built using the Mochi suite of HPC data service components, Mofka provides a lightweight, modular, and high-performance solution for persistent streaming in HPC systems. We present the architecture of Mofka and evaluate its performance against Kafka and Redpanda using benchmarks on diverse platforms, including Argonne's Polaris and Oak Ridge's Frontier supercomputers, showing up to 8× improvement in throughput in some scenarios. We then demonstrate its utility in several real-world applications: a tomographic reconstruction pipeline, a workflow for the discovery of metal-organic frameworks for carbon capture, and the instrumentation of Dask workflows for provenance tracking and performance analysis.
Introduction
In the realm of High-Performance Computing (HPC), managing data movement has historically presented a binary choice: the persistence of parallel file systems (PFS) or the high-speed, volatile direct communication of MPI. While the PFS offers reliability, it is often hampered by POSIX constraints and locking overhead. Conversely, direct communication is fast but lacks the fault tolerance necessary for complex, multi-stage scientific workflows.
This paper introduces Mofka, a persistent event-streaming framework designed to bridge this gap. By tailoring event-streaming to the unique constraints of exascale supercomputers, Mofka provides a high-performance "middle ground" that decouples data producers from consumers without sacrificing persistence.
The Mofka Architecture
Mofka is constructed using the Mochi suite, a collection of modular "micro-components" designed for HPC data services. Its core innovation lies in the strict separation of metadata and data paths, allowing it to handle massive scientific payloads with minimal overhead.
- Metadata Path: Small, structured information (typically JSON) is serialized into batches and managed by a log provider.
- Data Path: Large scientific payloads, such as multidimensional arrays, are transferred directly from the producer's memory to storage using Remote Direct Memory Access (RDMA). This approach bypasses the CPU-intensive serialization and intermediate buffering that bottleneck enterprise streaming tools.
The architecture is highly modular, utilizing Argobots (user-level threads) to manage concurrency more efficiently than standard POSIX threads on many-core HPC nodes. This modularity allows researchers to swap underlying storage or networking protocols without re-engineering the entire system.
Performance Evaluation
The authors evaluated Mofka against enterprise standards like Apache Kafka and Redpanda on world-class systems, including Argonne’s Polaris and Oak Ridge’s Frontier exascale supercomputer.
Key findings include:
- Throughput Gains: In synthetic benchmarks on the Improv system, Mofka achieved up to 8× the throughput of Kafka and Redpanda for specific event sizes.
- Scalability: While enterprise tools often hit performance ceilings around 1 GB/s due to their reliance on TCP/IP, Mofka scales effectively with the number of server nodes by leveraging RDMA and multiple network interface cards (NICs) per node.
- Efficiency: In real-world tests, Mofka reduced per-event overhead by at least 12× compared to traditional ZeroMQ-based implementations while providing the critical benefit of data persistence.
Scientific Use Cases
Mofka’s utility was demonstrated across several diverse scientific pipelines:
- TekApp: A 3D tomographic reconstruction pipeline where Mofka managed high-frequency image streams.
- MOFA: An AI-driven workflow for discovering metal-organic frameworks for carbon capture, requiring seamless data movement between AI models and simulations.
- Flowcept: A tool for tracking provenance and performance in Dask workflows, where Mofka provided a persistent log for instrumentation data.
Conclusion and Future Work
Mofka demonstrates that event-streaming is not only viable for HPC but can significantly outperform cloud-native solutions when optimized for specialized hardware. Current limitations include the overhead of Python’s Global Interpreter Lock (GIL) in high-level workflows. Future development will focus on integrating the RAFT consensus protocol to provide robust data replication and fault tolerance without sacrificing the performance gains established in this study.
Summary updated