FleetLab
v0.4.0 · Open SourceAccelerator cluster scheduling simulator and control plane
A deterministic discrete-event simulator for accelerator cluster scheduling: gang placement on a TPU-style 3D torus with priority preemption, quotas, and node failures. The same planner runs inside a gRPC controller/agent runtime that detects failures by heartbeat timeout and reassigns jobs under epoch fencing.
- Result
- Best-fit packing cut p99 queue delay 15% vs. first-fit and 9× vs. random placement on 1,000 nodes. The ordering held on all 3 workload seeds.
- Correctness
- Invariants are checked after every event across a 10,000-seed randomized sweep. A guard fails the sweep unless placement, preemption, and failure eviction all occur. 381 tests pass under ASan/UBSan.
- Control plane
- One controller and 20 agent processes over gRPC, with heartbeat failure detection, epoch-fenced reassignment, and operation-ID dedup. A fault test delays a live agent's heartbeats and asserts 8 recovery events in order.
- Known limits
- The preempting policy does not finish within 180 s under contention, because its planner re-runs the placement search for every candidate victim. Topology-heavy runs top out near 1,000 nodes. All workloads are synthetic.

C++20 · gRPC · CMake · Docker Compose · FastAPI · Next.js

