mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-08 00:03:07 +00:00
Validates the cloud workspace-fairness algorithm on representative workloads: - `fairness_caps_dominant_workspace` — a workspace with ~85% of cluster throughput is the only one flagged as overloaded. - `fairness_respects_min_total` — below `min_total`, no cap fires even at 100% share (avoids throttling a cluster running a single job). - `fairness_pull_query_skips_capped_workspace` — with the overloaded set populated, the fairness pull SQL skips the capped workspace's queued jobs while the regular SQL would still pick them up. - `fairness_lifts_when_load_drops` — cap clears once the noisy workspace's share falls under the threshold. - `fairness_catches_slot_hoggers` — long-running jobs (running=true, zero completed in window) trip the cap just like high-throughput tiny jobs. Required exposing `refresh_overloaded` (was `pub(self)`) so the integration test crate can drive a refresh without going through the cloud-host gate in `maybe_refresh_overloaded`. Fixes WIN-1987