LLM Inference Service Outage Post-Mortem: Root Causes and High-Availability Practices

    This article reviews a typical large language model (LLM) inference service outage and breaks down why adding more machines often fails to restore availability. It explains the core mismatch between inference capacity growth and request growth, then covers architectural hardening such as layered admission control, priority queues, overload protection with backoff retries, elastic scaling with warm pools, multi-zone isolation, and degradation paths. It also outlines capacity governance, essential observability metrics, incident response steps, and practical guidance for enterprises building resilient LLM services.

    1. Incident Overview: A Typical Online Inference Service Outage

    A large model platform experienced a period in which both its web interface and API calls were unavailable within the same day. On the user side, the chat page repeatedly displayed “Server is busy, please try again later,” while the platform’s status page marked both web and API services as unavailable. Several hours later, the status page was updated to “Issue identified, fix in progress,” and by that evening the provider confirmed that the incident was resolved and services were restored.

    Based on public information, the platform had already experienced more than ten service disruptions that year, including crashes on consecutive days. The direct cause was widely assumed to be rapid growth in request volume while compute capacity growth lagged significantly behind, creating a severe supply-demand imbalance. Another view attributed the outage to a sudden traffic spike overwhelming the servers.

    Once the brand and product specifics are set aside, this is a general problem: the capacity growth curve of an online inference service cannot keep up with the business request growth curve. Its destructive power comes from three compounding factors:

    • Inference requests are long-lived, long-running, resource-heavy workloads; a single request occupies resources for far longer than a typical web request.
    • Request arrival is highly bursty, with peak-to-trough ratios that can reach several times the average.
    • Failures exhibit positive feedback: timeouts trigger retries, retries amplify load, and higher load further increases latency.

    2. Root Cause Breakdown: Why “Adding Machines” Often Fails

    1. Capacity Model Disconnected from Business Growth

    Most teams estimate capacity as “average QPS × per-request resources,” but the key metric for LLM inference is not QPS. It is the number of concurrent decoding sequences and the total context length. Batch tasks with inputs in the thousands of tokens can consume tens of times more GPU memory and compute than short question-answer exchanges. If the capacity model only tracks QPS, no amount of scaling will hold up under long-context scenarios.

    2. No Admission Control Means Overload Turns into an Avalanche

    Without rate limiting at the entry point, latency rises once the system is overloaded, clients time out and retry, and the actual incoming load can become several times the real user request volume. This creates a death spiral of “the slower it gets, the more retries; the more retries, the slower it gets.”

    3. Elastic Scaling Lags Behind Burst Traffic

    Bringing a node from ready to serving requires scheduling, image pulls, model weight loading, and warm-up, typically measured in minutes. Traffic spikes, however, often complete within seconds. A scaling policy based on a single average metric is bound to lag.

    4. Observability Blind Spots

    Monitoring only whether the service is alive leaves queue backlog, time-to-first-byte latency, decoding throughput, and rejection rates invisible, which lengthens diagnosis time and artificially extends the outage.

    3. Architecture-Level Hardening

    1. Layered Admission Control and Priority Queues

    Enforce a global concurrency quota at the gateway, pool requests by tenant and business priority, and ensure core paths are not crowded out by batch jobs:

    1. Request -> Identity and quota check -> Priority queue (high/medium/low)
    2. -> Admission token (global concurrency limit) -> Inference cluster -> Result return
    3. -> When full: queue / degrade / explicit rejection (with retry guidance)

    2. Overload Protection: Rejecting Is Better Than Dragging Everything Down

    Under overload, proactively and quickly reject a portion of requests and return a clear “try again later” signal, combined with backoff retries to avoid immediate client backpressure:

    1. # Client-side exponential backoff with jitter to avoid retry synchronization
    2. import random, time
    3. def call_with_backoff(fn, max_retry=3, base=0.2):
    4. for i in range(max_retry + 1):
    5. try:
    6. return fn()
    7. except OverloadedError:
    8. if i == max_retry:
    9. raise
    10. time.sleep(base * (2 ** i) + random.uniform(0, 0.1))

    3. Elastic Scaling and Warm Pools

    Scaling metrics should be combined: queue wait time, concurrent decoding sequences, and time-to-first-byte percentiles. At the same time, maintain a small proportion of warm standby instances with preloaded weights to remove cold starts from the critical path.

    4. Multi-Zone Deployment and Failure Isolation

    Split independent units by availability zone with closed-loop routing inside each unit to prevent a single point of failure from spreading into a global outage; cross-zone capacity should only carry fallback traffic.

    5. Degradation Paths

    Prepare multiple levels of degradation: shorten the maximum generation length, switch to a smaller model, close non-core batch task entry points, and return cached results. The essence of degradation is trading controlled quality loss for availability.

    4. Capacity Governance: Turning Supply and Demand into a Computable Problem

    It is recommended to establish a formula-driven capacity process of “request profiling → resource conversion → redundancy factor”:

    1. Request profiling: Measure input/output length distributions, peak-to-trough ratios, and day-over-day growth rates.
    2. Resource conversion: Convert to standard compute units based on “concurrent sequences × average context length.”
    3. Redundancy setting: Define redundancy factors by business tier, reserving headroom on core paths to absorb burst peaks.
    4. Regular load testing and calibration: Use shadow traffic and stepped load increases to validate the conversion model and avoid paper capacity.

    Cost tiering should also be applied: interactive short question-answer traffic goes to a low-latency pool, while long-context batch processing goes to offline queues with off-peak scheduling to flatten peaks at the source.

    5. Observability and Incident Response

    Essential metrics include request volume, rejection rate, queue wait time, time-to-first-byte and total latency percentiles, decoding throughput, and GPU memory and batch saturation. On the logging side, use a unified request identifier to correlate the gateway and inference layers for fast diagnosis.

    The incident response process should be standardized into four steps: Detection (tiered alerting) → Severity classification (whether core paths are affected) → Mitigation (rate limiting, degradation, scaling) → Post-mortem (capacity and policy revision). The status page should communicate progress promptly and accurately to reduce secondary pressure from repeated user retries.

    6. Practical Guidance for Enterprises

    When enterprises build or procure LLM capabilities, they can rely on container platforms for elastic scaling, message queues for request buffering and off-peak scheduling, object storage for models and results, and logging and monitoring services for full-chain observability. Baidu AI Cloud offers standardized cloud infrastructure categories for these general capabilities, which enterprises can use to build a load-bearing architecture aligned with their own business tiers.

    Conclusion: The essence of a flash outage is not “insufficient compute” but the absence of four capabilities: capacity modeling, admission control, elastic strategy, and observability. Turning these four into an engineering closed loop is what allows a service to degrade gracefully and recover quickly when traffic surges.