Cap-and-Track: Optimizing LLM Inference Request Dispatch Across Shifting Capacity
Benjamin Novotny, Doug Szeto, Chang Wang, Shicheng Chen, George Zhihua Yuan, Bob Kamma, Michael Ge, John Xin Zhou, Andrea Olgiati
Abstract
A fixed dispatch rate for LLM inference becomes stale as serving fleets resize and request sizes change. Generative output length is unknown at admission, and shared provider pools can lose capacity. We present Cap-and-Track, a design for asynchronous inference across provider capacity and internal GPUs. Meta's traffic shaper implements Cap-and-Track for post and live-video understanding. Refusals signal the backend's current admission ceiling. Durable priority queues hold excess work outside execution, including refused requests for retry. Cap is a fail-fast admission check at the saturated resource that refuses work before a long wait. Using only those refusals, the Track dispatcher probes upward and backs off. It follows the ceiling without output-length prediction or a fleet-level rate to retune. In a concurrent same-traffic production A/B, the shaper ran per-replica Cap plus Track. It served a classifier on 43% fewer H100s than its queued, fixed-rate precursor, though lower-priority work waited longer at backfill peaks. In steady-capacity real-engine replay, Track ran within 1% of the goodput of a fixed rate tuned above measured capacity, with about a quarter of that rate's refusal share. The shaper carries more than 300 million online requests and hundreds of terabytes of media a day. During a backfill, it handled 1.1 billion requests in its busiest 24 hours. Lessons include keeping queues inside inference engines just long enough to fill batches, steering dispatch by capacity refusals alone, keeping dispatch stateful, and sizing fleets by how long low-priority work can wait.
Create a lesson
Related papers
RSIBench-Infra: Can Agents Optimize Their Own Training and Inference Infrastructure at Production Scale?
Shared title terminology · Hanlin Wu, Yifei Wang, Zhicheng Cai et al.
Minimax-Optimal Small-Loss Regret in Online Convex Optimization and Applications to Contextual Search and Online Inverse Optimization
Shared title terminology · Shinsaku Sakaue
A Stationarity-Based Regret Framework for Time-Varying Nonconvex Composite Optimization
Shared title terminology · Nadav Hallak
Ruby: State-of-the-Art Potency Prediction across Discovery Regimes Using Learned Structural Representations
Shared title terminology · Michael Atkin, Dominique Beaini, Jules Berman et al.
Multi-Tier Edge Triage: Optimizing Latency for Safe Clinical Agents
Shared title terminology · Joshua Broyde, Sarita A. Joshi
The Window Lever: Longer Observation Windows Outweigh the Observed Effects of Data, Capacity, and Architecture in Customer Behavior Forecasting
Shared title terminology · Tara Sowrirajan, Yanqiao Wang