A tiny request router for sharding LLM inference traffic by token-budget, not by model name.
Subroute sits between our gateway and a small cluster of model servers. The clever part isn’t how it routes — it’s how it counts. Every request gets a cheap estimate of its token budget (input length + a sampled completion length), and we route to whichever node has the most remaining headroom in its KV cache.
Result: queue depth and tail latency stopped being correlated, which freed us to tune for throughput without watching p99 blow up. There’s a writeup forthcoming on the cost side; the short version is that we shrank the fleet by 20% with no change in user-visible latency.