LLM Serving Degradation Practices for Insufficient Compute Capacity
This article explains how to degrade large language model services in a principled way when compute capacity runs out. It covers quantifying capacity in token throughput, admission control, request tiering with priority queues, model routing and fast lanes, asynchronous jobs, streaming output, continuous batching, observability, capacity alerts, and common pitfalls. The goal is to match service quality to request value so that important traffic stays responsive under limited resources.
1. Why LLM Services Hit Capacity Limits Faster
LLM inference differs fundamentally from a traditional web service: the resource cost of a single request is not a constant. It varies significantly with input length, output length, and the concurrent batching strategy. A single session with an assistant that supports very long context, parallel multi-agent scheduling, and visual or code generation can consume several times the compute of a simple question-and-answer exchange. When a product ships a new version and its capability boundaries expand, users naturally push those new capabilities to their limits. Traffic peaks and per-request cost rise at the same time, and the backend quickly reaches its capacity ceiling.
The common industry response is not unlimited scaling. Instead, teams degrade service in a principled way under capacity constraints. Degradation does not mean returning errors. It means giving requests of different priorities a service quality that matches their value. The method below breaks this down into six actionable layers.
2. Capacity and Leases: Quantify the Compute You Can Actually Sell
Before implementing any degradation, you must quantify capacity. Express the capacity of the inference cluster as the token throughput that can be completed per unit of time, rather than a vague QPS number, because token throughput reflects real cost.
# Illustrative: capacity and admission controlcapacity_tokens_per_sec = 12000 # sustainable cluster throughput (from load testing)def admit(request):est = request.input_tokens + request.max_output_tokensif inflight_tokens + est > capacity_tokens_per_sec * BATCH_WINDOW:return reject_or_queue(request, reason="capacity_exceeded")inflight_tokens += estreturn accept(request)
Three points are critical. First, use sustainable throughput measured by load testing, not peak throughput. Second, reserve a safety margin for burst traffic (for example, trigger rate limiting at 80%). Third, treat reserved compute as an allocatable resource and set aside quota for paying or high-priority tenants so they are not crowded out by low-value traffic.
3. Request Tiering and Priority Queues
Treating all requests the same is the root cause of wasted capacity. In practice, requests are usually divided into three or four tiers by business value: interactive conversation (requires low time-to-first-token), batch jobs (minutes of latency acceptable), and internal offline tasks (can be deferred to nighttime). After tiering, combine priority queues with quotas to ensure that the important users are served first during peaks.
Priority P0: online interaction (sensitive to time-to-first-token)Priority P1: online but can tolerate seconds of queueingPriority P2: asynchronous batch processing (document summarization, bulk extraction)Priority P3: internal experiments and load-test traffic (can be preempted and reclaimed at any time)
One engineering concern is starvation. If low-priority tasks never get to run, add an aging mechanism that slowly raises their priority the longer they wait, avoiding indefinite suspension.
4. Model Routing and the Fast Lane
When the capacity of a high-capability model is tight, the most effective move is routing: split requests by difficulty across models of different sizes. Simple questions go to a smaller model; complex reasoning goes to a larger model. This protects the average experience while significantly reducing overall cost.
def route(req):if req.estimated_difficulty < 0.35 or req.streaming_required:return "fast_model" # low-latency fast laneif is_capacity_available("strong_model"):return "strong_model"return queue_with_hint(req, hint="peak_capacity_limited")
Degradation hints should be honest and offer an alternative path. For example, tell users that the system is at peak load, has switched to a faster lane, and that non-urgent tasks can be retried later or converted to asynchronous jobs. This kind of candid communication is itself part of the product experience and retains users far better than repeated errors.
5. Asynchronous Jobs, Streaming Output, and Batching
Three underrated techniques:
- Streaming output: return the first token immediately, turning “waiting anxiety” into “progressive feedback” and greatly reducing perceived latency.
- Asynchronous jobs: convert long-running tasks into jobs, return a task identifier, and decouple with a message queue. Users can leave the page and be notified when the job completes.
- Continuous batching: dynamically batch multiple requests together to improve GPU utilization; combined with length bucketing, this reduces padding waste.
user submits -> admission check -> tiered enqueue -> dynamic batching -> streaming response↘ if over limit, convert to async job + completion callback
6. Observability and Capacity Alerts
Without measurement there is no degradation. At minimum you need four categories of metrics: token throughput and queueing time, time-to-first-token percentiles (P50/P95/P99), rejection and degradation rates per request class, and average compute cost per request. Using “queueing time P95” as the core SLO is closer to the real experience than looking at error rate alone. Pair this with logging and monitoring alerts so that rate limiting triggers automatically and on-call staff are notified when the safety margin is reached.
7. Common Pitfalls
- Using only QPS as the capacity unit and ignoring resource fragmentation caused by mixing long and short requests.
- Applying one-size-fits-all degradation, so all users slow down at once and the experience collapses.
- Lacking a retry budget, so client-side retry storms punch through the remaining headroom; introduce backoff and retry quotas.
- Failing to reclaim capacity after degradation, so low-priority tasks occupy resources for a long time and high-priority requests keep queueing.
8. Conclusion
Insufficient compute is not purely a procurement problem. It is a systems engineering effort spanning capacity, scheduling, and product communication. Quantify capacity, tier requests, refine routing, make long tasks asynchronous, and watch the metrics, and you can maintain stable availability under limited resources. If elastic scaling is needed, you can build an elastic inference pipeline on general cloud capabilities such as container platforms, object storage, message queues, and monitoring alerts. Baidu AI Cloud has mature general practices in this kind of elastic architecture and observability system that you can reference.
