LLM Service Outage Postmortem: Lessons from a Near 10-Hour Long-Tail Disruption

    This postmortem breaks down a near 10-hour large language model service outage characterized by repeated recovery-and-failure cycles rather than a single clean outage. It traces the root cause from a physical data center event in one availability zone to cascading control-plane and model-routing failures, outlines the impact on callers across availability, consistency, cost, and user experience, and presents architecture and operations practices such as cross-AZ and cross-region failover, bulkhead isolation, budgeted retries with exponential backoff and jitter, circuit breaking, tiered degradation, observability by interface/model/AZ, and regular failover drills. A practical checklist helps teams turn a long outage into a controlled, minutes-level impact window.

    1. Incident Overview: A Classic Long-Tail, Wide-Scope Outage

    One evening, a large language model service provider began showing anomalies: the web chat endpoint, the developer console, and an AI coding tool all saw error rates spike almost simultaneously. The issue was initially treated as a routine login/logout failure, but soon some APIs became fully unavailable. System status fluctuated repeatedly; the main capabilities gradually recovered only near midnight. Then, in the early morning, the core inference model failed at scale again, followed shortly by a lightweight model, and things did not fully settle until around 5 a.m. the next day—bringing the cumulative outage to nearly ten hours.

    The defining feature of this kind of incident is not a simple “down” state but long-tail repetition: a single failure window that lasts a long time and is punctuated by multiple “recovered—failed again” oscillations. For callers, a long-tail outage is harder to handle than a one-time crash, because retry policies, circuit-breaker thresholds, and on-call rhythms all get repeatedly disrupted.

    2. Root Cause Chain: From a Physical AZ Event to Model Routing Failure

    The post-incident report indicated that a core data center operated by a cloud provider at an overseas location was struck by an unidentified object, causing sparks and a fire. Power had to be cut on site, and one availability zone (referred to here as az2) was damaged; restoring connectivity took several hours. Other AZs in the same region remained operational, but cross-AZ calls, the control plane, and quota scheduling were all affected, and multiple online services were impacted at once.

    Abstracted out, the chain breaks into four layers:

    1. Physical layer: Power loss and abnormal facility conditions made compute and network in that AZ unavailable.
    2. Infrastructure layer: Both the control plane (authentication, quota, routing, image and configuration distribution) and the data plane were affected, producing a split state where “the console was down but some APIs still worked.”
    3. Platform layer: Inference services typically rely on multi-AZ resource pools and a unified gateway; a single-AZ failure triggers capacity reshuffling and queuing, amplifying long-tail latency.
    4. Model layer: Different models are deployed in different resource pools and priority queues, so failures spread in a “core model → lightweight model” order, creating a secondary error peak.

    It is worth emphasizing that initially focusing the investigation on the login/logout path is a common localization pitfall in long outages: control-plane and data-plane anomalies look similar, and without call-chain and dependency topology, it is easy to burn golden repair time in the wrong direction.

    3. Direct Impact on Callers and a Risk Profile

    • Availability risk: API error rates rise non-linearly, timeouts and rate limiting stack up, and retries actually worsen congestion.
    • Consistency risk: Interrupted streaming output, lost session context, and unclear task status leave the business side with “half-completed” data.
    • Cost risk: Long retries and queuing amplify resource consumption, and bills and quota show spikes after recovery.
    • Experience risk: Strongly real-time scenarios such as AI coding tools and customer-service bots are the most sensitive to outages, with concentrated user churn and complaints.

    4. Architecture-Side Solutions: Caging the Single Point of Failure

    1. Cross-AZ and Cross-Region Disaster Recovery

    Core principle: Do not bind critical paths to a single availability zone. For inference services, run at least multi-replica across AZs; for high-priority workloads, consider cross-region asynchronous replication and traffic switching. Switching must have predefined “trigger conditions—decision owner—rollback conditions” to avoid ad-hoc decisions in the moment.

    2. Dependency Isolation and the Bulkhead Pattern

    Split authentication, quota, routing, and model inference into separate bulkheads so that jitter in any one layer does not spread. Set independent thread pools/connection pools and concurrency limits for model calls to prevent slow requests from dragging down the whole service.

    3. The Right Way to Handle Timeouts, Retries, and Circuit Breaking

    Retries must use exponential backoff plus jitter and enforce a total budget; circuit breakers should distinguish “error-rate type” from “slow-call type.” Example:

    1. # Pseudocode: retry with budget and jitter
    2. budget = 3
    3. for i in range(budget):
    4. try:
    5. return call_model(req, timeout=2.0)
    6. except TimeoutError:
    7. sleep = min(8, 2 ** i) + random.uniform(0, 0.5)
    8. time.sleep(sleep)
    9. raise ServiceUnavailable()

    4. Degradation and Fallback

    Prepare multi-level degradation: switch to a backup model size, shorten context, disable non-core tool calls, or return cached or templated results. Degradation switches should support canary rollout and take effect within seconds, and be linked with monitoring.

    5. Observability: Making Long-Tail Failures Visible and Pinpointable

    • Metrics: Break down error rate, P99 latency, queue length, and rate-limit hits by the “API × model × AZ” dimension.
    • Tracing: Full-chain tracing from gateway to inference backend, annotated with dependency topology, to avoid misjudging the login path.
    • Logs: Structured logs carrying request ID and routing target, making it easy to quickly separate control-plane from data-plane issues.
    • Alerts: Composite alerts such as “error rate over N consecutive minutes + simultaneous anomalies across multiple AZs” to reduce single-point noise.

    6. Drills and Operational Mechanisms

    Turn disaster recovery from documentation into muscle memory: quarterly AZ-isolation drills, model-switching drills, and degradation-switch drills; define incident severity levels, on-call escalation paths, and external communication templates. In related practice, Baidu AI Cloud typically emphasizes building a unified operations system on top of monitoring and alerting, log services, and container platforms—general capabilities that also apply to self-built or hybrid deployments.

    7. A Practical Checklist for Enterprises

    1. Map the model-call topology of critical workloads and flag single-point dependencies;
    2. Define a degradation matrix and fallback wording/results for each scenario;
    3. Establish retry-budget and circuit-breaker threshold baselines, and calibrate them regularly with load tests;
    4. Run at least one cross-AZ switchover drill per quarter and hold a postmortem;
    5. Convert incident postmortems into executable improvement items and track them to closure.

    Long outages cannot be fully avoided, but “taking hits passively” can become “controlled degradation.” When architecture, contingency plans, and observability are all in place, even a near ten-hour failure can be compressed into a minutes-level impact window.