12.6 Serving Policies, SLOs, and Fallbacks
Imagine a restaurant with one kitchen. A table ordering two coffees and a table ordering a 12-course tasting menu both arrive at the same time. If the kitchen follows a naive first-come, first-served policy, the coffee table waits behind the tasting menu even though its order is cheap and urgent. Production LLM serving has the same failure mode.
An LLM service can look perfect in staging and still collapse under real traffic. One enterprise user pastes a 50k-token contract, a batch workflow launches hundreds of long rewrites, and suddenly every chat user waits seconds for the first token. The model weights are fine. The kernels are fine. The system failed because it treated radically different jobs as if they belonged in the same queue.
That is why serving policy matters. Kernel-level optimizations make inference possible, but policies determine whether the product remains reliable under mixed traffic, bursty tenants, and partial failures. This section moves one layer above kernels and memory layouts to the operational rules that decide who gets admitted, which SLOs matter most, how fairness is enforced, and how the system degrades before users experience a hard outage.
1. Start with SLOs, Not Raw Throughput
Continuous batching, PagedAttention, and chunked prefill improve efficiency, but production teams are usually judged by a small set of user-facing objectives:
- TTFT (Time To First Token): the wait from request submission to the first qualifying output token at a declared observation point.
- TPOT (Time Per Output Token): a request’s average interval after its first output token.
- Inter-token latency (ITL), also called time between tokens (TBT): individual token gaps in the convention used below. Their distribution reveals pauses that TPOT can hide. The metric name alone does not identify a client-side or server-side measurement.
- Success Rate: whether the request finishes without timeout, OOM, or cancellation.
- Cost per Successful Request: whether the latency target is being met economically.
These goals frequently conflict. A scheduler can maximize aggregate tokens per second and still create a terrible product if large prefills monopolize the GPU and interactive users wait too long for the first token. Orca already showed that iteration-level scheduling matters for transformer serving [1], and newer systems such as DistServe make the point even more explicit: the metric that matters in production is often not raw throughput, but how many requests finish while staying inside latency objectives [5].
TTFT (Time to First Token), TPOT, and Inter-Token Latency
Choose the clock boundary before comparing numbers. In this example, a benchmark client uses one monotonic clock: records request submission, and record receipt of individually observed output tokens. Times are in milliseconds. Only text tokens count; empty protocol messages do not. A client receipt timestamp does not measure when the UI displays that text. Server generation timestamps describe another boundary and must not be subtracted from timestamps on an unsynchronized client clock.
For , define the gaps and the per-request mean as follows. This TPOT convention excludes the wait for the first token. [7]
Consider two authored traces, both submitted at . Every arrival in this table contains exactly one token.
| Trace | Token arrival times (ms) | Individual gaps (ms) | TTFT (ms) | TPOT (ms/token after the first) | Longest gap (ms) |
|---|---|---|---|---|---|
| A: steady delivery | 100, 200, 300, 400, 500 | 100, 100, 100, 100 | 100 | 100 | 100 |
| B: a late pause | 100, 110, 120, 130, 500 | 10, 10, 10, 370 | 100 | 100 | 370 |
Both have TPOT ms/token and deliver their last token at 500 ms. Yet B leaves a 370 ms silence before that last token. A rule requiring every gap to stay at or below 200 ms accepts A and rejects B; a TPOT-only rule cannot distinguish them. Across requests, a percentile of per-request TPOT and a percentile of individual gaps also describe different populations and weighting.
For a one-token response arriving at 100 ms, TTFT is 100 ms, but there is no post-first-token interval: report TPOT as not available and retain an empty gap list, rather than inserting zero.
Real streaming APIs can deliver several tokens in one chunk. Chunk arrival timestamps cannot reconstruct the tokens’ individual generation times. Retain chunk timestamps and token counts, report chunk gaps separately, and state which content channels and completion event the measurement includes. As of 2026-11-25, NVIDIA AIPerf v0.14.0 calls a per-request average ITL and reports individual chunk gaps as ICL. This differs from the individual-gap terminology above: compare formulas and observation boundaries, not just metric labels. Its documentation also distinguishes first-chunk token counts when normalizing the remaining decode interval. [8]
Goodput Is the Right Mental Model
Count the requests that delivered the promised experience in a fixed observation window. Suppose three requests start together at time zero. A and B above complete successfully. C delivers a single token at 100 ms and times out at 900 ms. In that one-second window, the service offered three requests and successfully completed two. How many met the streaming contract?
Here the contract requires a successful completion, a first text token within 150 ms, and every subsequent gap within 200 ms. The Python example uses ordered, nonnegative arrival offsets in milliseconds from each request’s submission. Each event contains one text token. A successful one-token response has no gap to check. A timed-out response fails even when its first token arrived on time.
def meets_slo(arrivals_ms, completed):
if not completed or not arrivals_ms:
return False
gaps = [b - a for a, b in zip(arrivals_ms, arrivals_ms[1:])]
return arrivals_ms[0] <= 150 and all(gap <= 200 for gap in gaps)
traces = [
([100, 200, 300, 400, 500], True),
([100, 110, 120, 130, 500], True),
([100], False),
]
window_s = 1.0
passed = [meets_slo(times, completed) for times, completed in traces]
assert passed == [True, False, False]
assert meets_slo([100], True)
print(sum(passed) / window_s) # 1.0 request/s
One request per second met this contract. A passed, B paused for 370 ms, and C timed out. The SLO attainment fraction was 1/3 of offered requests. Substituting the mean gap for the longest gap admits B and changes the question. When comparing a system benchmark, check its definition too. DistServe seeks the highest per-GPU load that still meets a target fraction of requests’ TTFT and TPOT requirements. Estimating that capacity takes a load sweep, beyond this single trace window. [5]
How many users fit a 500 ms first-token budget?
Suppose your chat service promises a p90 time to first token (TTFT) of at most 500 ms. Sarvam’s model card supplies two load points to test that decision. As of 2026-11-25, the NVFP4 build of Sarvam-105B-1711 has downloadable Apache 2.0 weights. Sarvam also switched its hosted sarvam-105b endpoint to the 1711 weights on November 22. The figures below come from the checkpoint’s one-GPU benchmark. The hosted endpoint has its own serving configuration. [9] [10]
| Concurrent users | Total throughput (tokens/s) | Median TTFT (ms) | p90 TTFT (ms) |
|---|---|---|---|
| 32 | 4,311 | 131 | 471 [9] |
| 64 | 5,354 | 156 | 841 [9] |
Sarvam used one B200, reasoning prompts, thinking enabled, an FP8 KV cache and DSpark with five speculative tokens and temperature 1.0. It cleared the prefix cache before each load. TTFT measures the wait for the first output token. The card does not specify where it timestamps that token or whether reasoning output qualifies. Use the same observation point as your users when testing the promise. [9]
Doubling concurrency raised total throughput by about 24%. Both medians fit the budget. Only 32 concurrent users passed the p90 target among these two measurements. The table leaves loads between 32 and 64 untested. To compute the goodput defined above, you still need individual completion outcomes, token gaps and the observation window.
SLOs Should Be Lane-Specific
An IDE copilot, a batch summarizer, and a tool-calling agent should not share identical thresholds.
- Interactive products care most about p95 or p99 TTFT, jitter, and completion reliability.
- Batch workflows care more about throughput, queue drain time, and cost efficiency.
- Agentic workflows care about end-to-end task completion rate, because one slow or failed turn can break the whole loop.
Budget the Latency Explicitly
It helps to decompose the first-token budget into visible parts:
The exact terms vary by architecture, but the idea is stable: if you miss the p95 TTFT target, you should know whether the problem came from queueing, prefill interference, cross-node KV transfer, or scheduler delay. A useful policy is not just “be fast.” It is “spend the latency budget deliberately.”
2. Admission Control Means Cost-Aware Queueing
The most common production mistake is acting as if every request should enter the same queue. In reality, a 200-token chat prompt and a 40k-token document rewrite impose very different costs on both prefill compute and decode memory.
Recommended Queue Split
- Interactive lane: short prompts, tight TTFT budget, aggressive output caps.
- Heavy lane: long prompts, long outputs, or expensive tools.
- Background lane: offline or low-priority batch jobs.
This does not require separate model weights. It often means different scheduler thresholds on top of the same model, with prefill and decode treated as separate sources of pressure. SARATHI shows why chunked prefills help decode-heavy traffic coexist with prompt-heavy traffic [3], while Splitwise and DistServe push the idea further by physically separating or disaggregating prefill and decode so the two phases stop interfering as much [4][5].
Classify Requests Before They Enter
A practical admission controller usually looks at:
- prompt length
- predicted output length or
max_new_tokens - whether tools or retrieval are expected
- tenant priority
- current queue depth and KV memory pressure
The exact scoring rule varies, but the goal is always the same: estimate cost before the request starts hurting everyone else.
A Simple Cost Proxy
An admission controller often uses a proxy such as:
This is not a physics law. It is a practical heuristic that helps decide whether a request belongs in the interactive lane, should be deferred, or must be rejected.
Admission Rules
- Reject or defer requests that exceed a configured prompt budget.
- Cap
max_new_tokensmore aggressively for the interactive lane. - Move very long prompts into a lower-priority queue rather than letting them starve active decodes.
- Reserve a fraction of KV memory for interactive traffic so large jobs cannot consume the entire PagedAttention block pool [2].
- Pause or throttle background work when interactive p95 TTFT drifts toward its SLO.
The important point is that admission control is not a binary “allow or deny” gate. It is a policy layer that routes requests into the least dangerous operating mode.
3. Fairness and Isolation Prevent Noisy-Neighbor Failures
Multi-tenant serving introduces another policy layer. A single customer running long prompts or bursty traffic can destabilize everyone else if the scheduler has no tenant-aware limits.
Minimum Guardrails
- per-tenant rate limits
- per-tenant concurrency caps
- a hard ceiling on prompt length for shared clusters
- separate quotas for interactive and background traffic
- clear overload states such as
degraded,interactive_only, orbatch_paused
Fairness Is Not the Same as Equality
Fairness does not mean every request gets identical treatment. A premium interactive product may intentionally receive better latency than an offline export job. The real question is whether the policy is explicit, predictable, and safe.
One useful pattern is weighted fairness: keep a minimum share of scheduler slots or KV capacity for interactive work, then let batch traffic opportunistically use the rest. Without this, the system will often look efficient right up until one tenant consumes the entire queue and everyone else sees a latency cliff.
Isolate the Right Resource
Different incidents are caused by different scarce resources:
- prefill-heavy traffic saturates compute
- decode-heavy traffic saturates KV memory bandwidth and capacity
- tool-heavy traffic creates tail latency outside the model server
Good isolation policies map limits to the actual bottleneck rather than using one global request counter for everything.
4. Fallbacks Should Trigger Before Hard Failure
Production systems should not wait for a crash before changing behavior. Good systems degrade gracefully as soon as the SLO budget starts to disappear.
Common Trigger Signals
- queue wait time rising sharply
- p95 TTFT approaching or exceeding the target
- KV block pool utilization becoming dangerously high
- decode TPS dropping while request count stays high
- tool or retriever timeouts increasing
A Practical Fallback Ladder
- Disable optional expensive features such as
best_of, extra samples, or long reasoning traces. - Lower
max_new_tokensfor the interactive lane. - Compress or summarize the prompt before full generation.
- Route to a smaller or cheaper model for low-priority traffic.
- Pause background lanes to protect interactive SLOs.
- Return a partial answer or an explicit retry response instead of timing out silently.
If the KV block pool becomes tight, the system should prefer reducing the effective context budget or shedding low-priority load before triggering an OOM. From the user’s perspective, a short but honest fallback response is often better than a perfect response that times out.
5. Incident Response Starts with the Right Counters
When latency spikes, the postmortem should include not only kernel traces and GPU metrics, but also the queue policy that allowed the problem to spread. The most useful counters are often embarrassingly operational:
- queue wait time by lane
- prompt-length distribution
- generated-token distribution
- per-tenant concurrency
- KV block utilization
- prefill versus decode occupancy
- fallback activation rate
A Simple Diagnostic Table
The symptoms below help localize the problem quickly:
- TTFT is bad, TPOT is fine: queueing or prefill interference is usually the first suspect.
- TTFT is fine, TPOT is bad: decode contention, KV pressure, or downstream tool latency is more likely.
- Both TTFT and TPOT are bad: the cluster is overloaded or the fairness policy has failed.
- Only one tenant is affected: look for per-tenant quotas, routing bugs, or a malformed workload.
Operationally, this is the real lesson of serving policy: the scheduler is part of the product surface. If it behaves badly under mixed traffic, users experience that as model failure even when the model itself is correct.
6. Practical Takeaway
Inference optimization is not complete when kernels are fast. It is complete when the service remains predictable under messy workloads: mixed prompt lengths, bursty traffic, partial failures, and competing tenants. The serving stack needs technical optimizations, but it also needs policy, explicit SLO budgets, fairness rules, and a fallback plan that activates before the system falls over.
Evolving Infra: adapt compute without losing cache ownership
As of 2026-11-15 — emerging research. Evolving Infra combines engines that switch prefill/decode roles in place with a shared host-memory KV pool. Its planner models cached and uncached work separately; a branch-aware directory helps routing and eviction. Reported gains depend on the studied hardware, workload and baselines, not a universal speedup. [6]
For production evaluation, count KV transfers, cache reuse, switching delay and tail latency during workload shifts. Shared availability is not free access: host/device transfers still cost time. Cache identity and authorization must include model version, tokens and tenant scope.
Quizzes
Quiz 1: Why is goodput a more useful production metric than raw throughput for an interactive LLM product?
Because goodput counts only the request rate that still meets latency and reliability targets. Raw throughput can rise even while p95 TTFT or TPOT becomes unacceptable for users.
Quiz 2: A service has acceptable average latency, but chat users see large p99 TTFT spikes whenever long document rewrites arrive. What policy mistake is the most likely cause?
The system is probably letting short interactive requests and long prefill-heavy requests compete under the same queueing policy. Average latency hides the tail problem, but lane separation or stricter admission control would expose and reduce it.
Quiz 3: Why should fairness policies in shared inference clusters be tied to actual bottlenecks such as prefill compute or KV memory, instead of only request count?
Because requests with the same count can have radically different costs. A single long-context request can be far more damaging than many short chats, so limits must reflect compute, memory, and tool usage rather than just the number of requests.
Quiz 4: A system is approaching KV memory exhaustion. Why is an explicit fallback ladder preferable to waiting for OOM and letting retries handle recovery?
Because an explicit fallback ladder preserves control over user experience and cluster stability. The service can shrink context, cap outputs, pause low-priority work, or return a degraded response before the cluster enters a chaotic failure mode.
Quiz 5: Two requests have the same TTFT and TPOT. Does that prove equally smooth streaming, and what can you conclude if each response arrives in a single chunk?
No. The worked traces have equal means but longest token gaps of 100 and 370 ms. Inspect the individual gaps at the same observation boundary. A single chunk exposes no within-response arrival gaps; its timestamp cannot reveal the individual token generation cadence.
Quiz 6: The chat service also needs 5,000 tokens/s. Which of the two Sarvam load points meets both targets?
Neither one. At 32 users, p90 TTFT meets 500 ms but throughput is 4,311 tokens/s. At 64 users, throughput reaches 5,354 tokens/s but p90 TTFT rises to 841 ms. Measure intermediate loads on the intended workload to see whether both constraints can be met.
References
- Yu, G.-I., Jeong, J. S., Kim, G.-W., Kim, S., & Chun, B.-G. (2022). Orca: A Distributed Serving System for Transformer-Based Generative Models. OSDI 2022.
- Kwon, W., et al. (2023). Efficient Memory Management for Large Language Model Serving with PagedAttention. arXiv:2309.06180.
- Agrawal, A., et al. (2023). SARATHI: Efficient LLM Inference by Piggybacking Decodes with Chunked Prefills. arXiv:2308.16369.
- Patel, P., Choukse, E., Zhang, C., Shah, A., Goiri, I., Maleki, S., & Bianchini, R. (2024). Splitwise: Efficient Generative LLM Inference Using Phase Splitting. arXiv:2311.18677.
- Zhong, Y., Liu, S., Chen, J., Hu, J., Zhu, Y., Liu, X., Jin, X., & Zhang, H. (2024). DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model Serving. arXiv:2401.09670.
- Research preprint (2026). Evolving Infra: Agent-Adaptive LLM Serving at Scale. Version pinned; accessed 2026-11-15.
- Kubernetes SIGs. Inference Performance Metrics Definition — Latency. Official benchmark definitions; checked 2026-11-25.
- NVIDIA. AIPerf v0.14.0 Metrics Reference. TTFT, ITL, and ICL definitions; checked 2026-11-25.
- Sarvam AI. Sarvam-105B-1711 NVFP4 model card and B200 throughput measurements, revision e8a53d1.
- Sarvam AI (2026-11-22). Hosted Sarvam-105B endpoints switch to the 1711 weights.