LLM Service Outage Post-Mortem: Resilience and Disaster Recovery Practices
This article reviews a large-scale LLM service outage that caused cascading failures across web, mobile, and API clients. It breaks down the symptoms, root causes—from capacity and scheduling gaps to coarse overload protection and observability blind spots—and outlines a resilience architecture covering layered decoupling, elastic capacity, tiered rate limiting, multi-AZ failover, and clear error semantics. Developers and enterprises will find a practical checklist for retries, async long-running tasks, fallback paths, capacity reviews, and service continuity metrics.
1. Incident Overview: A Typical LLM Service Continuity Failure
An AI assistant platform experienced a widespread outage on the afternoon of November 19. Users saw stalled page loads and failed message sends, while mobile clients and developer APIs failed at the same time. Discussions escalated quickly.
From a technical perspective, this was not a single-point failure. It was a cascading failure across multiple clients sharing the same backend path: any instability in the access layer, inference service layer, model cluster, or quota management could be amplified along the call chain to every client.
Notably, the service entered a “partially available” state: a few accounts could access it intermittently, but with very poor stability. This usually means the cluster was not fully down but had entered an overload protection zone—some requests were queued, timed out, or rejected, and the success rate fluctuated at a low level. For developers, this state is harder to handle than a complete outage, because retries further worsen congestion.
2. Technical Breakdown of the Symptoms
- Synchronized errors across clients: Web, mobile, and open APIs often share authentication, session management, and the inference gateway. Once a shared dependency fails, the failure surface naturally spreads.
- Mid-session interruptions: Long-text parsing and code generation are long-running tasks with long-lived connections, making them more sensitive to gateway timeouts, load balancer node removal, and rolling deployments.
- Business error codes returned by APIs: When callers receive non-standard error codes (such as a custom 4028-style response) without classification handling, the business flow breaks outright instead of degrading gracefully.
- Quota and usage tracking anomalies: If rate-limit thresholds and token quota accounting are disconnected from real-time usage, you get bidirectional deviations—“rejected despite remaining quota” or “over quota but not blocked.”
3. Root Cause Analysis: From Compute to the Engineering Pipeline
- Insufficient capacity and elasticity: When instantaneous peaks approach the cluster’s limit, there is no available elastic compute pool or warm-up mechanism, and scaling cannot keep up with traffic growth.
- Missing scheduling and isolation: Online inference, offline batch jobs, and tenants with different priorities are co-located without resource isolation or priority preemption.
- Coarse overload protection: With only global rate limiting and no tiered quotas per API, per tenant, or per model, the system degrades overall instead of protecting critical workloads.
- Observability blind spots: Without end-to-end tracing and saturation metrics (queue time, batch wait, GPU memory usage), diagnosis relies on user feedback.
- Change and release risk: Model iterations, parameter changes, and prompt updates without canary rollout and rollback can introduce instability during peak hours.
4. Resilient Architecture Design for LLM Applications
1. Layered Decoupling and Async Processing
Split authentication, session management, inference scheduling, and post-processing. Convert long-running tasks to a “submit—poll/callback” model so long connections are not cut off by intermediate-layer timeouts.
Client -> Access Gateway (auth/rate limit) -> Task Queue -> Inference Worker Pool -> Result Store -> Callback/Poll
2. Elastic Compute and Capacity Planning
Build a capacity baseline from historical peaks and troughs and the business calendar, and reserve buffer. Combine container platform autoscaling with message queue peak shaving to turn burst traffic into controllable queueing delay rather than outright failure. Set a minimum number of available replicas for critical model clusters to avoid over-scaling down.
3. Tiered Rate Limiting and Graceful Degradation
# Example: tiered quotas per tenant and API + degradation switchdef admit(request):if quota.exceeded(request.tenant, request.api):return fallback(request) # return cached/simplified result/queue noticeif system.saturation() > 0.85:return shed_low_priority() # proactively drop low-priority trafficreturn allow(request)
Degradation policies should be configurable and support canary rollout: prioritize paid and critical business channels, and return clear retryable semantics for non-core features.
4. Multi-AZ and Disaster Recovery
Deploy inference nodes across availability zones with health checks and automatic removal. Externalize critical session state to persistent storage so sessions can migrate and resume after a node failure. Run regular failure drills (node eviction, dependency timeouts, quota misconfiguration) to validate failover time and data consistency.
5. Observability and Error Semantics
Use a unified error code system that distinguishes “retryable (rate limit/queueing)” from “non-retryable (invalid parameters/auth failure),” and include retry guidance in response headers. Monitoring should cover request volume, success rate, P95/P99 latency, queue time, resource saturation, and business success rate, with multi-level alerts.
{"code": "RATE_LIMITED","retryable": true,"retry_after_ms": 1500,"message": "Service is busy, please retry later"}
5. Implementation Checklist for Developers and Enterprises
- Implement exponential backoff with jitter on the client, with a maximum attempt count and total time limit to avoid retry storms;
- Convert long-running tasks to an async task model, persist intermediate results, and support resume from checkpoints;
- Apply structured validation and fallbacks to model outputs, and prepare rule engines or cached results on the business side as degradation paths;
- Establish a capacity review process: run load tests and prepare scaling plans before model launches, major promotions, and batch jobs;
- Include service continuity metrics (availability, success rate, recovery time) in vendor evaluation and your own architecture acceptance.
6. Conclusion
The core competitiveness of LLM services is expanding from “leading quality” to “stable availability.” Building on general cloud capabilities (container platform, message queue, object storage, logging, monitoring and alerting), combined with elastic compute pools, tiered rate limiting, multi-AZ disaster recovery, and a complete observability system, occasional overload can be turned into controllable queueing and degradation—preserving service continuity for enterprise and individual workflows.
