Large Model Service Outage Post-Mortem: Technical Review and Disaster Recovery Practices
This article reviews a large-scale outage on an AI assistant platform that simultaneously affected web, mobile, and open API access, and breaks the ambiguous "service unavailable" symptom into observable signals across the access, inference, dependency, and quota layers. It explains why large model inference is more fragile than traditional stateless web services, covering compute supply rigidity, high per-request resource usage, and state affinity, and then presents three technical responses: elastic compute pools with capacity watermark governance, priority-based rate limiting with graceful degradation and multi-region disaster recovery, and layered observability with public status transparency. It closes with resilience practices for consumers, such as resumable tasks, persisting results, and abstracting model backends. Readers will find capacity formulas, watermark control pseudocode, a structured error response example, and actionable engineering recommendations.
1. Incident Overview: A Typical Multi-Surface Simultaneous Failure
An AI assistant platform experienced a widespread service disruption this afternoon. On the user side, web pages stopped loading and message submissions went unanswered. On the developer side, APIs kept returning error codes, and while some accounts could access the service intermittently, their success rate was extremely low.
Notably, the failure was not confined to a single entry point. It affected the web client, the mobile client, and the open API at the same time, which indicates the problem sat in a shared dependency layer used by all surfaces rather than in one front-end rendering module.
From a workload perspective, long-context tasks were hit hardest. Sessions for document parsing, information summarization, code completion, and generation were cut off mid-run. The inference compute already consumed and the context window in use could not be reused, so users had to restart from scratch. Paid tiers were not spared either, showing that billing tiers did not translate into physically isolated resource guarantees.
As of the official incident notice, no root cause or recovery time commitment had been provided. This “information vacuum” is itself part of service continuity capability, and status transparency is discussed later in this article.
2. Breaking Down the Failure Profile: Turning “Down” into Locatable Signals
The first step in reviewing this class of incident is translating the vague “it doesn’t work” into observable signal dimensions:
- Access layer: Whether DNS resolution, the authentication gateway, and load balancer health checks pass; whether error codes cluster at the authentication stage or the request forwarding stage.
- Inference layer: Queue latency, batch saturation, and whether GPU memory and compute pool watermarks have peaked.
- Dependency layer: Whether middleware such as session storage, context cache, object storage, message queues, and vector retrieval shows timeouts or connection exhaustion.
- Quota layer: Whether tenant-level rate limiting, token metering, and quota validation services are malfunctioning, and whether metering jitter is misjudged as over-quota and used to reject requests.
The custom error code in the original report, a 4028-style code, typically points to “quota or admission validation failed” or “gateway policy interception.” Its diagnostic value is that it proves the request already reached the platform boundary, so the failure is more likely in admission and scheduling than in network reachability. Engineering practice should ensure every error code has clear semantics, a queryable error dictionary, and retry guidance, so users do not have to guess.
3. Root Cause Hypotheses: Why Large Model Services Are More Fragile Than Traditional Web Services
Scaling a traditional stateless web service is close to linear, while scaling large model inference faces three rigid constraints:
- Rigid compute supply: High-end accelerators have long procurement and cluster delivery cycles and cannot be added in minutes the way ordinary virtual machines can.
- High per-request resource usage: Long contexts mean larger GPU memory consumption and longer decode times, so a small number of extra-long requests can significantly raise overall queue latency.
- State affinity: Session context, cached prefixes, and KV cache are often bound to a specific instance or shard. When an instance is reclaimed, the context is lost and retry costs are high.
So “tight compute resource scheduling” is not an excuse but a modelable capacity problem. Let the peak request rate be λ, the average resource usage per request be c, and the effective cluster capacity be C. As λ·c keeps approaching C, waiting time in the queueing-theory sense amplifies nonlinearly, producing the typical symptom of “a few accounts can access intermittently while overall stability is very poor.”
Historical records support this pattern: instantaneous peaks approaching the capacity ceiling during major model version launches, and rate limiting and quota accounting anomalies during iteration periods, are all essentially capacity watermark and metering pipeline problems rather than single-point hardware failures.
4. Technical Response One: Elastic Compute Pools and Capacity Watermark Governance
Elasticity is not “being able to add machines.” It is “adding them predictably, adding them in time, and being able to take traffic immediately after adding.” Practical measures include:
- Tiered resource pools: Schedule interactive short requests and offline long tasks in separate pools so long tasks do not squeeze the interactive path; run offline tasks in a low-priority queue that allows preemption and reordering.
- Watermark-based tiered policies: Map three watermarks of 60%/75%/90% to “observe—scale out—rate limit,” turning scaling decisions from manual judgment into rule-triggered actions.
- Warm-up and readiness probes: New instances must finish model loading and cache warm-up and pass a real inference probe before joining rotation, preventing “scaling out causes a second failure.”
- Capacity regression: Before each model version iteration, replay load test traffic that closely matches the real distribution to output peak capacity and the degradation inflection point.
Illustrative watermark controller logic (pseudocode):
def control_loop(metrics, pool):util = metrics.gpu_utilization_p95queue = metrics.queue_wait_seconds_p95if util > 0.90 or queue > 8.0:pool.scale_out(step="max_safe") # scaling is constrained by quota and delivery cyclesgateway.enable_shedding(priority=["batch", "free_tier"])elif util > 0.75:pool.scale_out(step="small")elif util < 0.45 and queue < 1.0:pool.scale_in(protect_min_warm=2) # keep warm standby capacity when scaling in
5. Technical Response Two: Rate Limiting, Degradation, and Multi-Active Disaster Recovery
The goal of rate limiting is not to reject users but to keep the system “partially available” under high load. Combine four dimensions:
- Priority-based rate limiting: Paid interactive requests > free interactive requests > batch offline tasks; protect the core path rather than pursuing equality.
- Request-feature rate limiting: Set tiered quotas by context length, and queue extra-long requests separately with an estimated wait time returned.
- Graceful degradation: Turn off non-core enhancements such as additional retrieval, reranking, and rich media parsing while keeping basic conversation and short text generation; return a “degraded” indicator instead of a direct error.
- Retry governance: Clients use exponential backoff with jitter, and the server performs idempotent deduplication on retried requests to avoid a “retry storm” knocking a recovering cluster down again.
For disaster recovery, a progressive path of active-active within the same city plus remote disaster recovery can be adopted: session and metering data are replicated asynchronously, and inference clusters share traffic by region. During a failure, traffic scheduling switches requests to healthy regions while accepting a certain context rebuild cost. The key prerequisite is routine drills—a disaster recovery plan that has not been drilled is usually ineffective in a real failure.
6. Technical Response Three: Observability and Status Transparency
What users and developers fear most is not the failure itself but “not knowing whether it is a failure or when it will recover.” Build observability in three layers:
- Infrastructure layer: Accelerator utilization, GPU memory usage, network retransmission, and storage latency.
- Service layer: Request success rate, time to first token, overall latency percentiles, queue length, and error code distribution.
- Business layer: Task completion rate, session interruption rate, quota validation failure rate, and a per-tenant success rate heatmap.
Externally, provide a public status page and structured incident notifications that clearly state four elements: “impact scope—start time—current progress—estimated recovery.” For developers, error responses should carry a traceable request identifier and a suggested action:
{"error": {"code": "quota_or_admission_rejected","retryable": true,"retry_after_ms": 1500,"request_id": "r-8f3c...","hint": "reduce context length or retry later"}}
7. Resilience Design Recommendations for Consumers
Both enterprise and individual users can build failure resistance into their own workflows:
- Resumable tasks: Split long documents into segmented tasks and persist intermediate results, so a single failed segment only reruns that segment.
- Persist results: Write generated content to local storage or object storage immediately to avoid losing output when a session is interrupted.
- Multi-backend abstraction: Wrap model calls behind a unified interface in code and switch between different providers or self-hosted inference endpoints via configuration, so a failure only requires a config change.
- Asynchronous redesign: Convert non-real-time tasks to a submit-then-poll/callback model, which naturally tolerates minute-level jitter.
- Contract-based error handling: Distinguish retryable from non-retryable errors and apply backoff retries only to the former.
8. Conclusion
This multi-surface simultaneous error shows again that as AI becomes deeply embedded in production and office workflows, service continuity has been upgraded from an “operations metric” to a “business metric.” For providers, elastic compute pools, tiered degradation, multi-active disaster recovery, and a transparent status page form the foundation of reliability. For consumers, task segmentation, persisting results, and backend abstraction are the lowest-cost self-protection measures. Baidu AI Cloud’s practices in general capabilities such as container platforms, monitoring and alerting, log services, and message queues also show that making capacity watermark management and failure drills routine engineering processes is the fundamental path to keeping “occasional outages” within an acceptable range.
