Abstract
Software container solutions have revolutionized application development approaches by enabling lightweight platform abstractions within the so-called "containers." Several solutions are being actively developed in attempts to bring the benefits of containers to high-performance computing systems with their stringent security demands on the one hand and fundamental resource sharing requirements on the other. In this paper, we discuss the benefits and short-comings of such solutions when deployed on real HPC systems and applied to production scientific applications. We highlight use cases that are either enabled by or significantly benefit from such solutions. We discuss the efforts by HPC system administrators and support staff to support users of these type of workloads on HPC systems not initially designed with these workloads in mind focusing on NCSA's Blue Waters system.
Introduction
In modern scientific computing, reproducibility is a critical hurdle. Researchers frequently encounter difficulties when migrating complex software stacks between computing facilities due to variations in underlying hardware and operating systems. While Docker transformed general application development by packaging software with its dependencies, its standard implementation presents significant security and architectural challenges in High-Performance Computing (HPC) environments—most notably the requirement for root privileges and scaling issues across massive node counts.
This study examines the deployment of Shifter, a container solution tailored for HPC, on NCSA’s Blue Waters supercomputer. The goal is to bridge the gap between container flexibility and the rigorous security and performance requirements of supercomputing, supporting both traditional MPI-based simulations and modern High-Throughput Computing (HTC) workloads.
Shifter Architecture and Implementation
The evaluation focused on Shifter v16.08.3, which converts Docker images into a squashfs-formatted User Defined Image (UDI). This UDI is mounted on compute nodes as a read-only file system, ensuring consistency and security.
Key technical components include:
- Image Gateway: A RESTful service managing image downloads and conversions.
- ABI Compatibility: Shifter utilizes the MPICH ABI compatibility initiative. This allows applications built inside a container (e.g., on CentOS) to leverage specialized, low-level Cray MPI communication libraries on the host, maintaining high performance.
- Workload Manager Integration: Integration with the PBS (Portable Batch System) allows users to request containers through standard job script directives.
Performance and Scalability
A primary concern with containerization is the potential "performance tax" on communication and I/O. However, benchmarks using OSU Micro-Benchmarks and IOR MPI I/O showed that Shifter achieves performance parity with the native Cray Linux Environment (CLE).
As shown in the MPI benchmarks, the latency and bandwidth for operations like MPI_Alltoall and MPI_Bcast are statistically identical between containerized and native execution. This confirms that ABI compatibility effectively eliminates overhead for message passing.
Furthermore, the study found that job start-up times are largely independent of container size (tested from 36 MB to 1.7 GB). However, scalability challenges were noted beyond 2,048 nodes, where start-up times began to scale superlinearly. A significant administrative discovery was the "thundering herd" effect on LDAP servers during large-scale lookups, which was mitigated by enabling the Name Service Cache Daemon (NSCD) on compute nodes.
Scientific Impact and Adoption
Shifter has enabled diverse scientific communities to utilize Blue Waters more effectively. Major collaborations, including ATLAS (Large Hadron Collider), LIGO (Gravitational Waves), and NANOGrav, have successfully transitioned their workflows to the system.
- LIGO: Workflows were scaled up to 5,000 nodes (over 160,000 cores) using Shifter, allowing the use of OSG-ready Docker images without manual porting.
- ATLAS: This project alone consumed over 115,000 node-hours via Shifter in a single period.
- Flexibility: Containers allowed researchers to deploy modern tools like PySCF and PowerGRID (GPU-enabled MRI reconstruction) with complex dependencies that would have been prohibitive to install natively.
Conclusion and Future Work
While Shifter provides a robust solution for containerized HPC, it introduces new complexities. The backend infrastructure (Redis, MongoDB, Munge) creates multiple points of failure that can be difficult to troubleshoot. Additionally, while containers simplify deployment, the initial creation of scientific containers still requires significant manual effort. Future research will focus on optimizing resource allocation for the "bursty" usage patterns observed in containerized scientific campaigns.
Summary updated