LLM Service Outages: Root Causes and High-Availability Practices

    This article examines why large language model (LLM) services suffer sudden outages, using a real multi-hour incident as a starting point. It breaks down four common root causes—traffic spikes versus capacity planning, long-lived connections and resource leaks, dependency jitter and retry storms, and release changes with configuration drift—and explains the engineering defenses for each. You will find practical guidance on queue- and latency-based autoscaling, timeout and resource-release patterns, retry budgets with backoff and jitter, circuit breaking and bulkhead isolation, observability signals, graceful degradation and disaster recovery, and a post-incident review methodology, plus a developer checklist for architecture reviews.

    1. Framing the Problem: Fragility in an Online Inference System

    In late March 2026, a large-model chat platform experienced access failures over two consecutive days. On the first day, both web and mobile clients persistently returned “server busy” or failed to respond starting in the evening. The official status page showed the first fix roughly two hours after the anomaly was detected, followed by a second round of investigation and remediation, with full recovery only by the next morning—nearly 12 hours in total, setting a record for the platform’s longest single outage. On the afternoon of the second day, the same prompts reappeared; media testing confirmed it, but the official cause was not disclosed. Circulating claims such as “too many users and insufficient compute,” “architecture and cost constraints,” or “a network attack” are all third-party speculation.

    For developers, the takeaway should not stop at “whose fault it is,” but should be reframed as an engineering problem: how long an online inference service takes to degrade, in what way it degrades, and what tools we can use to minimize the blast radius. The sections below follow a “trigger → amplification mechanism → defense” structure.

    2. Trigger One: Traffic Peaks Versus Capacity Planning Mismatch

    Traffic to LLM chat services is inherently bursty: hot events, social media spread, and overlapping scheduled jobs can multiply request volume several times within minutes. If capacity is planned around the average, peaks will inevitably break through.

    There are three key points:

    • Queuing theory view: As the arrival rate approaches the service rate, queueing latency rises nonlinearly, showing up as “connected but endlessly spinning.”
    • Batching and GPU memory constraints: Inference often uses dynamic batching to boost throughput, but larger batches and longer sequences increase per-batch time and amplify tail latency.
    • Cold start and scaling lag: Instance scaling, model weight loading, and cache warm-up all take time, so the scaling curve always trails the traffic curve.

    In engineering terms, capacity should be tiered: reserve headroom for the peak rather than the average, and set autoscaling based on queue length and tail latency rather than CPU utilization alone.

    1. # Example: scaling policy based on queue and latency
    2. autoscaling:
    3. metrics:
    4. - type: queue_length # pending requests
    5. target: 50
    6. - type: p95_latency_ms # tail latency
    7. target: 1500
    8. scale_up:
    9. step: 50% # scale up fast
    10. cooldown: 30s
    11. scale_down:
    12. step: 10% # scale down slowly to avoid flapping
    13. cooldown: 300s

    3. Trigger Two: Long Connections, Session State, and Resource Leaks

    Chat applications commonly use long-lived connections and streaming output, resulting in high connection counts and long lifecycles. If there is no timeout and heartbeat governance between the gateway and the inference layer, abnormal connections can hold onto handles and GPU memory for a long time, creating a “zombie” state: health checks pass, but new requests cannot be served.

    It is recommended to define four kinds of timeouts explicitly: connection establishment, first byte, idle, and overall; and to externalize session state so that restarting an instance does not lose context.

    1. # Example: timeouts and resource release for streaming responses
    2. async def stream_chat(req, model):
    3. conn = await acquire_conn(timeout=2.0) # connection timeout
    4. try:
    5. async for chunk in model.generate(req, first_byte_timeout=3.0,
    6. idle_timeout=5.0, total_timeout=60.0):
    7. yield chunk
    8. finally:
    9. await release_conn(conn) # ensure handle and GPU memory are returned

    4. Trigger Three: Dependency Jitter and Retry Storms

    A small, localized jitter is often amplified by client and gateway retries into a global failure. If each of three layers retries three times, the theoretical amplification can reach dozens of times.

    Defense essentials:

    • Retry budget: Globally cap the retry ratio, for example no more than 10% of total requests.
    • Exponential backoff with jitter: Avoid synchronized retries that cause periodic shocks.
    • Circuit breaking and bulkhead isolation: Pool by tenant and by model to prevent a single point from dragging down the whole system.
    • Rate limiting with priority: Protect paid and high-priority traffic; queue or reject low-priority requests.
    1. Retry decision pseudo-logic:
    2. if error is retryable and retry budget not exhausted and backoff elapsed:
    3. retry (with jitter)
    4. else:
    5. return degraded result or queue

    5. Trigger Four: Release Changes and Configuration Drift

    Statistically, most production incidents are change-related. Any change to the model version, inference framework, gateway routing, or prompt template can introduce incompatibility. Without canary rollout and fast rollback, a controllable change becomes an incident.

    In practice, changes should be: canary-capable (by traffic percentage), observable (comparison-group metrics), and one-click rollback; configuration should be version-controlled, with manual hot edits prohibited.

    6. Observability: You Can Only Recover What You Can See

    Three types of signals need to be in place:

    • Metrics: request volume, success rate, per-stage latency, queue length, GPU memory usage, connection count.
    • Logs: structured logs with request identifiers to correlate the gateway and inference layers.
    • Tracing: pinpoint whether time is spent in queueing, prefill, or decode stages.

    Alerts should be based on “user-perceivable” metrics (success rate, first-byte latency), not just host liveness.

    7. Graceful Degradation and Disaster Recovery Design

    High availability is not “never failing,” but “still usable when failing”:

    1. Degradation: Turn off non-core capabilities (such as web retrieval or long context) and keep basic chat.
    2. Fallback: Return cached answers, or results from a simplified or smaller-parameter model.
    3. Multi-active and disaster recovery: Deploy across availability zones and switch traffic by weight.
    4. Drills: Regularly perform fault injection to verify that rate limiting, circuit breaking, and rollback actually work.

    8. Post-Incident Review Methodology: Turning 12 Hours into Next Time’s 5 Minutes

    The cost of a long outage often comes from “slow diagnosis” rather than “slow repair.” A review should answer: when it was detected, when it was diagnosed, where diagnosis got stuck, and which signal was missing. The output must be actionable items: add metrics, add timeouts, add isolation, add drills—each with an owner and a deadline. For external communication, timely status updates can significantly reduce the secondary pressure caused by users repeatedly retrying.

    9. A Developer’s Checklist

    • Is capacity planned for the peak, and is autoscaling based on queue and tail latency?
    • Do all external calls set connection, first-byte, idle, and overall timeouts?
    • Is there a global retry budget with backoff and jitter?
    • Is there bulkhead isolation and priority rate limiting by tenant/model?
    • Are changes canary-capable, observable, and one-click rollback?
    • Are degradation, fallback, and cross-availability-zone disaster recovery in place?
    • Do alerts cover user-perceivable metrics, and are drills conducted regularly?

    Confirming each of these questions during the architecture review turns “server busy” from an uncontrollable incident into an expected, convergent engineering event.