LLM Service Outages: Root Causes and High-Availability Practices for Online Inference
This article examines why large language model (LLM) services often fail with vague "server busy" errors and how engineering teams can reduce such outages to a few minutes. It breaks down four technical root causes—inference queuing, KV-cache memory pressure, cascading timeouts across dependencies, and bursty traffic—and presents reusable reliability practices, including capacity planning based on effective token throughput, asynchronous architecture decoupling, tiered degradation, backoff retries, observability, and canary releases with chaos testing. Cloud deployment guidance and a neutral closing summary are also included.
1. Incident Overview: A Typical Online Inference Outage
An intelligent conversation platform experienced access failures across two consecutive workdays. On the first day, the web and mobile clients began returning messages such as “check your network and try again” and “server busy,” and multiple media outlets independently confirmed the problem. The platform’s official service status page showed that the anomaly was first detected in the evening; roughly two hours later, the first round of rollback and repair was completed. The platform then entered another investigation phase in the early morning and applied a second fix, with all metrics not fully recovering until the next morning. Total downtime approached twelve hours, the longest single outage since the platform launched. The next afternoon, similar anomalies reappeared, but no public explanation was issued. Claims circulating online—such as “too many users and insufficient compute,” “technical architecture and cost constraints,” or “a network attack”—were all third-party speculation.
For developers and enterprise users, the more useful question is not “who went down,” but: why do online LLM services fail in the vague form of “busy,” and how can engineering teams compress this type of failure to a matter of minutes?
2. Four Technical Root Causes Behind “Server Busy”
2.1 The Queuing Nature of Inference Resources
Autoregressive generation performs token-by-token forward computation, so a single request occupies GPU memory and compute for far longer than a traditional short-lived web request. When the number of concurrent requests exceeds what the batching window can handle, requests enter a waiting queue and queueing latency rises sharply. What users see as “busy” is essentially queue overflow or a breached timeout threshold, not a network failure.
2.2 GPU Memory Pressure from Long Contexts
As context length grows, KV-cache usage increases linearly, making GPU memory a hard constraint. Once cache allocation fails, the scheduler can only reject new requests, which appears to users as widespread “retry” prompts.
2.3 Cascading Timeouts Across the Dependency Chain
A conversation service typically chains together authentication, session storage, content safety review, vector retrieval, logging, and metering. A fluctuation in any of these downstream components propagates upward through synchronous calls. Once thread pools and connection pools are exhausted, even healthy instances are marked unavailable, creating failure amplification.
2.4 Bursty Traffic Patterns
Peak hours, breaking events, and automatic client retries can combine to produce instantaneous load far above normal peaks. Retries without a backoff mechanism amount to a second wave of impact on an already failing service.
3. Reusable Reliability Practices
3.1 Capacity Planning: Use “Effective Throughput” Rather Than “Peak QPS”
Capacity should be evaluated in terms of tokens completed per second and the number of concurrent sessions, with headroom reserved:
Required instances ≈ peak concurrent sessions × average generation time / (per-instance concurrency limit × target utilization)Target utilization should not exceed 0.6, leaving buffer for burst traffic
3.2 Architecture Decoupling and Asynchrony
Move non-critical paths to asynchronous processing: use a message queue to smooth out metering, auditing, and personalized memory writes; place long-document parsing in a task queue for asynchronous execution; keep only two steps in the main path—“fetch the model” and “produce the result.”
3.3 Tiered Degradation Plans
Degrade in tiers based on how perceptible the impact is to users, ensuring that “slow” is better than “unavailable”:
- Tier 1: shorten the maximum generation length and disable non-essential retrieval augmentation;
- Tier 2: switch to a smaller backup model with fewer parameters;
- Tier 3: return a cached standard reply or a queue notice with an estimated wait time.
3.4 Coordinated Backoff Retries on Client and Server
import random, timedef call_with_backoff(fn, max_retry=3):for i in range(max_retry):try:return fn()except ServiceBusy:# Exponential backoff with jitter to avoid a retry stormtime.sleep(min(2 ** i, 8) + random.uniform(0, 0.5))return fallback_response()
3.5 A Closed Observability Loop
Build three layers of metrics using monitoring, alerting, and logging services: entry-point success rate and queueing time; per-instance GPU memory and batching utilization; and P99 latency of downstream dependencies. Alerts must be tied to clear runbooks to avoid “alerting without action.”
3.6 Canary Releases and Fault Drills
Always roll out new model weights and inference framework versions through canary releases first. Routinely run chaos drills such as dependency removal and batch instance shutdown to verify that rate limiting and degradation actually take effect.
4. Cloud Deployment Recommendations
In a cloud environment, the stateless access layer can be deployed on a container platform with auto-scaling configured, while the model service runs in a dedicated resource pool with a priority queue. Object storage can hold sessions and model artifacts, a message queue handles peak shaving, and monitoring, alerting, and logging services form the observability foundation. General-purpose capabilities from cloud providers such as Baidu AI Cloud can serve as the underlying platform for this architecture, with specific specifications to be determined by actual load testing.
5. Conclusion
Two consecutive days of outages show that the stability bottleneck of LLM services has shifted from “algorithm quality” to “systems engineering.” Only by quantifying the four risk categories—queuing, GPU memory, dependencies, and retries—and incorporating them into a capacity model, together with tiered degradation and routine drills, can uncontrollable long outages be converged into predictable short fluctuations.
