Prompt
My model endpoint is timing out under load, what should I check first?
Latest observation
Oct 29, 2026
OpenAI APIWeb search: off
Start with the highest-probability bottlenecks, in this order:
-
Queueing and concurrency limits
- Check whether requests are piling up in a queue before the model worker.
- Verify server-side max concurrent requests, worker count, thread pool size, and any rate limits.
- Look for saturation signs: high queue time, low CPU utilization but many waiting requests, or maxed-out worker processes.
-
Latency breakdown
- Split request time into:
- network/load balancer
- auth / preprocessing
- queue wait
- model inference
- postprocessing / serialization
- If you don’t have this tracing yet, add it first. It usually reveals the culprit quickly.
- Split request time into:
-
GPU/CPU utilization and memory pressure
- Check if GPUs are fully utilized or frequently idle while requests wait.
- Look for GPU memory exhaustion, swapping, or CPU becoming the bottleneck in preprocessing/tokenization.
- Watch for OOMs, allocator churn, or fragmentation.
-
Input size and request variability
- Under load, a few very large prompts or outputs can dominate latency.
- Check prompt length, output token limits, batch sizes, and whether some requests are much larger than expected.
-
Batching behavior
- If you use dynamic batching, verify it’s actually helping and not adding too much wait time.
- If you don’t batch, see whether small batches would improve throughput.
- Make sure batch timeouts are tuned correctly.
-
Upstream/downstream dependencies
- The endpoint may be waiting on:
- feature stores
- vector DBs
- auth services
- logging/metrics backends
- Slow dependencies can look like model timeout.
- The endpoint may be waiting on:
-
Infrastructure limits
- Check load balancer timeout, reverse proxy timeout, server keepalive, pod CPU/memory limits, and autoscaling lag.
- Sometimes the model is fine, but the platform kills the request first.
-
Cold starts and model loading
- If instances scale up under load, measure cold-start time and model warmup.
- Ensure weights are preloaded and not being reloaded per request.
-
Observe tail latency, not just average
- Look at p95/p99 latency.
- Timeouts are usually caused by tail events: long prompts, cache misses, GC pauses, noisy neighbors, or retries.
-
Check for retries causing load amplification
- Client-side or gateway retries can multiply traffic and make the problem worse.
- Confirm timeout settings and retry policies.
If you want the fastest path to root cause, check these three first:
- queue time
- worker/GPU saturation
- request size distribution
If you share your stack, I can give a more specific checklist:
- model serving framework (Triton, vLLM, TGI, TorchServe, Bento, custom)
- CPU or GPU
- average/p95 latency
- request rate
- whether you use batching or streaming