LLM Service Partial Outages: Root Causes and Stability Engineering Practices
This article examines why large language model (LLM) services often experience partial outages rather than full crashes, and how both platform and client teams can improve resilience. It covers how to translate vague "it's down" reports into measurable metrics, a timeline analysis of two disruptions, a three-layer metric framework (capability success rate, time-weighted availability, and recovery efficiency), and four common root causes: capacity and queuing, dependency jitter, version and configuration changes, and long-tail request amplification. It also provides client-side resilience patterns such as timeouts, exponential backoff with jitter, circuit breaking, capability redundancy, and asynchronous queuing, along with platform-side governance practices including capacity planning, canary releases with rollback, isolation and rate limiting, observability, and fault drills. A practical checklist for developers is included.
1. Framing the Problem: From “Suspected Crash” to Partial Service Disruption
Recently, an LLM service platform received a surge of user reports, and the initial reaction from most users was that “the whole thing is down.” However, once the timeline and impact scope are laid out, the real picture looks quite different: the primary inference services, open APIs, visual understanding, deep thinking, and deep research capabilities were mostly operating normally, with the real request success rate over the past 24 hours staying above 99.9%. Only a few high-throughput variants experienced partial disruption, which qualifies as a “minor service disruption” under common industry severity classification.
There is a typical cognitive bias at play here: perceived availability from the user’s side does not equal overall backend availability. When a partial anomaly happens to coincide with peak business hours, the perceived loss is significantly amplified. Therefore, the first step in stability engineering is to translate vague statements like “it’s broken” into measurable objects: which capability domain, which time window, which request types, how the error codes are distributed, and how far the success rate has dropped.
2. Timeline Review: Why Two Brief Spikes Triggered Strong Feedback
The first anomaly occurred in the early afternoon on a workday, lasting intermittently for just over four hours, with about one and a half hours of complete unavailability. Symptoms included pages failing to load, connections being reset, and API success rates dropping sharply. This window overlapped with peak usage for retrieving information, drafting proposals, and batch calls from business systems to external capabilities. Once interrupted, both manual work and automated pipelines came to a halt simultaneously.
The second anomaly occurred around 9:30 PM, when multiple model capabilities experienced severe request processing failures one after another, lasting up to about half an hour. This time slot coincides with intensive coding and overtime work, and callers often have the model embedded in continuous integration and code review pipelines, so failures directly block delivery.
The conclusion is clear: outage cost ≈ number of affected requests × business value per failed request. The same technical fault is nearly imperceptible during off-peak hours but gets amplified into a “platform is down” public opinion event during peak hours. Stability goals cannot focus solely on “whether it happened” but must also consider “when it happened.”
3. Metric Definitions: Making Stability Computable
It is recommended to maintain three layers of metrics simultaneously to avoid a single number misleading decisions:
- Capability-level success rate: Track real request success rates separately by model capability, API version, and region, excluding 4xx noise such as client parameter errors.
- Time-weighted availability: Calculate the proportion of successful minutes at minute granularity. Over the past 30 days, overall availability was about 96.43%, with the lowest single day dropping to 64.58%—both are red-line events that require review.
- Recovery efficiency: The median time to resolve incidents was about 13 minutes, indicating that the response mechanism is effective. However, there were 46 incidents of various sizes in 30 days, averaging more than one per day, which means “fast recovery” cannot offset “high frequency.”
A practical statistical skeleton example:
# Pseudocode: aggregate availability and success rate by minutefor minute in window(start, end, step="1m"):total = count(requests, at=minute)ok = count(requests, at=minute, status=200)availability[minute] = 1.0 if ok / total >= 0.95 else 0.0success_rate[minute] = ok / totaloverall_availability = mean(availability.values()) # time-weighted availability
4. Root Cause Classification: Four Typical Sources of High-Frequency Partial Outages
- Capacity and queuing: Inference is a long-running, resource-intensive workload. Sudden traffic spikes cause queuing latency to amplify, which in turn triggers upstream timeouts.
- Dependency jitter: Anomalies in side-path dependencies such as gateways, authentication, SMS login, and retrieval-augmented generation surface as “model unavailable.” For example, search-type request error rates once exceeded 20%, and the login pipeline experienced anomalies.
- Version and configuration changes: During canary releases of new versions, improper routing weights or rate-limiting threshold configurations can damage specific capabilities.
- Long-tail request amplification: Extremely long context and high-reasoning-effort requests occupy resources for too long, slowing down generation for other requests in the same pool.
5. Client-Side Resilience Design: Don’t Put All Eggs in One Basket
Even if the upstream achieves 99.9%, the business side must still assume that “partial outages will inevitably occur.” Key points include:
- Timeouts and retries: Distinguish between idempotent and non-idempotent calls, and use exponential backoff with jitter to avoid retry storms.
import random, timedef call_with_retry(fn, max_attempts=3, base=0.2):for i in range(max_attempts):try:return fn(timeout=8)except TimeoutError:time.sleep(base * (2 ** i) + random.random() * 0.1)return fallback()
- Circuit breaking and degradation: After consecutive failures reach a threshold, fail fast and switch to cached results, a rules engine, or a lower-cost backup capability.
- Multi-capability redundancy: When the primary capability is unavailable, route to a similar general-purpose capability to ensure business semantics remain intact.
- Asynchronous processing and queue-based peak shaving: Put non-real-time requests into a message queue and consume them at a controlled rate, trading immediacy for determinism during peak hours.
6. Platform-Side Governance: Preventing “Partial” from Spreading
- Capacity planning: Provision redundancy based on peak minute-level peaks rather than daily averages. Reserve elastic compute and cold-start headroom on the inference side.
- Canary releases and rollback: Validate success rate and latency with small traffic before rolling out new versions, with automatic rollback on anomalies.
- Isolation and rate limiting: Isolate resources by tenant and capability domain to prevent a single long-tail request from dragging down a shared pool.
- Observability loop: Unify logs, metrics, and distributed tracing. Configure multi-level monitoring and alerting to reduce mean time to detection to minutes.
- Regular drills: Conduct fault injection and peak load testing periodically to verify that degradation plans actually work.
7. Actionable Checklist for Developers
- Set explicit timeouts and budgets for every external model call. Prohibit unbounded waiting.
- Build local caching and result reuse to reduce hard dependency on real-time availability.
- Prepare non-model fallback solutions for critical paths to ensure business semantics still hold after degradation.
- Evaluate dependency health using time-weighted availability rather than “feel,” and incorporate it into release gates.
- Freeze changes during peak hours to reduce the probability of faults coinciding with business peaks.
8. Conclusion
Partial outages are not inherently dangerous; what is dangerous is the combination of high frequency and peak-hour timing. For consumers, resilience comes from redundancy, degradation, and asynchronous processing. For platforms, stability comes from capacity, isolation, canary releases, and drills. Treating stability as an engineering capability that is measurable, drillable, and rollback-ready is the key to maintaining business continuity when depending on external AI capabilities.
