LLM Service Partial Outages: Root Causes and Stability Engineering Practices

    This article examines partial LLM service outages, where core endpoints stay healthy while edge capabilities degrade intermittently. It explains why these disruptions often align with traffic peaks, how high request success rates can coexist with low monthly availability, and the four typical failure points in large model serving. It also covers client-side defenses such as timeout budgets, exponential backoff, circuit breaking, and fallback routing, along with observability and capacity planning practices for improving overall reliability.

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

    Recently, the primary services of a large model platform remained generally available, yet reports of intermittent unavailability in specific capabilities clustered together. Abstracting these incidents reveals that they were not classic full-site outages, but a more troublesome pattern: a healthy core path with jittery edge capabilities. Open APIs and several primary models responded normally, with request success rates staying above 99.9% over the past 24 hours, while a few high-load model variants were partially disrupted—a mild service degradation.

    For developers, the impact of this pattern is severely underestimated. During a full-site outage, business teams immediately trigger contingency plans. Localized jitter, however, often appears as “most requests succeed, a few time out”: monitoring dashboards stay all green, while users clearly perceive lag and failures.

    2. Timeline Review: Why Failures Land on Business Peaks

    Placing the two clusters of reports on a timeline reveals a shared trait: the anomaly windows overlapped heavily with business peaks.

    The first occurred on a weekday afternoon, with intermittent anomalies lasting just over four hours, about one and a half hours of which were completely unavailable—pages failed to load, connections dropped, and API availability was extremely low. The second occurred the following night, when multiple model capabilities experienced severe request processing anomalies in succession, lasting up to just over half an hour. Afternoons are peaks for document retrieval and solution writing; nights are when coding and overtime crunch work happen.

    This reveals a general rule: the absolute duration of an outage does not equal business loss; business loss depends on how much the outage overlaps with the traffic curve. The same 30-minute jitter is nearly imperceptible in the early-morning trough, but during afternoon and nighttime peaks it causes massive task blocking, retry storms, and loss of user trust.

    3. Reading the Metrics: Why High Success Rates and High Availability Coexist

    Two seemingly contradictory conclusions appear in the raw data: recovery from a single incident was very fast, with a median time-to-repair of about 13 minutes and even severe incidents converging within half an hour; yet overall availability over the past 30 days was only about 96.43%, with more than forty anomalies in total—over one per day on average. On the worst day, all-day availability dropped to around 60%, accompanied by a significant decline in response generation speed. There were also situations such as search request error rates exceeding 20%, login anomalies, and elevated model response latency.

    These are not contradictory, but three metrics with different dimensions:

    • Request success rate: uses requests as the denominator and reflects instantaneous health at the sampling moment;
    • Time-based availability: uses time as the denominator and reflects cumulative reliability over a long period;
    • MTTR (mean time to repair): reflects operational response capability and is independent of failure frequency.

    In engineering, one must beware of the illusion created by an “excellent MTTR.” When failure frequency is high enough, the multiplicative effect on availability quickly wipes out the gains from fast recovery. Multiplying a 99.9% single-day success rate by dozens of jitter windows, a monthly availability dropping into the 96% range is a mathematical inevitability. Therefore, the first priority of stability governance should be reducing failure frequency (MTBF), rather than further compressing repair time.

    4. Root Cause Breakdown: Four Typical Failure Points in LLM Serving

    Drawing on general engineering experience, such localized failures usually stem from the following four causes, which often occur in combination:

    1. Compute and GPU memory contention: inference services are heavily affected by GPU memory capacity and batch scheduling. When long context and high concurrency stack up, queueing latency rises non-linearly, appearing as “severe degradation in response generation speed.”
    2. Cascading blockage from long-tail requests: extremely long inputs and complex reasoning chains occupy worker units for extended periods, causing queue backlogs that slow down all requests in the same batch.
    3. Dependency component jitter: a timeout in any of authentication, SMS login, retrieval-augmented generation, object storage, or message queues can be amplified upstream into model-side errors.
    4. Release and configuration changes: canary rollouts of model versions and routing rule adjustments, if lacking sufficient traffic isolation, can easily surface during peak hours as partial capability unavailability.

    5. Client-Side Defense: Containing Uncontrollable Jitter

    Since upstream jitter cannot be fully eliminated, the client side must assume that “partial failure is the norm.” Core measures include timeout budget allocation, exponential backoff retries, circuit breaking and degradation, and multi-capability routing.

    1. # Example: a call wrapper with timeout budget, backoff retries, and fallback
    2. import random, time
    3. def call_model(prompt, timeout=8, max_retry=2, fallback=None):
    4. for attempt in range(max_retry + 1):
    5. try:
    6. return remote_infer(prompt, timeout=timeout)
    7. except TimeoutError:
    8. if attempt == max_retry:
    9. break
    10. # Exponential backoff + jitter to avoid retry storms
    11. time.sleep((2 ** attempt) * 0.3 + random.random() * 0.2)
    12. # Fallback: return a cached result, a smaller model, or an explicit failure semantic
    13. return fallback(prompt) if fallback else {"status": "degraded"}

    Three practical details deserve emphasis: first, retries must have a total budget, otherwise retries during peak hours will multiply upstream pressure; second, the fallback path must preserve business semantics, for example returning a cached summary rather than an empty string; third, idempotency keys must span the entire chain to avoid duplicate writes caused by retries.

    6. Observability and Capacity Planning: From Reactive Firefighting to Proactive Warning

    To bring down “several anomalies per day,” you need an observability system centered on user experience: break down success rates and latency percentiles (P95/P99) by capability dimension, set multi-window burn-rate alerts on error rates, use log services and distributed tracing to locate slow nodes, and reserve capacity and establish load-test baselines for peak hours.

    Architecturally, you can adopt queue-based peak shaving, priority queues to isolate long tasks, elastic scaling on container platforms, and separate pools for high-frequency stable requests and long-tail complex requests. If the business demands extremely high continuity, you can design a multi-provider abstraction layer that converges model calls into a unified gateway and routes by weight—this both improves availability and avoids lock-in to a single implementation. Baidu AI Cloud offers complete capabilities in general cloud product categories such as monitoring and alerting, log services, and container platforms, and can serve as a reference foundation for building such resilient pipelines.

    7. Conclusion

    Frequent partial failures and dragged-down overall availability are a necessary growing pain for rapidly evolving LLM services under real production loads. For consumers, the right attitude is not to wait for “never failing,” but to use timeouts, retries, circuit breaking, degradation, and observability to converge the impact to an acceptable range. For providers, reducing change risk and long-tail request interference improves monthly availability more than further optimizing repair speed.