LLM Service Partial Outages: Root Causes and Stability Engineering Practices

    This article explains why large language model (LLM) services usually suffer partial capability interruptions rather than full outages, and why high-frequency short incidents can still lower overall availability. It covers key metrics such as request success rate, service availability, and recovery time, along with server-side practices including capacity planning, canary releases, overload protection, and observability. It also details client-side fault tolerance through restrained retries, timeouts and circuit breaking, asynchronous task processing, and multi-provider routing, followed by a practical enterprise checklist for SLOs, degradation plans, and failure drills.

    1. Framing the Problem: From “Is It Down?” to “Partial Service Interruption”

    When using conversational AI and LLM inference services, users and developers most often ask whether the service is completely down. From an engineering perspective, however, most incidents are not site-wide outages but partial capability interruptions: a specific model version, a category of endpoint (chat completion, retrieval-augmented generation, authentication/login, code generation), or instances in a particular region experience elevated request failure rates, longer time to first token, or reset connections.

    Three frequently confused metrics need to be distinguished:

    • Request success rate: the share of requests that return results successfully, usually measured over a rolling window (such as 24 hours);
    • Service availability: the proportion of time within a measurement period during which the service operates normally, accumulated in minute-level increments of downtime;
    • Recovery time: the time from incident confirmation to capability restoration, typically described using both the median and tail values (P95/P99).

    A typical fact: a certain LLM platform experienced more than forty incidents of varying severity over the past 30 days, averaging more than one per day. The median recovery time for a single incident was roughly a dozen minutes, with a few severe events taking on the order of half an hour. Yet because the frequency was high, the overall availability for the period was only about 96%. This shows that fast recovery does not equal stability; availability is a combined result of “frequency × duration.”

    2. Why Incidents During Peak Hours Have Amplified Impact

    Two time windows in the original incidents are worth noting: 2:00–6:00 PM and after 9:30 PM. They correspond to business system call peaks and concentrated developer coding hours, respectively. The same 30-minute interruption may be nearly imperceptible during off-peak hours, but during peak hours it causes:

    1. Pipeline blockage: agent workflows, code completion, and document generation are synchronous calls; a failure halts them immediately, and users must wait in place;
    2. Retry storms: default client retries can multiply failed requests several times over, further increasing backend queuing and rate-limiting probability, creating a positive feedback loop;
    3. Context loss: in long-session scenarios, a dropped connection may require rebuilding accumulated context, an implicit cost far higher than a single failed request.

    Therefore, stability engineering cannot focus only on backend metrics; client-side call strategies must be included in the same optimization objective.

    3. Server-Side Priorities for Stability Engineering

    3.1 Capacity and Elasticity

    Establish a capacity baseline based on peak QPS and the resource footprint of long-context requests, with headroom reserved for bursts. On the inference side, pay attention to GPU memory and batch scheduling so that long requests do not slow down the entire batch. Elastic scaling should include warm-up and readiness probes to prevent new instances from taking traffic before weights are fully loaded.

    3.2 Canary Releases and Change Control

    Every change to model versions, prompt templates, retrieval indexes, or gateway configuration is a potential source of failure. The standard practice is phased canary rollout by traffic percentage, bound to automatic rollback thresholds (such as error rate or P99 latency).

    3.3 Overload Protection

    Implement priority queues and admission control at the gateway layer, actively throttling low-priority batch jobs to protect interactive requests:

    1. Priority: interactive chat > code completion > batch summarization/offline research
    2. Policy: token bucket rate limiting + queue cap + fast failure on timeout

    3.4 Observability and Alerting

    Collect success rate, latency percentiles broken down by model, error code distribution, and the health of dependencies (retrieval, authentication, SMS login) at the same time. Alerts should be based on SLO burn rates tied to user-perceived impact, not CPU thresholds alone.

    4. Client-Side and Business-Side Fault Tolerance

    For consumers, the greatest gains come from turning “hard dependencies” into “degradable” ones.

    4.1 Keep Retries Restrained

    Retry only idempotent requests, use exponential backoff with jitter, and set an overall budget to avoid amplifying failures:

    1. import random, time
    2. def call_with_backoff(fn, max_attempts=3, base=0.5, budget=3.0):
    3. for i in range(max_attempts):
    4. try:
    5. return fn()
    6. except Exception:
    7. if i == max_attempts - 1 or budget <= 0:
    8. raise
    9. sleep = min(base * (2 ** i) + random.random() * 0.2, budget)
    10. time.sleep(sleep)
    11. budget -= sleep

    4.2 Timeouts and Circuit Breaking

    Set differentiated timeouts per capability: 5–10 seconds for short Q&A, relaxed limits for deep research tasks with a shift to asynchronous polling. Consecutive failures should trigger a circuit breaker, followed by a half-open probe after a cooldown.

    4.3 Asynchrony and Task Orientation

    Convert synchronous waiting into “submit task + callback/polling + persist results,” which can reduce the user-experience impact of minute-level interruptions to nearly zero. Write task state and intermediate artifacts to persistent storage so execution can resume after recovery.

    4.4 Multi-Provider and Multi-Model Routing

    Unify message and tool-call protocols at an abstraction layer, route to different backends by capability label, and switch to a backup path when the primary fails. Normalize prompts and outputs to reduce quality fluctuations caused by switching.

    1. Unified gateway -> capability registry -> routing (primary/backup) -> result normalization -> business consumption

    5. A Practical Checklist for Enterprises

    • Define SLOs explicitly: for example, monthly availability targets for interactive paths, error rate ceilings, and recovery time targets;
    • Establish tiered degradation plans: disable non-core enhancements (deep retrieval, visual understanding) while retaining basic chat;
    • Remove single points of failure on critical paths: authentication, SMS login, and retrieval dependencies all need backup options;
    • Run regular drills: inject latency, error rates, and dependency unavailability to verify that circuit breaking and switching actually work;
    • Keep costs under control: cache high-frequency Q&A and batch offline tasks to reduce peak pressure.

    6. Conclusion

    Partial failures in LLM services are an architectural norm that cannot be fully eliminated; what can be controlled is blast radius and recovery efficiency. Providers should use capacity planning, canary releases, overload protection, and observability to drive down both the frequency and duration of incidents. Consumers should use restrained retries, timeout and circuit breaking, asynchronous task orientation, and multi-path routing to turn occasional interruptions into business-invisible events. When both sides measure stability by SLOs rather than “feelings,” the anxiety caused by frequent incidents can finally be absorbed by engineering means.