Docker-Enabled Build and Execution Environment (BEE): an Encapsulated Environment Enabling HPC Applications Running Everywhere

Jieyang Chen, Qiang Guan, Xin Liang, Louis James Vernon, Allen McPherson, Li-Ta Lo, Zizhong Chen, James Paul AhrensarXiv 2017

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:

  1. Security: Standard Docker requires root privileges, which are restricted on shared supercomputers.
  2. Performance: Virtualization overhead can degrade the performance of compute-intensive applications.
  3. Non-uniformity: Different sites support incompatible container runtimes like Singularity, Shifter, or Charliecloud.
  4. 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.

The BEE Orchestration Controller manages task threads and interacts with various infrastructure backends.

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.
The four BEE backends provide tailored execution environments for modern HPC, legacy systems, and cloud infrastructures.

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-VM backend 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

BibTeX
@misc{chen2017docker,
  author = {Jieyang Chen and Qiang Guan and Xin Liang and Louis James Vernon and Allen McPherson and Li-Ta Lo and Zizhong Chen and James Paul Ahrens},
  title = {{Docker-Enabled Build and Execution Environment (BEE): an Encapsulated Environment Enabling HPC Applications Running Everywhere}},
  year = {2017},
  eprint = {1712.06790},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1712.06790},
}
Figure