Large Language Model Service Outage Post-Mortem: Technical Review and Disaster Recovery Practices
This article reviews a large-scale large language model (LLM) service outage and breaks down why the failure surfaced across multiple clients at once. It covers the shared backend dependency chain, error code governance, elastic capacity planning for long-context and code workloads, and a disaster recovery and degradation framework built on multi-zone deployment, cross-zone traffic scheduling, feature flags, and task-level resume. It also outlines the service metrics and status communication practices needed to keep LLM services predictable under overload and failure.
1. Event Overview: A Typical LLM Service Continuity Failure
One afternoon, an AI assistant platform focused on long-text processing experienced a widespread service outage. On the user side, the web app stalled while loading and message delivery failed. The mobile app and the web app share the same backend session pipeline, so both exhibited identical symptoms at the same time. On the developer side, API calls kept returning errors and business workflows were interrupted. Sessions dropping mid-conversation invalidated in-progress document parsing and code generation tasks, and the cost of these “long tasks cut in half” is far higher than a single failed query.
From a technical perspective, this was not a single point of failure but simultaneous degradation across multiple dependency tiers: access-layer queuing, inference cluster overload, model service group anomalies, and drift in the quota and metering modules. A few accounts could access the service intermittently with extremely poor stability — a classic “partially available” state. This is more dangerous than a complete outage, because callers cannot use it to trigger circuit breaking.
It is worth noting that such events are not uncommon in the industry. Historical records show that during previous new model launches and version iteration windows, the platform had also tightened subscription entry when instantaneous peaks approached the cluster capacity ceiling, or publicly apologized due to rate limiting and quota metering anomalies. Release windows overlapping with capacity bottlenecks is a reusable lesson.
2. Failure Chain Breakdown: Why the Failure Surfaced Across Clients Simultaneously
When multiple clients report errors at the same time, the failure point usually lies in the shared backend rather than the clients. From the bottom up, it can be divided into four layers:
- Compute and scheduling layer: The inference resource pool ran at a high watermark, the batch processing queue backed up, and request queuing time exceeded the client timeout threshold.
- Model service layer: Memory usage and computation for long-context requests grow non-linearly, and individual extremely long requests can slow down the entire service group, creating “head-of-line blocking.”
- Access and quota layer: Once sidecar components such as rate limiting, authentication, and quota metering malfunction, they can misclassify serviceable requests as unserviceable.
- Client and protocol layer: Unreasonable timeout settings and the lack of retry and backoff can amplify backend jitter into a user-visible avalanche.
Illustrative client-side protection logic:
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 as e: # Back off only on retryable errorsif attempt == max_attempts - 1:raisedelay = min(cap, base * (2 ** attempt)) + random.uniform(0, 0.3)time.sleep(delay)
The key point is to distinguish retryable from non-retryable errors and enable retries only for idempotent requests; otherwise, retries further amplify backend pressure.
3. Error Code Governance: Making Failures Classifiable
During the event, developers received a non-standard business error code. The biggest problem with this design is unclear semantics: callers cannot tell whether the quota is exhausted, authentication has failed, or the backend is overloaded, and can only retry blindly. Recommended governance principles:
- Semantic layering: distinguish five categories — parameter errors, authentication failures, quota overruns, service overload, and internal errors — and avoid using a single code to carry all meanings.
- Retryability flag: explicitly indicate in the response whether a request is retryable and the recommended wait time, reducing client-side guesswork.
- Consistent status documentation: maintain the error code table and changelog together and publish them externally with versioning.
- Observability loop: record and expose a request identifier on the server side so both parties can trace a single call chain by that identifier.
4. Elastic Compute and Capacity Governance
Long-text and code workloads are highly bursty, so capacity planning cannot be based on averages. Actionable practices include: scheduling requests into separate pools by context length to prevent long and short requests from interfering with each other; setting up independent queues and priorities for interactive requests and batch tasks; triggering scale-out based on queuing latency rather than utilization alone; reserving burst quota and defining admission policies that prioritize the determinism of paid channels under overload. Load testing must cover the worst-case scenario of “peak plus release overlap” rather than a smooth curve.
5. Disaster Recovery and Degradation Framework
Continuity metrics should be treated as first-class citizens, with four core mechanisms: multi-zone deployment to reduce single-point risk; cross-zone traffic scheduling to automatically remove unhealthy instances when health checks fail; degradation switches that disable non-core capabilities (such as ultra-long context and add-on parsing) under overload to keep basic conversation available; and task-level resume that persists intermediate state so interrupted long tasks can recover instead of starting from scratch. Regular drills matter more than a plan document — disaster recovery that has never been drilled does not exist.
6. Metrics for Users and Developers
Externally, the service should provide a public service status view and incident timeline that clearly show three states: “investigating / identified,” “mitigated,” and “resolved.” Internally, build a metrics dashboard centered on success rate, time to first token, queuing time, and task completion rate, and set alert thresholds based on user impact. Post-incident reviews should produce a closed loop of root cause, impact scope, and improvement items, rather than just an apology.
7. Conclusion
As intelligent capabilities become embedded in production and office workflows, service continuity is the foundation of business reliability. In related practices, Baidu AI Cloud likewise emphasizes elastic resource pools, monitoring and alerting, and multi-tier disaster recovery to support business continuity. For builders, the real moat is not peak performance but being predictable under overload and failure.
