Menu

Why Adding Queue Length Made My Bayesian Cluster Scheduler Worse
📰

Why Adding Queue Length Made My Bayesian Cluster Scheduler Worse

DEV Community·Ayush Agarwal·3 days ago
#XAeHR5GD
#dev#node#aegisflow#queue_len#task
Long article (340 words) — no AI summary yet.
Reading 0:00
15s threshold

When I started writing AegisFlow, a zero-dependency Python scheduler for clusters with silent node failures, my first instinct was obvious: use queue depth ( queue_len ) as distress evidence alongside latency and error rate.

It made inference worse. When I actually inspected env/cluster_env.py , queue_len did not depend on node health or sensor noise at all. It was literally echoing my own scheduler's past dispatches back to me. Feeding a deterministic echo of my own decisions into a Bayesian filter created circular confirmation bias.

Dropping queue_len completely and pulling real signal out of telemetry was where the numbers clicked.

Inferring node health without heuristics

Each node transitions latently between Healthy , Degraded , and Down . Instead of brittle z-score thresholds, agent.py runs an Exact 3-State Bayesian Hidden Markov Model forward filter over heartbeat_ok , latency_ms , error_rate , and per-task duration_remaining progress deltas.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.