Introduction
High-Performance Computing (HPC) environments are notoriously difficult to navigate due to their unique, "snowflake" configurations of hardware, libraries, and resource managers. This lack of uniformity creates a "portability nightmare" for researchers. The Build and Execution Environment (BEE) framework addresses this by leveraging container technology and a multi-backend architecture, allowing researchers to run the same containerized applications across local clusters and public clouds without modifying code or configuration.
The Portability Challenge in HPC
While Docker has revolutionized portability in commercial cloud environments, the HPC community faces specific hurdles:
- Security: Standard Docker requires root privileges, which are restricted on shared supercomputers.
- Performance: Virtualization overhead can degrade the performance of compute-intensive applications.
- Non-uniformity: Different sites support incompatible container runtimes like Singularity, Shifter, or Charliecloud.
- Legacy Support: Older systems often lack the kernel features required for modern containerization.
BEE System Architecture
BEE acts as a translation layer between the user and the underlying infrastructure. The system is driven by three user inputs: a Docker image, run scripts, and a beefile (a JSON-based task description).
Orchestration Controller
The Orchestration Controller manages the entire task lifecycle, from input parsing to status monitoring. It handles the "plumbing" required to connect to remote nodes and configure storage environments.
Specialized Backends
To handle diverse environments, BEE utilizes four specialized backends:
- BEE-Charliecloud: Uses unprivileged Linux user namespaces for modern HPC systems, providing near-native performance.
- BEE-VM: Employs a KVM-based virtual machine to host a Docker daemon on legacy systems with older kernels.
- BEE-AWS & BEE-OpenStack: Automates the provisioning of cloud instances, shared storage (EFS/NFS), and networking to create virtual HPC clusters on demand.
Performance Evaluation and Results
The framework was evaluated using synthetic benchmarks (NAS Parallel Benchmarks, HPCBench) and a real-world plasma physics simulation (VPIC) across Chameleon Cloud and AWS.
- Computational Efficiency: For Charliecloud and cloud backends, computational overhead was negligible, consistently staying under 1.6% compared to native execution.
- Network Performance: BEE matched baseline throughput and latency, proving that containers do not throttle high-speed interconnects like InfiniBand.
- Legacy Support Costs: The
BEE-VMbackend showed higher overhead—approximately 5% for compute and 17% for I/O—due to the virtualization layer. - Scalability: In VPIC simulations, BEE demonstrated linear speedup and performance identical to the native baseline when scaling up to 256 processes.
Key Insights and Conclusion
BEE successfully decouples application execution from the underlying hardware through the use of the beefile. By automating complex tasks like shared storage mounting (e.g., Lustre or EFS) and utilizing efficient runtimes like Charliecloud, BEE bridges the gap between container portability and HPC performance requirements. Future work will focus on reducing I/O bottlenecks in the VM-based backend and expanding support to additional cloud providers like GCP and Azure.
Summary updated