LLM Service Outage Post-Mortem: Root Causes and Resilience Engineering
This article analyzes a typical large language model (LLM) service outage in which both web and API access became unavailable, and breaks down the failure across four layers: capacity, architecture, release, and operations. It then presents a resilience framework covering capacity planning with a queueing-based sizing model, traffic governance through rate limiting, degradation, and prioritization, canary releases with automatic rollback, fine-grained observability, and architecture-level isolation and elasticity. An enterprise adoption checklist is included for teams building and operating LLM applications.
1. Framing the Incident: A Typical LLM Service Outage
A conversational AI platform experienced a simultaneous outage of its web interface and API within a single day. On the user side, the chat page continuously returned “server busy, please try again later,” while the official service status page marked both web and API services as unavailable. That afternoon, the status page was updated to say the issue had been identified and a fix was being implemented; by the evening, a statement declared the incident resolved and all affected services fully restored.
From an engineering perspective, this was not an isolated, accidental failure. It was the concentrated exposure of a high-growth business under simultaneous pressure on three fronts: capacity, architecture, and operations. In public discussion, users counted more than ten service disruptions for the platform that year, including stretches of several consecutive days of unavailability. The direct trigger cited was rapid user growth (on the order of 60% or more) while compute capacity grew only by a low single-digit percentage, creating a severe supply-demand imbalance. This assessment holds up technically: compute consumption for LLM inference scales roughly linearly with request volume, whereas compute expansion is constrained by procurement, rack-and-stack, model loading, and load-testing cycles, so it inherently lags behind traffic growth.
This article makes no judgment about any specific product. Instead, it abstracts the incident into a general engineering problem: when request growth for an online AI service far outpaces compute supply growth, how do you prevent a full outage and keep the blast radius within an acceptable range?
2. Root Cause Breakdown: Four Layers of Failure
2.1 Capacity: Supply-Demand Imbalance and Queueing Collapse
Inference throughput is bounded by GPU memory capacity and compute unit utilization. When requests spike and the batching queue keeps backing up, per-request latency climbs from hundreds of milliseconds to several seconds or even timeouts. Client retries then amplify traffic further, producing a positive feedback loop of “queue, timeout, retry, longer queue” that ultimately takes the whole service down.
2.2 Architecture: Single Points of Dependency and Missing Resource Isolation
When the web interface and the API go down at the same time, it usually means they share the same inference cluster, gateway, or authentication path. Without tenant-level isolation and priority queues, low-value batch jobs crowd out interactive requests for resources.
2.3 Release: Change Stacking on Top of Traffic
Model version updates, prompt template changes, and dependency upgrades all alter the compute profile of a single request. If a change lands on top of a traffic peak, and there is no canary rollout or automatic rollback, a small defect gets amplified into a global outage.
2.4 Operations: Observability Blind Spots
With only a coarse “service unavailable” status and no fine-grained metrics such as queue length, time-to-first-token, GPU memory usage, or error code distribution, diagnosis becomes guesswork, which extends the duration of the incident.
3. Building Resilience: From Reactive Firefighting to Proactive Defense
3.1 Capacity Planning: Turning Growth into a Computable Problem
Use historical peak values as the baseline and build a conversion model linking “request volume, concurrency, GPU memory, latency,” with a redundancy factor applied:
Required inference instances ≈ ceil(peak QPS × avg request duration (s) / (per-instance concurrency × target utilization))Target utilization should be ≤ 0.7, redundancy factor 1.3~1.5
Also run a quarterly alignment review of “traffic forecast vs. compute readiness” so expansion does not lag behind demand.
3.2 Traffic Governance: Rate Limiting, Degradation, and Prioritization
Implement multi-level rate limiting at the gateway (per user, per tenant, per API), combined with token buckets to smooth out bursts. Provide degradation switches for non-core capabilities (such as long-document summarization and batch generation), falling back to cached results or a simpler model when necessary.
# Example: token bucket rate limiting + priority queueif not limiter.allow(user_id): # per-user rate limitingreturn retry_after(2) # explicitly signal when to retry to suppress retry stormsif queue_depth() > HIGH_WATER:degrade_non_core() # disable non-core capabilities to protect the interactive main path
3.3 Canary Rollout and Rollback: Caging Change Risk
Route model and configuration changes through small-traffic canary releases, with automatic rollback thresholds set on error rate, time-to-first-token, and timeout rate. Keep change windows clear of traffic peaks, and retain the ability to switch quickly back to the last stable version.
3.4 Observability: Cutting Diagnosis from Hours to Minutes
Build a unified system of metrics, logs, and traces. The core dashboard should include at minimum: queue depth, batch size, time-to-first-token and total latency percentiles, GPU memory and compute utilization, error code distribution, and retry rate. Configure tiered alerting for key metrics, and run regular incident drills (chaos engineering) to validate that the response plans actually work.
3.5 Architecture Optimization: Isolation and Elasticity
Split resource pools by business priority, physically isolating interactive requests from offline batch jobs. Introduce elastic scaling policies, use message queues to absorb and smooth peaks, and add caching and result reuse for hot capabilities to reduce redundant inference cost.
4. Enterprise Adoption Checklist
- Maintain a capacity ledger with a quarterly alignment mechanism between traffic growth and compute readiness;
- Ship gateway rate limiting and degradation switches, and drill them regularly;
- Put all changes behind canary releases with automatic rollback thresholds configured;
- Fill in fine-grained observability metrics and tiered alerting;
- Run an incident drill once per quarter, output improvement items, and close the loop.
5. Conclusion
An outage typically exposes not a single defect but systemic gaps across capacity, architecture, release, and operations. Turning growth into a computable capacity model, caging change behind canary releases, and compressing the blast radius of failures to an acceptable radius is what keeps online AI services resilient under traffic peaks. For enterprises and developers building LLM applications, the capabilities of cloud platforms such as Baidu AI Cloud (for example, container platforms, message queues, logging services, and monitoring and alerting) can be used to assemble the system described above and steadily improve service stability and user experience.
