LLM Service Partial Outages: Root Causes and Stability Engineering

    This article examines why large language model platforms frequently experience localized service interruptions rather than full outages, and how engineering teams should respond. It covers how to turn vague "instability" into measurable metrics such as success rate, availability, MTBF, and MTTR; a breakdown of common root causes including uneven inference pools, traffic spikes and cold starts, dependency jitter, canary releases, and gateway timeouts; and business-side protections such as retries with exponential backoff, circuit breaking, tiered degradation, and asynchronous task patterns. It closes with observability, failure drills, and vendor selection guidance for teams that depend on LLM APIs in production.

    1. The Symptom: Not a Full Outage, but Frequent Partial Interruptions

    A major LLM platform recently drew a wave of user reports, and many users assumed the service was completely down. Runtime data tells a different story. The primary inference service, public APIs, and the general, vision, reasoning, and deep research models were all operating normally, with a real request success rate above 99.9% over the last 24 hours. Only one high-speed inference variant was partially interrupted, a mild service degradation.

    What actually triggered the strong reaction was the timing of the incidents. One occurred on a weekday afternoon and lasted more than four hours, with about an hour and a half of complete unavailability: pages failed to load, connections were reset, and API availability dropped sharply. Another began after 9 p.m., when several models and coding-related capabilities hit request processing errors in sequence, lasting up to half an hour at worst. Both windows overlapped with peak usage: research and proposal writing, batch calls from business systems, and developers coding or working late. That is why the experience felt far worse than the numbers suggest.

    One point is critical here: for production systems, the absolute duration of an outage is not the only variable. The overlap between the outage and business peak hours is the real loss amplifier. A 30-minute interruption at 3 a.m. and the same interruption in the afternoon can differ in business impact by an order of magnitude.

    2. Turning “It Feels Unstable” into a Manageable Problem with Metrics

    Over the last 30 days, the platform recorded 46 service incidents, more than one per day on average. The worst day saw full-day availability fall to 64.58%, accompanied by a marked drop in response generation speed. During the period there were also search request error rates above 20%, SMS login failures, and elevated model response latency. Incident handling, however, was not poor: median time to resolution was about 13 minutes, and the severe evening incidents were all resolved within half an hour. Even so, overall 30-day availability was only 96.43%.

    These numbers reflect an engineering reality: a good MTTR does not mean good availability. Availability is constrained by both MTBF (mean time between failures) and MTTR, expressed by a simplified model:

    1. Availability = MTBF / (MTBF + MTTR)

    Once MTTR is already down to roughly ten minutes, further gains from faster recovery are marginal. To raise availability, you must increase MTBF, which means reducing how often failures occur. A 96.43% figure implies roughly 25 minutes of monthly downtime. That is tolerable for interactive applications, but for API calls embedded in business systems it means entire batches of tasks failing.

    Teams should build their own metrics using the same definitions rather than relying on upstream announcements:

    1. metrics:
    2. success_rate: 2xx and valid business responses / total requests # distinguish HTTP success from content validity
    3. availability: 1 - unavailable duration / measurement window
    4. mttr: median incident duration
    5. p95_latency: end-to-end latency percentile # for generative services, track time to first token separately
    6. error_budget: allowed failure quota derived from the monthly availability target

    3. Root Cause Breakdown: Why These Platforms Keep Hit by Partial Failures

    The LLM serving path is longer than a traditional web service, and jitter in any stage shows up as “partial unavailability”:

    • Uneven inference resource pools: limited GPU memory, batching queues, and long-context requests crowding out others leave some instances slow while others stay healthy.
    • Traffic spikes and cold starts: peak concurrency triggers scaling, but new instances need time to load weights and warm up, so success rates dip during that window.
    • Dependency jitter: a timeout in authentication, SMS login, retrieval augmentation, the vector store, or the message queue can amplify into a higher overall error rate.
    • Version and canary factors: model iterations and routing policy changes may affect only a subset of requests during canary rollout.
    • Long connections and gateway timeouts: with streaming output, a mismatch between gateway idle timeout and client read timeout causes “lost connections.”

    4. Business-Side Defenses: Isolating Upstream Uncertainty from the Core Path

    The conclusion is clear: since frequent upstream partial jitter cannot be eliminated quickly, business architecture must assume that “the API will partially fail at any time.”

    1. Request layer: timeouts, retries, and idempotency

    Retries cut both ways. They must be paired with exponential backoff and jitter, and enabled only for idempotent or safely replayable requests:

    1. import random, time, requests
    2. def call_with_backoff(payload, max_retry=3, timeout=8):
    3. for i in range(max_retry):
    4. try:
    5. r = requests.post(ENDPOINT, json=payload, timeout=timeout)
    6. if r.status_code < 500:
    7. return r.json()
    8. except requests.RequestException:
    9. pass
    10. time.sleep(min(2 ** i + random.random(), 10))
    11. return None # hand off to the fallback logic

    Key points: the total retry budget must stay below the business timeout; for generative APIs, avoid blindly retrying long requests, since both cost and latency double.

    2. Isolation layer: circuit breaking and rate limiting

    Configure a separate circuit breaker and concurrency limit for each model capability so one failing capability does not drag down the whole service; a local token bucket protects downstream quota as well as your own thread pool.

    1. call -> circuit breaker (opens when failure rate > 50% and samples > 20) -> half-open probe -> recovery

    3. Degradation layer: tiered availability strategy

    • Tier 1: primary model unavailable, switch to a backup model or backup vendor channel (abstracted behind a unified inference gateway).
    • Tier 2: timeout rate rising, shorten output length, disable deep reasoning, reduce the number of retrieval results.
    • Tier 3: fully unavailable, return cached results, a templated summary, or a “retry later” placeholder while keeping the response structure intact.

    4. Architecture layer: make synchronous calls asynchronous

    Turn online waiting into a task model: submit a task, receive a task ID, then poll or receive a callback for the result. This naturally absorbs jitter on the order of tens of minutes.

    1. {"task_id": "a1b2c3", "status": "queued", "retry_after": 15}

    5. Observability and Drills: Catching Failures Before Users Do

    • Build a real request success rate dashboard sliced by model, region, and tenant so aggregate numbers do not hide local problems.
    • Configure multi-window burn rate alerts (for example, 1-hour and 6-hour windows) that fire earlier than a single threshold.
    • Preserve request trace identifiers so timelines can be aligned with upstream support tickets.
    • Run a failure drill every quarter: inject timeouts, error rates, and latency to validate circuit breaking, degradation, and recovery from queue backlog.

    6. Selection and Disaster Recovery Recommendations

    For teams that treat LLMs as production tools, evaluation should cover: 30-day availability and incident frequency, whether incident timing overlaps business peaks, status page transparency, API compatibility and migration cost, and support for multi-channel redundancy. The more robust engineering practice is to abstract a unified inference gateway that hides model-specific differences, making switching and canary rollout a configuration change rather than a code change. In related practice, Baidu AI Cloud typically recommends that customers build this buffer layer with common capabilities such as monitoring and alerting, logging, and message queues; specific product selection still depends on load testing against your own workload.

    7. Conclusion

    Frequent partial failures are a structural challenge for LLM services today. Fast recovery is worth acknowledging, but a fundamental improvement in availability depends on reducing failure frequency and building resilience on the business side. Making retries, circuit breaking, degradation, asynchronous processing, and observability standard components is what keeps the core path deterministic when upstream fluctuates.