The harness behind the measurements in Cluster Scheduling and Dominant Resource Fairness. Python 3.13 with NumPy 2.5 and pandas; no other packages.
sh fetch.sh data # ~24 MB from storage.googleapis.com/clusterdata-2011-2
python3 -I prep.py data arr # first SUBMIT of each task per window -> arr/*.npz
python3 -I pooled.py arr pooled.json # experiment 1, ~20 s
python3 -I placement.py arr placement.json # experiment 2, ~2.5 min on 2 shared cores
python3 -I summarize.py pooled.json placement.json summary.json
python3 -I fill_ref.py ../../../../../quartz-site/plugins/mdx/test/drf-filling.fixture.jsonpooled.py: one Leontief user per trace user (mean request vector, unbounded backlog), pooled divisible capacity. DRF, asset fairness and CEEI (Eisenberg-Gale, solved on the one free price ratio by golden-section search). Reports utilization, sharing-incentive violations, and the largest gain from scaling one’s stated CPU and memory demand by factors in {0.25, …, 4} (top 20 users of each window, and a 4-user cluster of the 4 largest users).placement.py: 10% sample of a window’s tasks in submission order, real machine shapes sampled until capacity is at least half the demand on each resource, first-fit placement, progressive filling by DRF, asset fairness, CPU share alone, and slot counts with 4 to 64 slots per machine. 8 windows x 5 seeds. Also re-runs DRF and asset fairness with each of the 5 largest users inflating its stated requests (x1.5 or x2 on CPU, memory or both).fill_ref.py: exact-arithmetic progressive filling, the independent reference the interactive figure is tested against.
Committed outputs: pooled.json, placement.json, summary.json.