Introduction
Managing global-scale computing infrastructures, such as the World-wide LHC Computing Grid (WLCG) utilized by the ATLAS experiment at CERN, is a monumental task. These systems process petabytes of data across hundreds of thousands of daily jobs. To optimize these environments, researchers require robust simulation tools to test scheduling and data management policies without risking production stability. However, existing simulators often struggle with scalability, lack modularity, and fail to provide the high-fidelity data required for modern machine learning (ML) performance models. This paper introduces CGSim, a highly scalable simulation framework designed to bridge these gaps.
The Challenges of Grid Simulation
Existing simulation frameworks for distributed computing face several critical bottlenecks:
- Scalability: Modeling hundreds of sites simultaneously often leads to prohibitive computational overhead.
- Rigidity: Core logic is frequently hardwired, making it difficult for researchers to integrate and test custom scheduling algorithms.
- Observability: Most simulators rely on post-processing logs, lacking real-time insights into system behavior.
- Data for AI: Modern performance modeling relies on ML, yet older simulators do not produce the granular, event-level data necessary to train these models effectively.
CGSim Architecture and Methodology
CGSim is built upon the validated SimGrid discrete-event simulation engine. It adopts a three-layer architecture to ensure flexibility and reproducibility:
- Input Layer: Utilizes JSON files to define infrastructure, network topology, and execution parameters. This ensures that experiments are easily configurable and reproducible.
- Simulation Core: Manages the lifecycle of jobs and resources. A key innovation is the Modular Plugin System, which allows users to implement custom C++ classes to define job assignment logic without modifying the simulator's internal engine.
- Output Layer: Results are stored in SQLite databases, complemented by a real-time web dashboard. This dashboard allows for the monitoring of "node pressure" (CPU utilization) and job status as the simulation progresses.
Calibration Framework
To ensure the simulation accurately reflects real-world performance, the authors implemented a calibration pipeline. Using optimization algorithms such as Random Search and Covariance Matrix Adaptation Evolution Strategy (CMA-ES), they tuned CPU processing speed parameters. This process aligned simulated "walltimes" (execution times) with historical records from the ATLAS grid.
Data Sources and ML Integration
The framework leverages several key datasets for configuration and validation:
- PanDA Logs: Historical job execution records from the ATLAS experiment (January to June 2024) were used to ground the simulation in reality.
- HEPScore23: Benchmarking data was utilized to establish realistic initial capacities for simulated computing sites.
- Synthetic Event-Level Datasets: A primary contribution of CGSim is its ability to generate structured datasets tracking job states (pending, assigned, running, finished). These are specifically designed to train ML surrogate models that can eventually predict grid behavior faster than discrete-event engines.
Key Insights and Results
Fidelity and Optimization
One of the study's surprising findings was that Random Search outperformed more complex strategies like Bayesian Optimization or CMA-ES when calibrating parameters across 50 different sites. This suggests a specific complexity landscape in grid computing parameters where simpler search strategies are more effective.
Performance and Accuracy
CGSim demonstrated significant improvements over baseline simulation methods:
- Accuracy: The calibration framework reduced the error in simulated job execution times from 76% to just 17% across 50 WLCG sites.
- Performance: Distributed workloads in the simulation achieved 6x better performance compared to single-site execution models.
- Scalability: The framework showed near-linear scaling. It successfully handled a density of 10,000 jobs across 50 sites with sub-quadratic growth in execution time, proving its capability to model peak production workloads on commodity hardware.
Conclusion and Future Work
CGSim addresses the critical need for a scalable, modular, and ML-ready simulation framework for large-scale distributed computing. By reducing the fidelity gap and providing real-time observability, it offers a powerful tool for grid researchers.
Future development will focus on scaling the framework to the full WLCG (hundreds of sites), automating the calibration pipeline, and developing ML surrogate models to further accelerate simulation speeds. Additionally, the authors plan to conduct comprehensive benchmarks against other established simulators like WRENCH and DCSim.
Summary updated