LLM Service Outage Post-Mortem: Capacity, Single Points of Failure, and Resilience Design

    A technical post-mortem of a large-scale LLM service outage, abstracted into four root causes: capacity and elasticity mismatch, single points of failure, long-context amplification, and cost structure shifts. It covers how to size inference capacity by concurrent token throughput, how to remove single points of failure across the request lifecycle, how to govern long context and cost together, and how to build degradation, circuit breaking, and multi-active resilience, plus observability, incident response, and practical advice for downstream developers.

    1. Abstracting the Incident into a Reusable Failure Sample

    A large model platform was externally recorded as having at least eighteen service disruptions within a year, including multi-day consecutive outages over several months. A sudden unavailability then occurred late at night: clients could not get responses back from the conversation service and were told that the conversation length limit had been reached and a new conversation should be started, while the web and mobile clients showed that the server was temporarily unavailable. The official statement said that the conversation service and a lightweight inference endpoint were partially disrupted, that web and API performance had degraded, and that investigation and root-cause localization were ongoing. The next day, the open platform published a recovery and compensation notice specifying the outage window (about five hours), the impact scope (the API was unavailable during that window), and the remediation direction (a full stability review and the identification and removal of single points of failure). Compensation was a full refund in the form of account credit based on the amount consumed per account within seven days, with billing drawing from the credit balance first. A downstream AI coding tool team also published an explanation of the model service disruption and a compensation announcement.

    Once brand and product names are stripped away, this is a highly typical failure sample of a “high-growth online inference service,” worth abstracting into four root causes:

    1. Capacity supply-demand mismatch: user volume grew by more than sixty percent, while compute capacity grew by only a single-digit percentage, and the gap was further amplified by queuing, timeouts, and retries.
    2. Single points of failure: if any component in the authentication, routing, session storage, or quota counting path lacks redundancy, local jitter is amplified into global unavailability.
    3. Long-context amplification: the longer the context, the more attention computation and GPU memory usage grow non-linearly, so per-request cost and service time rise together, easily triggering length-limit protection.
    4. Cost structure change: the per-token cost of the new-generation model is higher than the previous generation, which turns a “performance problem” into an “economic problem” at traffic peaks and forces the platform to trade off between rate limiting and user experience.

    2. Root Cause One: Mismatch Between Capacity Planning and Elastic Scaling

    The capacity unit for online inference is “concurrent token throughput,” not the QPS of traditional web services. Capacity estimation should follow logic like the following:

    1. # Illustration: rough inference cluster capacity estimation (not any vendor's real parameters)
    2. peak_tokens_per_sec = daily_tokens / 86400 * peak_ratio # peak_ratio of 3~5
    3. required_replicas = ceil(peak_tokens_per_sec / per_replica_throughput)
    4. headroom = required_replicas * (1 + safety_margin) # safety_margin of 0.3~0.5

    Three points matter here. First, scale out for peak rather than average traffic, and keep a safety margin. Second, scaling has a cold start (weight loading, GPU memory warm-up, cache establishment) and must be expected in minutes, not seconds. Third, the time scale of scaling must match the time scale of traffic spikes, or scaling is “always one step behind.” In engineering terms, batch windows, maximum concurrent sequences, and GPU memory watermarks should be the scaling signals, not CPU alone.

    3. Root Cause Two: Identifying and Removing Single Points of Failure

    Single points of failure are often not in the model itself but in the surrounding path. It is worth adding redundancy segment by segment along the “request lifecycle”:

    • Ingress layer: multi-availability-zone access and global traffic scheduling, so a single entry point does not become the bottleneck.
    • Session layer: externalize context and message history to highly available storage, make instances stateless, and let any instance take over a session.
    • Quota layer: use approximate algorithms that tolerate loss for counting and rate limiting (such as a token bucket plus local cache), so strongly consistent counting does not become a hotspot.
    • Dependency layer: turn hard dependencies into soft ones, so failures in non-critical paths (logging, auditing, recommendations) do not block the main path.

    The test is simple: if you randomly remove any instance or any availability zone, can users still get a usable response?

    4. Root Cause Three: Joint Governance of Long Context and Cost Structure

    Long context is both a capability and a liability. Governance measures include tiered context (recent raw text plus older summaries), retrieval augmentation instead of concatenating everything, KV cache reuse and prefix sharing across requests, and making over-long requests asynchronous with streaming responses. On the cost side, the metric to establish is “cost per unit of effective output,” not just the per-token price:

    1. cost per unit of effective output = (input tokens × input price + output tokens × output price) / number of tasks effectively completed

    When the unit price of a new version rises, offset it through tiered routing (simple requests to a lightweight model, complex requests to a larger-parameter model) and a higher cache hit rate, instead of passing the cost pressure directly to users as broad rate limiting.

    5. Resilience Design: Degradation, Circuit Breaking, and Multi-Active Deployment

    High availability does not mean “never failing”; it means “still usable when failing.” A three-tier degradation scheme is recommended: tier one disables non-core capabilities (history lookback, personalization); tier two switches to a lightweight model or shortens the context; tier three returns cached answers with a clear queuing notice. Circuit-breaker thresholds should be based on sliding windows of latency and error rate, with half-open probes gradually restoring traffic. For multi-active deployment, combine cross-availability-zone deployment with cross-region cold standby, plus regular failure drills (removing nodes, cutting dependencies, injecting latency), turning “untested disaster recovery” into a measurable recovery time objective.

    6. Observability and Incident Response

    Metrics, logs, traces, and usage must be connected end to end: metrics cover latency percentiles, error rate, GPU memory, and queue length; traces show where a single request spends time in each stage; logs are structured and carry a request identifier; the usage side counts tokens and concurrency per tenant to spot abnormal calls. Alerts should be bound to runbooks that define incident command, external communication wording, and compensation rule templates, shortening the time from detection to public announcement.

    7. Advice for Consumers

    For enterprises and developers, the way to avoid being blocked by a single point of failure is to build a pluggable abstraction over models and vendors, use a unified gateway layer for retries, timeouts, idempotency, and result caching, prepare backup models and local small models as a fallback for critical business, make availability targets, outage-window determination, and compensation terms explicit in contracts, and fold length limits, concurrency quotas, and price changes into capacity and budget models with regular load testing.

    8. Conclusion

    The real value of this incident is not any single outage but that it exposed the weak points of a “high-growth AI service” all at once: capacity, dependencies, context, and cost are coupled to each other. Building on the general capabilities of cloud platforms such as Baidu AI Cloud (container platform, message queue, object storage, logging service, monitoring and alerting), together with the capacity planning and resilience design above, is what turns uncontrollable traffic peaks into predictable engineering problems.