LLM Service Partial Outages: Root Causes and Resilience Design
This article analyzes a 109-minute partial outage of an LLM chat service and breaks down the four bottleneck layers of online inference: access, orchestration, inference, and dependencies. It explains how to turn vague "server busy" errors into verifiable facts using status pages and postmortems, and presents six resilience practices covering timeouts and retries, rate limiting, canary releases, multi-AZ failover, graceful degradation, and observability. It also outlines capacity and load testing guidance plus a practical enterprise checklist for reducing recovery time from hours to minutes.
1. What a 109-Minute Partial Outage Tells Us
On November 3, an AI chat platform experienced partial unavailability on both its web frontend and API. Users saw their conversation requests rejected with a message saying the server was busy and to try again later. The platform’s status page recorded a “partial web/API outage” lasting roughly 1 hour and 49 minutes, after which it was marked as fully operational.
Abstracted into technical terms, this kind of event carries three key signals:
- Partial outage: Not a complete, global failure, but a failure of some entry points, regions, or endpoints. This indicates the fault domain was contained at a specific layer (access, inference, or dependencies).
- A clear recovery boundary: The status page provided start and end times, which makes MTTR (mean time to recovery) calculable. For an online service, 109 minutes is a significant event and is unlikely to be explained by a single restart.
- Uniform user-facing error semantics: “Server busy” is a typical fallback message for overload-class errors. It covers rate limiting, queue timeouts, backend unavailability, and more, so the root cause cannot be identified from the message alone.
For developers and enterprise users, the real questions are not “why did it go down again,” but: Where is the fault domain? How do we shorten detection and recovery time? How do we protect the core request path when a dependency is unavailable?
2. Breaking Down the Failure Path: Four Bottleneck Layers in LLM Online Serving
The biggest difference between an LLM chat service and a conventional web service is that a single request consumes more resources, takes longer, and carries more state. A request typically passes through four layers:
- Access layer: load balancing, authentication, rate limiting, WAF.
- Orchestration layer: session management, context assembly, tool calls, content safety filtering.
- Inference layer: batch scheduling, GPU/memory capacity, model weight loading, operator execution.
- Dependency layer: vector retrieval, cache, object storage, message queues, logging, and monitoring/alerting.
A “partial outage” usually falls into one of three paths:
- Capacity overload: A concurrency spike causes the inference queue to back up. After queue timeouts, the access layer actively rejects requests, producing the “busy” message.
- Dependency jitter amplification: Jitter in a cache or retrieval dependency exhausts threads/coroutines in the orchestration layer, and the failure propagates back up the call chain to the access layer.
- Release and configuration changes: A canary batch introduces a bad image or parameter change, causing some instances to fail—hence “partial” rather than “total.”
An illustrative capacity and queuing relationship (pseudocode, expressing the idea only):
If arrival rate λ stays higher than service rate μ:Queue length L grows linearly over timeWhen L > threshold or wait time > timeout limit:Fail fast for new requestsReturn retryable semantics (e.g., 429/503)
This shows that overload is not “slowness,” it is “rejection.” Rejection itself is a correct protective action. The problem is whether rejection happens early enough, whether it is retryable, and whether it only affects non-core traffic.
3. Status Pages and Postmortems: Turning “It Feels Down” into Verifiable Facts
The value of a status page is that it provides a single source of truth. A mature status page should include component-level status (web, API, retrieval, auth, etc.), historical events, start and end times, scope of impact, and a postmortem link. When users are judging whether a problem is on their side, the first step should be to check the status page rather than repeatedly refreshing.
A postmortem should consistently include the following fields to avoid vague conclusions like “cause unknown, be careful next time”:
- Impact: failed request ratio, affected regions/entry points, error code distribution.
- Timeline: alert triggered, diagnosis, mitigation, recovery, end of observation window.
- Layered root cause: separate the trigger from the root cause.
- Action items: each must have an owner, priority, and due date.
A simplified postmortem template:
incident:duration: 109mscope: web+api partialerror_codes: [429, 503]trigger: traffic peak + dependency jitterroot_cause: queue saturation in orchestration layeractions:- add adaptive rate limit (P0)- separate core and non-core queues (P0)- multi-AZ failover drill (P1)
4. Six Resilience Practices: From Passive Recovery to Minute-Level Mitigation
1) Timeouts, Retries, and Backoff
Retries are a double-edged sword: retries without backoff cause a “retry storm.” Exponential backoff with jitter is recommended, along with a retry budget—for example, capping retry requests at no more than 10% of total requests.
import random, timedef call_with_backoff(fn, max_attempts=3, base=0.2, cap=2.0):for i in range(max_attempts):try:return fn()except Exception:if i == max_attempts - 1:raisesleep = min(cap, base * (2 ** i)) * (0.5 + random.random())time.sleep(sleep)
2) Rate Limiting and Priority Queues
Separate “core conversations” from “batch tasks/long-context tasks” into different pools so long tasks do not occupy all inference slots. Apply three-level rate limiting at the access layer—per tenant, per endpoint, and global—prioritizing paid or core business traffic.
3) Canary and Rollback-Ready Releases
Roll out canaries by instance percentage (e.g., 1% → 5% → 25%), with an observation window and automatic rollback thresholds (error rate, P99 latency) for each batch. Changes and configurations must be versioned and support one-click rollback.
4) Multi-AZ and Cell-Based Disaster Recovery
Distribute inference replicas across availability zones, with health checks that automatically remove unhealthy instances. For hard dependencies (auth, configuration), use local caching and read-only degradation to prevent dependency jitter from taking down the entire site.
5) Degradation Strategies
Define a “degradable list”: disable non-core personalization/recommendations, reduce context length, switch to a smaller model, or return cached or templated responses. Degradation must be controlled by feature flags and support gradual rollout by user segment.
6) Observability and Alerting
Metrics should cover at least: QPS, concurrency, queue length, queue wait time, time to first token (TTFT), generation rate, error rate, and dependency success rate. Alerts should use multiple windows and multiple conditions to suppress false positives from jitter.
Alert example (expressing logic, not product-specific syntax):If 5-minute error rate > 5% AND 10-minute error rate > 2%:Trigger P1 alertIf queue length > capacity * 0.8 for 3 minutes:Trigger scaling and rate-limiting plan
5. Capacity and Load Testing: Don’t Wait for the Peak to Find Out μ Is Not Enough
The core of capacity planning is to find the upper limit of service rate μ and verify behavior when λ spikes. Recommended load testing coverage:
- Step load: find the inflection point where latency rises nonlinearly.
- Peak pulse: simulate a sudden 10x traffic surge and verify that rate limiting and queuing reject as expected.
- Dependency fault injection: disable cache/retrieval dependencies and verify that degradation takes effect.
- Long-duration stability test: run continuously to observe memory and GPU memory fragmentation and connection leaks.
Load testing must include “correctness validation,” such as sampling and comparing output quality, to avoid sacrificing quality for speed.
6. Enterprise Implementation Checklist
- Set up status page subscriptions linked to internal on-call, with automatic notifications when an incident occurs.
- Assign dedicated quotas and priorities for critical business to avoid being squeezed out by shared traffic.
- Implement retryable-semantics detection and backoff on the client side to prevent users from “frantically refreshing.”
- Conduct a disaster recovery drill and archive the postmortem every quarter, closing the loop on action items.
- If using cloud capabilities, container platforms can provide elastic scaling, log services can provide centralized search, monitoring and alerting can provide threshold linkage, object storage can persist static assets and model files, and message queues can smooth out peaks. On Baidu AI Cloud, a resilience architecture can likewise be built by combining these general-purpose capabilities.
7. Conclusion
A 109-minute partial outage often exposes not a single point of failure but the coupling of three chains: capacity, dependencies, and releases. By breaking “server busy” down into observable metrics, turning retries into budgeted backoff, making degradation a gradual-rollout switch, and turning disaster recovery into a quarterly routine, recovery time can be compressed from hours to minutes. Stability is not a one-time fix but a continuously running engineering mechanism.
