LLM Outage Post-Mortem: Technical Root Causes and Disaster Recovery Practices
This article reviews a large-scale outage of an AI assistant service that simultaneously disrupted web, mobile, and developer API access. It breaks down the technical causes—limited inference elasticity, long-context memory amplification, missing service tiers, and weak observability—and presents practical resilience measures for developers: smart retries with exponential backoff, admission control, elastic compute pools across availability zones, graceful degradation, and session persistence. The key takeaway is that rate limiting, degradation, persistence, and observability must be built into the architecture as hard requirements, not added after an incident.
1. Incident Overview: A Typical Multi-Client Outage
An AI assistant service experienced a widespread outage in the afternoon. On the user side, the web client stalled during loading and message sending failed, while the mobile app and developer API calls were disrupted at the same time. The issue quickly drew public attention. From a technical perspective, this was not a single-point failure but a cascading reaction after the access layer, inference layer, and resource scheduling layer came under pressure simultaneously.
The incident showed three typical characteristics:
- Multi-client failure: The web client, mobile app, and open APIs shared the same backend inference cluster, so one fault spread across all clients.
- Lost session state: Long-running tasks such as long-document parsing and code generation were terminated midway, and the context could not be resumed.
- Ambiguous error semantics: Some calls returned non-standard business error codes, making it hard for callers to distinguish rate limiting, authentication failures, and backend overload.
2. Root Cause Breakdown: Why Everything Went Down Together
1. Inference Resources Are the Least Elastic Layer
Traditional stateless services can scale throughput linearly through horizontal scaling, but large model inference depends on GPU memory and accelerator cards, which take a long time to provision and are expensive. When instantaneous peak traffic approaches the cluster’s capacity limit, request queuing, timeouts, and cascading failures occur at the same time.
2. Long Context Amplifies Memory and Bandwidth Usage
Processing long text requires maintaining a large context cache, and GPU memory usage and attention computation grow non-linearly with length. As concurrency rises, the number of sessions a single card can handle drops sharply. If the scheduler lacks prioritization and admission control, it passes the overload pressure on to all users.
3. No Tiered Service Guarantees
If paid and free channels share the same resource pool without isolation, high-priority workloads cannot be protected during a failure. This is the root cause of why paying users were affected as well.
4. Insufficient Observability Slows Diagnosis
Without layered metrics (access success rate, queue time, per-request inference latency, GPU memory utilization), teams struggle to quickly determine whether the problem is rate limiting, a dependency failure, or compute exhaustion.
3. Developer-Facing Solutions: Build Continuity into the Architecture
1. Client and Caller Side: Retry Smartly
Retrying at fixed intervals directly can worsen a cascading failure. The recommended approach is exponential backoff with jitter, and distinguishing retryable from non-retryable errors:
import random, timedef call_with_backoff(fn, max_retry=5, base=0.5):for i in range(max_retry):try:return fn()except TransientError:if i == max_retry - 1:raisesleep = base * (2 ** i) + random.uniform(0, 0.3)time.sleep(sleep)
Key points: retry only on timeouts, rate limiting, and backend overload; fail immediately on authentication failures and invalid parameters; set an overall budget cap to prevent requests from amplifying indefinitely.
2. Server Side: Admission Control and Priority Queues
Deploy token bucket or leaky bucket rate limiting at the inference entry point, allocate quotas by tenant and service tier, and combine queue length limits with fast failure to keep overload away from the compute layer.
3. Resource Layer: Elastic Compute Pools and Multi-AZ Deployment
Split the inference cluster into a shared pool and a reserved pool, with the reserved pool guaranteeing paid and high-priority workloads. Deploy across availability zones with health checks, and automatically drain traffic from a zone when it becomes unhealthy.
4. Degradation Strategy: Protect the Core, Drop the Edge
Under overload, disable non-core capabilities (such as some document parsing and batch jobs) and preserve the main conversation path. Convert non-real-time tasks to asynchronous queuing and return a task identifier, so the client can poll or receive a callback for the result.
5. Session and Task Persistence
Externalize session context and long-running task state to persistent storage and a message queue, so tasks can resume after recovery instead of being discarded entirely.
4. Observability and Incident Response
It is recommended to build a three-layer dashboard: the access layer tracks success rate and latency percentiles, the inference layer tracks queue time and GPU memory utilization, and the business layer tracks task completion rate. Alerts should use multiple windows and multiple conditions to reduce false alarms caused by jitter. At the same time, incident playbooks should be established, clearly defining degradation switches, scale-out trigger thresholds, external communication templates, and post-mortem processes.
5. Conclusion
For services focused on long-text and intelligent coding scenarios, elastic compute pools, tiered service guarantees, and a disaster recovery system form the foundation of commercial reliability. When selecting or building their own solutions, developers and enterprises should treat rate limiting, degradation, persistence, and observability as hard requirements rather than after-the-fact patches.
