Large Language Model Service Outage: Technical Post-Mortem and Disaster Recovery Practices
This article reviews a large-scale large language model service outage and breaks it down into engineering problems that can be measured, degraded, and recovered. It covers layered definitions of unavailability across the access, session, inference, and dependency layers, service level metrics based on completion rather than raw uptime, explicit and machine-readable error semantics, elastic compute scheduling with admission control, multi-region active-active deployment and disaster recovery, task-based checkpointing for long-running jobs, observability and external communication, and a practical implementation checklist for building reliable commercial LLM services.
1. Incident Overview: A Typical LLM Service Continuity Failure
An AI assistant platform experienced a widespread outage in the afternoon. Users saw stalled page loads and failed message sends, while mobile clients and developer APIs failed at the same time. Monitoring showed simultaneous degradation across the main service, an AI coding assistant service, and the model inference clusters, with a small number of accounts able to connect intermittently but with very poor stability. Paid tiers were not exempt: long-running tasks such as long-document parsing and code generation were cut off midway, losing context and intermediate artifacts.
From a technical standpoint, this was not a single point of failure but a textbook cascading failure: requests piled up at the access layer until thread and connection resources were exhausted, queuing latency amplified at the inference layer, and backlogged caches and queues pushed pressure back onto upstream components, eventually taking down the entire request path. At the time of publication, the vendor had issued no explanation and no estimated recovery time — itself a gap in the continuity system, since there was no external status communication or progress update mechanism.
The platform had been disrupted before by tight compute scheduling: instantaneous peaks during new model version launches pushed close to cluster capacity limits, forcing temporary tightening of subscription entry points, and version rollouts had produced API throttling and quota accounting anomalies. This indicates the root cause was not incidental but a systemic gap across capacity planning, elastic scaling, and change management.
2. Scoping the Impact: Define “Unavailable” Before Talking About Recovery
Mature continuity governance classifies a failure by layer instead of simply reporting that “the service is down.”
- Access layer unavailable: requests cannot be established or authentication fails; errors concentrate at the gateway and load balancer.
- Session layer unavailable: requests reach the service but context is lost or streaming output is interrupted — the most damaging layer for user experience.
- Inference layer unavailable: queue timeouts, batch failures, GPU memory exhaustion; this shows up as high latency rather than explicit errors.
- Dependency layer unavailable: object storage, logging, and monitoring/alerting components fail, which takes out observability at the same time.
Only after this classification can service level objectives be defined. The core metrics should be time to first token for streaming responses, single-turn completion rate, and long-task resume success rate, rather than API availability alone. Long-text and code scenarios are far more sensitive to completion rate than to average latency.
3. Error Codes and Status Semantics: Make Failures Machine-Understandable
During the incident, developers received non-standard errors such as 4028, leaving business logic unable to determine whether a retry was safe. This is a typical API contract design flaw. Error semantics should be explicitly layered:
Category Meaning Client ActionRATE_LIMIT Quota or concurrency limit Retry with exponential backoffOVERLOAD Cluster overloaded Switch to backup channelCTX_LOST Session context invalid Resubmit a context summaryPARTIAL Streaming output interrupted Resume from checkpoint or recomputeAUTH Authentication failed Refresh credentials, do not retry
The key principle: retryable and non-retryable failures must be distinguishable in code, and error responses should carry retry guidance, the throttling window, and a request trace identifier so automated orchestration can make decisions.
4. Elastic Compute and Scheduling: Turn Peaks into a Predictable Curve
Inference workloads are strongly time-of-day dependent and bursty. A static resource pool inevitably collapses at peaks and wastes capacity in troughs. A workable design has three layers:
- A baseline pool guarantees everyday concurrency with reserved headroom to absorb jitter.
- An elastic pool scales automatically based on queue length and queuing latency; scaling signals should include the number of waiting tasks, not utilization alone.
- An overflow channel routes low-priority work to an offline queue so interactive requests stay prioritized.
Admission control is equally mandatory: when queuing latency crosses a threshold, reject new requests proactively with an explicit error instead of letting everything time out together. Rejecting part of the traffic is what preserves the whole.
5. Multi-Region Active-Active and Disaster Recovery: A Single Cluster Cannot Support Commercial Commitments
Continuity requirements from enterprise customers cannot be met by a single-region, single-cluster architecture. Recommended approach:
- Deploy inference services across multiple regions with weighted traffic splitting, automatically ejecting an unhealthy region on failure.
- Externalize session state to shared storage and a message queue so users can resume long tasks after switching channels.
- Roll out model versions progressively, sending a small traffic share to the new version first, with automatic rollback triggered by anomalous metrics.
- Deploy dependency components as multiple replicas across availability zones to avoid losing observability along with everything else.
Disaster recovery drills should be routine, using fault injection such as network partition, throttling, dependency timeouts, and GPU memory exhaustion to verify that degradation paths actually work.
6. Long-Task Resume and State Persistence
Long-document parsing and code generation are minute-scale tasks. A network blip forces a full recompute, which is extremely costly. The engineering fix is to make these tasks task-based: split a single request into persistable stages, write intermediate results to object storage, and have the client hold a task identifier so it can fetch progress or resume after a disconnect. Even if the inference side is briefly unavailable, user assets are not lost and retry cost stays bounded.
7. Observability and External Communication
Three signal types are needed: technical metrics (latency, error rate, queue length), business metrics (task completion rate, resume rate), and sampled real user experience. Alerts must distinguish local degradation from full outage so alert storms do not mask the root cause. Externally, there should be a status page with scheduled progress updates — silence during an incident is read as loss of control.
8. Mapping to General Capabilities from the Baidu AI Cloud Perspective
Without referencing any proprietary interfaces, the architecture above maps to a combination of industry-standard capabilities: a container platform to host inference services and elastic scaling, object storage for task intermediate state, a message queue for peak shaving and task orchestration, logging plus monitoring and alerting as the observability foundation, and multi-region networking with load balancing for active-active traffic splitting. Baidu AI Cloud’s approach in these general categories aligns with common industry continuity practices: metrics-driven elasticity, recoverability through externalized state, and gray releases plus drills to validate disaster recovery effectiveness.
9. Implementation Checklist
- Define layered unavailability criteria and the three core service level metrics.
- Rework error codes so retryability is machine-identifiable.
- Establish elastic scaling and admission control triggered by queuing latency.
- Make long tasks fully task-based with persisted intermediate state and checkpoint resume.
- Adopt multi-region active-active with automatic ejection, plus gray model releases with automatic rollback.
- Run routine fault injection drills and provide an external status notification mechanism.
Service continuity is not a remedy applied after an outage; it is an engineering foundation built from capacity, contracts, state management, and communication. Breaking an outage down into measurable, degradable, and recoverable technical problems is the reliable path for commercial LLM services.
