LLM Service Outage Post-Mortem: Technical Review and Disaster Recovery Practices

    This article reviews a typical large language model (LLM) service continuity incident and turns it into reusable engineering lessons. It explains why an outage can surface across web, mobile, and API clients at the same time, how shared dependencies and long-context workloads create head-of-line blocking, and how to design stable error contracts with retry semantics. It also covers capacity planning, tiered admission control, load shedding, multi-zone and active-active disaster recovery, observability, and chaos testing, plus practical advice for enterprises and developers that depend on AI services in production.

    1. Framing the Incident: A Typical LLM Service Continuity Failure

    An AI assistant platform experienced a widespread service disruption this afternoon. On the user side, pages stalled during loading and message submissions failed; on the developer side, the API kept returning errors. The failure was not limited to a single entry point—it simultaneously affected the web app, the mobile app, and the open API, which strongly suggests the problem was in a shared server-side path rather than in one client version. Some sessions were switched to backup nodes after the interruption and became intermittently available. This “connectable but highly unstable” behavior usually points to insufficient capacity and scheduling jitter rather than a complete outage.

    From an engineering perspective, this kind of event should be reviewed as a general technical problem: once an intelligent service is embedded into office and production workflows, service continuity becomes as important as model quality. This article does not discuss any specific vendor. Instead, it abstracts the incident into four reusable technical topics: how failures are detected, how errors are expressed, how capacity is scheduled, and how dependencies are isolated.

    2. Why Multiple Clients Fail at Once: Shared Dependencies and the Call Path

    When multiple clients fail simultaneously, a shared dependency has almost certainly broken. A typical path can be split into five layers:

    1. Access layer: DNS resolution, load balancing, gateway authentication, and rate limiting;
    2. Session layer: context storage, session state, and long-lived connection management;
    3. Orchestration layer: task scheduling, plugins, and tool calls (such as document parsing and code execution sandboxes);
    4. Inference layer: model clusters, batching queues, GPU memory, and compute pools;
    5. Dependency layer: object storage, cache, message queues, logging, and monitoring.

    Long-context scenarios significantly amplify pressure on layers 3 and 4: the longer the context, the more GPU memory and compute time a single request consumes, and batch throughput is easily dragged down by a few extremely long requests, creating head-of-line blocking. When the orchestration layer and the inference layer share the same compute pool, resource pressure in one stage propagates back up the call chain and eventually surfaces as a uniform error across all clients.

    3. Error Code Governance: Making Failures Explainable

    During the incident, developers received a non-standard business error code, which prevented automated pipelines from branching on the failure. This is a common interface design flaw. A reliable error contract should cover at least four dimensions:

    1. {
    2. "code": "RATE_LIMITED",
    3. "http_status": 429,
    4. "retryable": true,
    5. "retry_after_ms": 1200,
    6. "trace_id": "b7f1c9e2",
    7. "message": "concurrency quota exceeded, please retry"
    8. }

    The key points are: stable error code semantics, an explicit retryable flag, and a trace identifier for the request path. With these, clients can implement exponential backoff with jitter instead of blindly resending and worsening an avalanche:

    1. import random, time
    2. def call_with_backoff(fn, max_attempts=5, base=0.4):
    3. for i in range(max_attempts):
    4. try:
    5. return fn()
    6. except RetryableError as e:
    7. if i == max_attempts - 1:
    8. raise
    9. delay = e.retry_after_ms / 1000 or base * (2 ** i)
    10. time.sleep(delay + random.uniform(0, 0.3)) # add jitter to avoid synchronized retries

    4. Capacity and Elasticity: Compute Pooling, Priorities, and Admission Control

    Similar platforms have repeatedly gone through the cycle of “peak traffic approaching the cluster limit → tightening the entrance → publishing an apology,” which is essentially capacity planning lagging behind traffic growth. Three practical measures:

    • Resource pooling and elastic scaling: abstract inference compute into a unified resource pool and scale out based on leading indicators such as queue length and queue latency, instead of reacting only after the error rate spikes;
    • Tiered admission: set different concurrency quotas and priority queues for free, subscription, and enterprise calls, and prioritize paid and business-critical paths during peaks;
    • Overload protection: enforce concurrency limits and token-bucket rate limiting at the gateway, turning an “uncontrollable avalanche” into “controlled partial rejection.”
    1. rate_limit:
    2. tier_free: { qps: 2, concurrency: 4 }
    3. tier_paid: { qps: 20, concurrency: 64 }
    4. tier_enterprise: { qps: 120, concurrency: 512, priority: high }
    5. overflow_policy: shed_lowest_priority # shed lowest-priority traffic under overload

    It is worth stressing that elastic scaling has cold-start and model-loading latency, so rate limiting and graceful degradation must come first; scaling out is a supplement, not a fallback of last resort.

    5. Disaster Recovery: Multi-Zone, Active-Active, and Fault Drills

    To escape the situation where a single point of jitter takes down the whole site, disaster recovery needs to be built as a system:

    1. Deploy across multiple availability zones, with the gateway automatically removing unhealthy nodes based on health checks;
    2. Externalize session state to shared cache and persistent storage so context is not lost when a node restarts;
    3. Make critical tasks (document parsing, code generation) asynchronous, backed by message queues and resumable checkpoints, so a long task is not terminated outright by a single disruption;
    4. Build degradation switches: when the model is unavailable, fall back to a smaller model or return cached results to keep the service “slow but available”;
    5. Run regular chaos drills that actively inject node failures and dependency timeouts to validate the response plans.

    6. Observability and Post-Mortem Practices

    How fast a failure is detected determines the size of the loss. A minimal monitoring set should include: request success rate, time to first byte, queue time, token throughput, error code distribution, and dependency timeout rate. Alerts should be triggered by combinations of multiple metrics and a sustained duration to reduce false positives from a single point of jitter:

    1. alert: llm_service_degraded
    2. expr: success_rate < 0.95 and p95_queue_latency > 8s
    3. for: 3m
    4. labels: { severity: "P1" }

    At the same time, keep a complete trace_id spanning from the gateway to the inference layer, and periodically produce availability reports and post-mortems so that every incident becomes an input for capacity and disaster recovery planning.

    7. Recommendations for Consumers

    For enterprises and developers, an intelligent service should not be treated as an “always-on” dependency: design critical workflows to be asynchronous with retries, persist and validate generated output, prepare a backup model channel, and specify continuity targets in contracts. General-purpose capabilities from cloud providers such as Baidu AI Cloud—container platforms, message queues, object storage, logging services, and monitoring and alerting—can serve as building blocks for the high-availability architecture described above, to be designed and integrated by the consumer according to their own business needs.

    8. Conclusion

    A large-scale outage usually exposes not a single defect but systemic debt across capacity, error contracts, dependency isolation, and disaster recovery drills. Treating service continuity as a first-class citizen in design is the essential lesson once AI is deeply embedded in production pipelines.