Main Menu

Pages

How to Estimate LLM Inference Capacity from Peak Traffic

LLM inference capacity: Peak demand, Replica throughput, Latency target

A chatbot can look fast in a demo and slow down as soon as several people use it at once. To size an inference service, start with peak requests, set a latency target, and measure how much traffic one serving replica can handle while meeting it.

In short: Record peak requests per second and typical prompt and answer lengths. Load-test a replica with that mix. Divide peak demand by its measured sustainable throughput, round up, then test the resulting deployment under a traffic spike.

1. Turn traffic logs into a workload

Count requests that actually reach the model, including retries. For interactive traffic, start with your busiest minute and check shorter bursts too. Record typical and long input and output lengths separately. A chat turn with a long conversation history can behave differently from a short prompt, even when both produce the same answer length.

If 360 model calls arrive in the busiest minute, start at 6 requests per second and test the peaks within that minute. At 600 input tokens and 180 output tokens per call on average, the starting mix asks for about 3,600 input tokens and 1,080 output tokens per second. Keep those two numbers separate because processing prompts and generating answers stress different parts of the serving pipeline.

2. Measure capacity against a latency target

Use the model, hardware, serving settings and request mix you plan to deploy. Increase the offered request rate in steps. At each step, record completed requests per second, errors, queue behavior, and the 95th-percentile time to first token and end-to-end latency. Time to first token tells you how long a streaming user waits for the answer to start. End-to-end latency tells you when the answer finishes.

Use the highest sustained rate that meets your latency and error targets without a growing queue. Include long prompts and generous output lengths in the test mix so the capacity estimate reflects the requests most likely to slow the service.

Pro tip: For a chat app, test both a steady peak and a short burst. Keep an eye on time to first token during the burst and how long the queue takes to drain afterward.

3. Convert the result into a replica count

Suppose one replica sustains 2.5 requests per second with an acceptable error rate and a p95 time to first token under one second. To cover 6 requests per second with 25% headroom, calculate (6 × 1.25) ÷ 2.5 = 3 replicas. Always round fractional results up. These figures are illustrative. Use your own measured throughput and traffic forecast.

If you need to carry that same 7.5 requests per second during the loss of one replica, provision four replicas and repeat the test with one unavailable. Shared bottlenecks such as a retrieval service or load balancer can reduce what the group handles, so verify the estimate on the full deployment.

4. Decide what to do when demand spikes

Pick a trigger you can observe, such as sustained queue growth or a rising p95 time to first token. Measure how long a new replica takes to become ready and use that delay to decide whether you need warm capacity for predictable peaks. Decide which work can wait, which requests should be rate-limited, and how to keep client retries from adding load during a slowdown.

Save the test settings with the result. Re-run the test after changes to the model, serving configuration, prompt length or output limits. The next estimate should start from the measured limit for the new workload.

Background reading: AI infrastructure essentials in 2026 — https://www.technscopehub.com/2026/11/ai-infrastructure-essentials-in-2026.html

Further reading: NVIDIA’s LLM inference benchmarking guide — https://developer.nvidia.com/blog/?p=98215

Comments