The inference load balancer runs on CPU front-end clusters and selects an engine before proxying each request. Early routing filtered out engines that could not meet request constraints, then used weighted consistent hashing. A periodic feedback loop adjusted weights based on smoothed performance signals compared with the fleet average.
Routing LLM Inference in Production: From Engine Signals to Policy
Speakers
Qianru Lao and Lu Zhang, inference team engineers at OpenAI, explain how they route production LLM requests and protect the system, speaking together at AI Engineer.
The feedback loop combined signals and adapted to changing engine capacity, but its decisions were difficult to explain and tune. Different GPU hardware could also lead to oscillations: traffic moved away from an engine, it appeared cooler, then the controller sent traffic back. That back-and-forth could disrupt KV cache use.
Lu describes a control plane that computes routing weights with a global view, and a data plane in each CPU cluster that selects an engine using its locally cached routing state. The control plane uses demand, network latency, engine capacity and health, and TTFT and TBOT profiles to minimize expected end-to-end latency within capacity and routing constraints. For example, sending some traffic to a more distant engine can be faster if the nearby engine is overloaded.
The data plane selects an engine for each request without waiting for the control plane; routing weights and engine signals update asynchronously. The system has three paths: synchronous request routing, continuous engine signal collection, and routing weight updates. Only the request path is synchronous, and it stays within the CPU cluster.
The system reduces routing weight for outlier engines, giving transient problems a chance to recover or allowing intervention. Retry budgets limit retry storms and adjust to utilization, allowing fewer retries when the system is heavily loaded. Load shedding is the last resort when demand exceeds production capacity, so the service can degrade gracefully.
Takeaways
- Separate global traffic planning from local request routing to keep decisions fast while accounting for fleet-wide capacity.
- Optimize end-to-end latency, including network distance and engine queueing, rather than routing only to the nearest engine.
- Treat feedback-driven weights cautiously when heterogeneous hardware can cause traffic oscillations and disrupt cache locality.
- Use retry budgets that respond to system utilization to reduce the risk of retry storms.
- Combine outlier penalties and load shedding with capacity-aware routing to limit the impact of degraded engines and excess demand.
Mentioned in this talk
Search inside this talk
What was claimed 6
- works at
“We both work on the inference team at OpenAI”
YouTube Verified2 sources· Talk, Web· archived
- works atQianru Lao works at
OpenAI“We both work on the inference team at OpenAI”
YouTube Verified2 sources· Talk, Web· archived
- featureIRB (inference load balancer): Selects an engine and proxies the request
“It has two main responsibilities: selecting an engine and proxying the request”
YouTube Unverified1 source· Talk
- metricglobally optimized routing: Minimizes expected end-to-end latency across all routed traffic
“The optimization goal is straightforward: minimize expected end-to-end latency across all routed traffic”
YouTube Unverified1 source· Talk
- featureretry budgets: Dynamically cap retries according to system utilization
“These also need to be dynamic, because during normal times we can tolerate many more retries than when the system is heavily utilized”
YouTube Unverified1 source· Talk
- featureload shedding: Proactively sheds a portion of traffic when production capacity cannot meet increasing demand
“we proactively shed a portion of the traffic so the system degrades gracefully”
YouTube Unverified1 source· Talk












