LLM Service Stability: Failure Analysis and High Availability Practices

    This article examines why a large language model platform experienced frequent localized outages despite maintaining 99.9% success rates over 24 hours, and why failures clustered around peak business hours caused disproportionate user frustration. Based on 30 days of incident data showing 46 disruptions and 96.43% overall availability, it breaks down the root causes of LLM service instability, including inference resource elasticity, streaming connections, dependency chains, and capacity planning. It then outlines engineering practices for improving availability: business-oriented SLOs, real request success rate monitoring, client-side fallback and retry, multi-region failover, and canary releases. The article also offers selection advice for teams using LLMs as production tools.

    1. The Symptom: Localized Failures Drag Down Overall Availability

    A major LLM platform recently received concentrated user reports that the service “seemed to have crashed.” Objectively, the core service was not fully down, but localized failures kept recurring, and stability could no longer keep up with the way users in China rely on it for intensive, real work.

    As of the time of measurement, the incidents that triggered those reports had all been resolved. The main capabilities—open APIs, the general-purpose model, the Pro version, vision models, reasoning models, and research models—were running normally, with a real request success rate above 99.9% over the previous 24 hours. Normal usage was largely unaffected. The only exception was one high-speed version that remained partially interrupted, which counted as a minor service disruption.

    What triggered the strong reaction was not a full outage. It was that the failures happened in unusually sensitive time windows.

    2. Timing: Why Failures Keep Landing on Business Peaks

    Two typical incidents make the problem clear.

    • The first ran from a little after 2 p.m. to a little after 6 p.m., with intermittent service anomalies lasting more than four hours. About 90 minutes of that period was completely unavailable, with pages failing to load, dropped connections, and extremely low API availability.
    • The second happened just one day later, a little after 9 p.m., when the coding-related models and several versions experienced severe request-processing anomalies in succession, lasting up to just over 30 minutes.

    The 2 p.m. to 6 p.m. window is peak time for research, writing proposals, and calling APIs from business systems. The 9 p.m. window is when developers are coding and office workers are putting in overtime. A failure in these windows brings work to a halt even if it lasts only half an hour. The root of user frustration is not a long MTTR (mean time to recovery); it is the heavy overlap between failures and business peaks.

    3. The Data View: Frequent Small Failures Hurt Trust More Than Rare Large Ones

    Over a 30-day window, the platform had 46 service anomalies of all sizes, more than one per day on average. On the worst day, all-day availability fell to 64.58%, and the general-purpose model’s response and generation speed dropped significantly. After that, search requests saw error rates above 20%, SMS login broke, and model response latency rose.

    The single-incident handling speed is worth acknowledging: the median resolution time was about 13 minutes, and the severe evening incidents were all fully recovered within just over 30 minutes. But overall availability over the 30 days was only 96.43%.

    A common misconception needs correcting here: 96.43% does not sound low, but converted to monthly downtime it is close to 26 hours. For chat-style usage, that may be tolerable. For production scenarios such as writing code and running business APIs, it is an unacceptable risk exposure. Frequent small failures erode trust far more than rare large ones.

    4. Root Causes: Where LLM Service Stability Gets Hard

    LLM service stability problems are usually not a single point but multiple layers stacking up:

    1. Insufficient inference resource elasticity: GPU pooling and scheduling, memory fragmentation, and batch queuing all amplify tail latency.
    2. Long-lived and streaming connections: in SSE/WebSocket scenarios, gateway timeouts and connection pool exhaustion show up directly as “dropped connections.”
    3. Long dependency chains: jitter in any link—authentication, rate limiting, retrieval, or tool calls—propagates upward.
    4. Capacity planning lagging behind traffic peaks: the afternoon and evening double peaks overlap, keeping capacity water levels pinned near the ceiling for long stretches.
    5. Changes and releases lacking canary rollout: model versions iterate frequently, and without small-traffic validation, cascading anomalies are easy to trigger.

    5. Engineering Practices: Moving Availability From “Fast Recovery” to “No Interruption”

    5.1 Define SLOs in Business Terms

    Do not only look at whether the service is alive. Define error budgets by business time window. Example:

    1. slo:
    2. window: 30d
    3. target: 99.95% # monthly downtime < 22 minutes
    4. peak_hours: ["14:00-18:00", "20:00-23:00"]
    5. error_budget_policy: freeze_release_when_burned

    5.2 Monitoring and Alerting Must Cover the Real Request Success Rate

    Metrics should include at least the real request success rate, first-token latency, streaming interruption rate, and per-model-version availability by dimension. Use multi-window, multi-burn-rate alerting to avoid the case where recovery is so fast that the alert never fires.

    5.3 The Client Must Implement Fallback and Retry

    1. async def call_with_fallback(prompt):
    2. for model in ["primary", "pro", "fallback_small"]:
    3. try:
    4. return await request(model, prompt, timeout=8)
    5. except (TimeoutError, ServiceUnavailable):
    6. continue
    7. return cached_or_stub_response(prompt) # fallback

    Key points: exponential backoff with jitter, idempotency keys, circuit-breaker thresholds, and resumable streaming.

    5.4 Multi-Region Active-Active and Disaster Recovery

    Deploy inference replicas across availability zones, use a message queue to smooth peaks, and persist results in object storage. When the primary zone’s availability drops below the threshold, traffic is switched automatically.

    5.5 Canary Rollouts and Capacity Plans

    All model and gateway changes go through small-traffic canary rollout. Pre-scale for the afternoon and evening double peaks, and use log services and monitoring alerts to forecast water levels.

    6. Selection Advice for Users

    When treating an LLM as a productivity tool, do three things. First, load-test the real success rate during your own business hours. Second, implement multi-model fallback and local caching. Third, design asynchronous processing and manual fallback flows for critical paths. The more a tool is used for serious work, the more weight stability carries—this is both the platform’s responsibility and a required part of the integrating party’s architecture design.