LLM Service Outage Post-Mortem: Technical Review and Disaster Recovery Practices
This article reviews a large-scale LLM service outage and breaks down the failure into a three-layer model spanning the gateway, scheduling, and inference layers. It explains why long-running, resource-heavy, and unpredictable-output requests amplify local jitter into a full outage, then covers practical fixes: capped exponential backoff with jitter, semantic error codes with retryable and retry_after_ms fields, isolated compute pools with queue- and GPU-memory-based autoscaling, layered degradation across capability, quality, channel, and data, resumable task state machines, and observability built around business success rate. It closes with recommendations for consumers on designing interruptible, recoverable workflows.
1. Incident Background: A Typical LLM Service Continuity Failure
One afternoon, an intelligent LLM platform focused on long-context processing experienced a widespread service outage. On the user side, the web app stalled during loading for extended periods and messages submitted in chat received no response; on mobile, sessions were interrupted. On the developer side, API calls kept returning errors, leaving business flows unable to complete. Monitoring dashboards showed that the main chat service, the AI coding assistant, and the new-generation model inference cluster were all degraded to varying degrees, with a small number of accounts able to access intermittently but with very poor stability. Paid channels received no additional guarantees, and in-progress document parsing and code generation tasks were terminated. In the early stage of the incident, no fault explanation or estimated recovery time was published.
From an engineering perspective, this was not a single point of failure but a compound failure in which all three tiers — gateway, scheduling, and inference — were under pressure at the same time. Abstracted out, it yields a general failure model for online LLM serving:
- Gateway tier: long-lived connection buildup, gateway queue overflow, overload of authentication and rate-limiting components;
- Scheduling tier: compute pool water level too high, batch queue backlog, resource contention between tenants;
- Inference tier: long context creating memory and bandwidth pressure, amplified per-request latency variance, tail latency dragging down overall throughput.
2. How the Failure Was Amplified: From Local Jitter to Global Unavailability
LLM requests have three characteristics that differ from traditional web services: long per-request duration, highly elastic resource consumption, and unpredictable output length. These three points make them far more prone to avalanche-style propagation.
- Long duration causes retry stacking. Clients automatically retry after a timeout while the server is still processing the old request, so effective load multiplies.
- Output length is uncontrollable. Scenarios such as long-document summarization and whole-repository code comprehension can keep a single generation running for tens of seconds, occupying an inference slot far longer than an ordinary Q&A.
- Resources are tightly coupled. The same pool of compute serves both online interaction and offline batch jobs; when online traffic jitters, batch jobs do not slow down and further squeeze the remaining headroom.
Illustrative client retry logic (unbounded retries should be avoided):
import random, timedef call_with_backoff(fn, max_attempts=3, base=0.5, cap=8.0):for attempt in range(max_attempts):try:return fn()except TransientError:if attempt == max_attempts - 1:raise# Exponential backoff with jitter to avoid a retry stormdelay = min(cap, base * (2 ** attempt)) * (0.5 + random.random())time.sleep(delay)
The key point is that retries must include jitter, must have an upper bound, and must distinguish retryable from non-retryable errors; otherwise the client becomes the largest source of pressure at the moment the service is most fragile.
3. Error Code Governance: Making Failures Explainable and Routable
The “4028”-type errors reported by developers during the incident essentially compressed many different exceptions into one vague business error code. A sounder engineering approach is to split failures into categories that support decisions:
| Category | Meaning | Client action |
|---|---|---|
| Rate limiting | Quota or concurrency limit exceeded | Back off and retry, reduce concurrency |
| Overload | Server water level too high | Fail fast and switch to a backup channel |
| Authentication | Credential or permission problem | Do not retry, prompt to refresh credentials |
| Parameters | Context too long, malformed format | Do not retry, trim the input |
| Dependency | Downstream storage or queue failure | Limited retry plus circuit breaking |
Example of a unified error structure:
{"code": "OVERLOADED","retryable": true,"retry_after_ms": 1200,"trace_id": "b7f1c9e2","message": "server busy, please retry later"}
Semantic responses carrying retryable and retry_after_ms let SDKs and business orchestration automatically choose backoff, queuing, or degradation instead of guessing wrong through string matching.
4. Elastic Compute and Scheduling: The Core Foundation for Long-Context Scenarios
Long context is a memory- and bandwidth-intensive workload, so capacity planning cannot look at average QPS alone; it must look at the distribution of the product of three factors: concurrent sessions × average context length × generation length. Practices that can be implemented include:
- Pool isolation: place online interaction, coding assistance, and batch offline jobs in separate resource pools so they do not trample each other;
- Priority and quota: paid and free tenants use different priority queues, with quotas limited per tenant rather than globally;
- Elastic scaling: use queue wait time and GPU memory water level as scaling signals, which track the real bottleneck more closely than CPU utilization alone;
- Input-side constraints: for extra-long contexts, use chunking, summary compression, and retrieval augmentation to reduce per-request load;
- Batch shaping: merge scattered small requests into batches and stagger large requests to reduce slot fragmentation.
Pseudocode for the scaling signal:
def scale_decision(queue_wait_p95, gpu_mem_ratio, inflight):if queue_wait_p95 > 800 or gpu_mem_ratio > 0.85:return "scale_out"if queue_wait_p95 < 100 and gpu_mem_ratio < 0.45 and inflight < low_watermark:return "scale_in"return "keep"
5. Disaster Recovery: Turning “Unavailable” into “Degradable”
Mature service continuity solutions emphasize layered degradation rather than a simple binary switch between online and offline:
- Capability degradation: when the primary model is unavailable, switch to a smaller backup model to preserve basic availability;
- Quality degradation: shorten the maximum generation length and disable costly long-context features;
- Channel degradation: deploy across multiple availability zones, with the gateway automatically removing unhealthy nodes based on health status;
- Data fallback: externalize session and task state to persistent storage and a message queue so work can resume after recovery instead of being lost entirely.
State machine sketch for resumable tasks:
CREATED -> QUEUED -> RUNNING -> (SUCCEEDED | FAILED | INTERRUPTED)INTERRUPTED -> QUEUED # Re-enqueue after recovery instead of making the user redo the work
6. Observability and Incident Response
The early “no explanation, no recovery time” gap usually stems from an observability system that only covers process liveness and not business success rate. At a minimum, four classes of metrics are recommended:
- End-to-end success rate, time to first byte, and the distribution of per-request generation duration;
- Queue wait time, concurrent slot occupancy, GPU memory and bandwidth water levels;
- Failure rate and error code distribution per tenant and per surface (web / mobile / API);
- Dependency health: correlated alerting across storage, queues, authentication, and the gateway.
The response process should be codified into a rehearsable runbook: alert triggers → severity classification → public status page notice → rate limiting and degradation → scale out → recovery verification → post-mortem and archival. Templated external notices (impact scope, current actions, time of next update) significantly reduce user anxiety and the secondary load from repeated inquiries.
7. Practical Recommendations for Consumers
For enterprise and individual users, designing critical workflows to be “interruptible and recoverable” is more realistic than expecting zero failures from the provider:
- Save intermediate artifacts in segments for long tasks, avoiding a single long context;
- Persist key results locally or to object storage rather than relying on a single session;
- Implement idempotent submission and resume-from-checkpoint on the business side;
- Build an abstraction layer across multiple providers or channels, keeping interfaces neutral so switching is easy.
8. Conclusion
This large-scale outage is a reminder to the industry: competition in LLM services is shifting from the “upper bound of capability” to the “lower bound of continuity.” Elastic compute pools, semantic error governance, layered degradation, and resumable state management, combined with an observability system that covers business success rate and routine drills, are the real foundation of reliability for commercial services. For consumers, architecting for degradation and recovery is the best way to coexist with uncertainty.
