Large Model Service Outage Post-Mortem: Technical Breakdown and Disaster Recovery Practices
This article presents a technical post-mortem of a large-scale LLM service outage that caused web loading stalls, failed message delivery, API errors, and interrupted long-context tasks. It traces how failures cascade across four coupled layers—traffic peaks, the GPU compute pool, model routing, and quota metering—and explains why LLM outages are rarely isolated single-point faults. The article then outlines architecture practices for service continuity, including elastic compute pools with capacity watermarks, multi-AZ deployment and fault isolation, tiered circuit breaking, degradation and rate limiting, and observability across request volume, success rate, latency percentiles, and queue time. It also covers client-side resilience patterns such as exponential backoff with jitter, idempotency, resumable streaming, result persistence, and asynchronous task processing, along with SLO and capacity governance through error budgets and canary rollouts.
1. Incident Overview: A Typical LLM Service Outage
An AI assistant platform experienced a widespread outage during peak business hours: the web app stopped loading, message delivery failed, mobile sync broke, and developer API calls continuously returned errors. Some sessions dropped midway through context processing, while long-document parsing and code generation tasks were terminated. Monitoring dashboards showed simultaneous degradation across the main service, the AI coding capability, and a newer model cluster. A small number of accounts could access the service intermittently but with extremely poor stability. The paid tier was affected as well—subscribers lost their connection while working on documents and project materials.
Historical records show that the platform had already suffered repeated service disruptions due to tight compute scheduling. During a new model launch, instantaneous peak load approached the cluster’s capacity ceiling, and the platform temporarily tightened subscription access. During an earlier version iteration, API rate limiting and token quota accounting anomalies occurred, followed by a public apology.
Abstracting these symptoms leads to one conclusion: failures in LLM services are rarely single-point problems. They are cascading failures that emerge from the coupling of four factors: traffic peaks, the compute pool, routing strategy, and quota metering. The breakdown below follows the request path layer by layer.
2. How the Failure Propagated
2.1 Access Layer: Connection Buildup and Thread Pool Exhaustion
A “stuck loading” state in the web app usually does not mean the model is slow to compute. It means the request never acquired inference resources. In long-text scenarios, a single request can last tens of seconds. If the access layer waits synchronously, connections and workers are quickly consumed, and subsequent requests queue until they time out.
Client → Access Gateway (connections/rate limiting) → Session Service (context assembly) → Inference Gateway (routing/queuing) → Model Cluster
When the queue length at any stage grows out of control, timeouts propagate upstream and surface as “message failed to send.”
2.2 Inference Cluster: GPU Memory as a Hard Constraint
Concurrency in LLM inference is constrained by both GPU memory capacity and batching efficiency. The longer the context, the larger the KV cache footprint, and the fewer requests can run concurrently. When instantaneous peak load exceeds the capacity ceiling, the scheduler can only queue or reject requests. This is the technical reality behind “temporarily tightening access.”
2.3 Model Routing: Multi-Version Coexistence Amplifies Jitter
During new model launches, canary rollouts, and rollbacks, multiple versions coexist. This lowers routing hit rates, increases cold starts, and amplifies tail latency. The few accounts with “intermittent availability” are a typical symptom of routing jitter combined with partially healthy instances.
2.4 Quotas and Metering: Accounting Consistency Behind Error Codes
An error code like 4028 typically points to an anomaly in quota, authentication, or metering state. Token accounting depends on real-time accumulation from streaming output. Once a stream is interrupted or retried, the count can drift, which affects rate-limiting decisions and creates a negative feedback loop: the more failures occur, the more aggressively requests are throttled.
3. Architecture Design for Continuity
3.1 Elastic Compute Pools and Capacity Watermarks
- Build resource pools tiered by context length, physically isolating long and short requests so long-running tasks do not crowd out interactive traffic.
- Use queue wait time, GPU memory watermarks, and batch saturation as scaling signals rather than CPU alone.
- Reserve burst buffer capacity and load-test peak scenarios to define two distinct lines: “committable concurrency” and “tolerable peak.”
3.2 Multi-AZ Deployment and Fault Isolation
Deploy inference instances across availability zones with cross-zone traffic scheduling. Separate core paths from non-core paths (such as conversation history, exports, and reports) into different pools, prioritizing the interactive main path during failures.
3.3 Tiered Circuit Breaking, Degradation, and Rate Limiting
# Example: tiered degradation policydef handle(request):if quota_exceeded(request.user):return degrade_to_cached_answer(request) # Tier 1: cached/summarized responseif queue_latency() > SLO_MS:return reject_fast(429, retry_after=2) # Tier 2: fast failurereturn route_to_model(request) # Normal path
The key principle is that fast failure is better than a long hang, and every response should include a parseable retry hint.
3.4 Observability
Observability must cover four metric categories: request volume, success rate, latency percentiles (P95/P99), and queue wait time. Logs and distributed tracing should be connected so a single failure can be reconstructed as a complete path across access, routing, instance, and metering, reducing time to diagnosis.
4. What Developers Should Do
When upstream services become unstable, application code should be resilient rather than amplifying pressure with unlimited retries:
import random, timedef call_with_backoff(fn, max_retry=3):for i in range(max_retry):try:return fn()except RateLimitError:time.sleep((2 ** i) + random.random()) # Exponential backoff with jitterreturn fallback()
Additional recommendations:
- Idempotency: generate unique identifiers for sessions and tasks to avoid duplicate billing and duplicate writes on retry.
- Resumable streaming: persist generated fragments and resume from the breakpoint after recovery to reduce losses on long tasks.
- Result persistence: write long-document parsing and code generation results to object storage promptly so tasks can resume after service recovery.
- Asynchronous processing: move long-running tasks to a message queue and have the frontend poll or subscribe to status, avoiding synchronous waits.
5. SLO and Capacity Governance
Service continuity should be quantified: define availability targets, latency targets, and an error budget. When the error budget is consumed too quickly, automatically trigger a release freeze and capacity expansion. Also establish canary and rollback procedures for model versions: roll out new versions to a small traffic share, observe tail latency and metering consistency, then promote to full traffic.
6. Conclusion
For services centered on long-context and AI coding scenarios, elastic compute pools, fault isolation, and disaster recovery are not optional add-ons. They are the foundation of commercial reliability. Only when both developers and platform operators share the capabilities of “degradation expectations, backoff retries, and recoverable state” can business impact be kept within an acceptable range when peaks and failures strike.
