Large Language Model Outage Post-Mortem: Technical Breakdown and Disaster Recovery Practices

    This article reviews a large-scale LLM service outage that simultaneously disrupted web, mobile, and API access, and breaks down why AI inference stacks fail as a whole rather than at a single layer. It covers failure propagation across the gateway, scheduling, inference, dependency, and metering layers, then presents architecture-level fixes including elastic compute pools, bulkhead isolation with priority queues, timeout budgets with fast failure, multi-zone deployment, and tiered degradation. It also explains how to persist sessions and long-running tasks for resume-after-disconnect, which observability signals and alert thresholds to monitor, how to run an incident response playbook, and a practical checklist for developers and enterprise users.

    1. Background: A Typical LLM Service Continuity Failure

    An AI assistant platform experienced a widespread outage during the afternoon: the web app stalled on load, message sends failed, mobile sync broke, and developer API calls kept returning error codes. The topic quickly drew public attention. From a technical standpoint, this was not a single-point failure but a textbook cascading failure caused by multiple clients sharing the same backend dependencies.

    The incident showed three characteristics that every team building intelligent applications should watch for:

    • Broad blast radius: web, mobile, and open APIs were affected at the same time, which points to the shared server side and the model inference layer rather than any single client.
    • Lost task state: sessions were cut off mid-flight, and in-progress document parsing and code generation tasks were terminated, exposing the lack of a resume mechanism for long-running jobs.
    • No isolation of the paid path: subscribed users and free users shared the same resource pool, so there was no priority guarantee during the outage and the SLA for commercial service was effectively meaningless.

    Public historical run records show the platform had already suffered repeated service disruptions from tight compute scheduling: instantaneous peaks approached the cluster ceiling when a new model version launched, forcing tighter admission at the entry point, and rate limiting plus quota accounting anomalies appeared during iteration. This indicates that capacity planning and release cadence are frequent root causes of this class of failure.

    2. Breaking Down the Failure Chain: Why LLM Services Go Down Together

    Failures in traditional web services can usually be traced to one layer, but an LLM service has a longer dependency chain, and jitter anywhere gets amplified:

    1. Access layer: misconfigured load balancing, authentication, or gateway rate limits can reject all requests.
    2. Scheduling layer: missing request queuing, priority queues, and tenant isolation lets hot requests consume all available compute.
    3. Inference layer: insufficient GPU memory, poor batching parameters, and long-context requests consuming excessive resources trigger OOM and timeouts.
    4. Dependency layer: a timeout in vector retrieval, object storage, a message queue, or logging can drag down the main path.
    5. Metering layer: if token counting and quota deduction are asynchronously coupled with inference, accounting anomalies and double charging become likely.

    A schematic view of failure propagation can be expressed in pseudocode:

    1. # Call chain with no isolation: a timeout in any dependency propagates upward
    2. def handle(request):
    3. ctx = auth(request) # auth jitter -> total failure
    4. docs = vector_search(ctx) # retrieval timeout -> main path blocked
    5. tokens = llm.generate(docs) # out of GPU memory -> OOM
    6. billing.deduct(tokens) # metering anomaly -> corrupted accounting
    7. return tokens

    The core problem is that the chain is synchronous and serial, with no timeout budget and no bulkhead isolation.

    3. Architecture-Level Fixes: From a Single Cluster to Elastic Disaster Recovery

    3.1 Elastic Compute Pools and Tiered Resources

    Split compute into a “reserved baseline pool + elastic burst pool + offline batch pool”. Interactive traffic runs on the baseline pool to guarantee a floor, burst traffic is absorbed by the elastic pool, and heavy jobs such as document parsing and batch summarization sink to the offline pool so they do not compete with real-time conversation. A container platform with autoscaling can add instances in minutes, but model weight loading and warm-up time must be accounted for, so the scaling policy has to reserve a cold-start window in advance.

    3.2 Bulkhead Isolation and Priority Queues

    Build separate queues and quotas by tenant tier, API type, and context length. Requests from paying users enter a high-priority lane, and extra-long context requests queue separately, preventing “one long document from taking down the whole cluster”.

    1. # Schematic: multiple queues with quota isolation
    2. queues:
    3. - name: interactive_premium
    4. concurrency: 200
    5. max_context: 32k
    6. priority: high
    7. - name: interactive_free
    8. concurrency: 300
    9. priority: normal
    10. - name: batch_longdoc
    11. concurrency: 50
    12. timeout: 300s
    13. priority: low

    3.3 Timeout Budgets and Fast Failure

    Set an explicit timeout for every hop and allocate the total budget top-down. When the remaining budget is insufficient, fail fast and return a retryable response instead of letting the request “die slowly” in a queue.

    1. budget = 8.0
    2. t_auth = min(0.5, budget * 0.1)
    3. t_search = min(1.5, budget * 0.2)
    4. t_llm = budget - t_auth - t_search # remaining budget goes to inference
    5. if t_llm <= 0:
    6. return degrade_response() # degrade fast and release resources

    3.4 Multi-Zone Deployment and Degradation Plans

    Inference services should be deployed across availability zones, with health checks automatically removing unhealthy nodes. Degradation must be tiered: level one disables non-core web search and plugin capabilities; level two switches to a smaller parameter model; level three keeps only plain text chat and clearly tells users that capability is limited. Degradation is not failure; it is a controlled loss of availability.

    4. Keeping Long Tasks Alive: Session and Task Persistence Design

    The most user-visible impact in the incident was document parsing and code writing being cut off midway. The fix is to decouple “session state” from “the inference process”:

    • Persist streaming output as incremental events, so a client can reconnect and pull already-generated fragments using the session identifier.
    • Break long tasks into re-entrant steps, write each step’s output to object storage, and rerun only the failed step.
    • Use a message queue for task orchestration with idempotent consumers, avoiding duplicate billing and duplicate generation.
    • Implement exponential backoff retries on the client, and expose clear retry and recovery entry points.
    1. # Schematic: a resumable streaming session
    2. def stream_chat(session_id, prompt):
    3. for chunk in llm.stream(prompt):
    4. store.append(session_id, chunk) # persist incrementally
    5. yield chunk
    6. def resume(session_id):
    7. return store.load(session_id) # resume after disconnect

    5. Closing the Loop on Observability and Incident Response

    Whether a failure can be localized within minutes depends on observability. At minimum, cover four signal types: request volume, queue latency, time to first token, and error code distribution; also collect business-side metrics such as GPU memory usage, batch size, and queue backlog. Alerting should be configured around “user-perceivable” dimensions, for example triggering when the success rate drops below a threshold or when P99 time to first token exceeds its limit.

    The incident response process should be codified into a drillable playbook:

    1. An alert fires, and the on-call engineer confirms the blast radius and affected tenants.
    2. Degrade non-core capabilities with one action, prioritizing stopping the bleeding.
    3. Scale out or remove unhealthy nodes, and watch the success rate recover.
    4. Publish a concise public status update with an estimated recovery time.
    5. Produce a post-mortem afterward, closing gaps in capacity, isolation, and drills.

    External communication matters just as much: a timely, specific status update that states when the next update will come reduces user churn far more than a long silence.

    6. A Practical Checklist for Developers and Enterprise Users

    • Capacity: estimate GPU memory and concurrency from peak QPS and average context length, and reserve enough headroom for at least one failed release rollback.
    • Isolation: free and paid tiers, and real-time and batch workloads, must be pooled separately to prevent mutual interference.
    • Resilience: the full-chain timeout budget, retry backoff, and circuit-breaking degradation trio is non-negotiable.
    • State: externalize session and task artifacts with persistence, and support resume from a checkpoint.
    • Metering: reconcile quota deduction against inference results asynchronously, with idempotency and reversal mechanisms.
    • Drills: run fault injection regularly to verify that degradation plans actually work.
    • Selection: prefer general-purpose cloud platform capabilities with multi-zone support, complete monitoring and alerting, and logging services. Components such as the container platform, message queue, object storage, and monitoring and alerting offered by Baidu AI Cloud can significantly reduce the complexity of building disaster recovery in-house.

    7. Conclusion

    Competition in LLM services is shifting from the “upper bound of capability” to the “lower bound of continuity”. The trust lost in one large outage often takes many times the outage duration of stable operation to repair. For providers, elastic compute pools and a disaster recovery system are the foundation of commercialization; for users, designing critical workloads to be degradable, resumable, and retryable is the best strategy for living with uncertainty.