LLM Service Outage Post-Mortem: Root Causes and Stability Engineering for Large Model Inference
This article reviews a three-day outage on a large model service as an industry-wide case study, and explains why LLM inference is harder to keep stable than traditional web services. It breaks down the request path from prefill to decode, then covers capacity baselines, layered rate limiting, admission control, four levels of degradation, dependency timeouts and circuit breaking, observability across metrics, traces and logs, a time-boxed incident response process, change management, and resilience patterns for client applications. The goal is a practical path from roughly 98% availability to 99.9%.
1. Background: What Three Consecutive Days of Incidents Tell Us
An intelligent large model platform experienced three service incidents within three days. The official status page recorded durations of roughly 1 hour 48 minutes, 10 hours 13 minutes, and 1 hour 3 minutes. Monitoring data over the same period showed the web chat service had an overall availability of about 98.61% across the previous 30 days. On the user side, the typical symptom was a “server busy, please retry later” message after starting a new session. Both web and mobile clients were affected, and the topic spread quickly on social platforms.
From an engineering perspective, this data set contains three warning signals.
First, the failures were not a single point but a sequence. A one-day incident usually points to an incidental factor (one release, one traffic spike). Three consecutive days indicate the system was already running at the boundary of its capacity and stability, which is a structural risk.
Second, the second incident lasted far longer than the first, close to 10 hours. This suggests the initial response only addressed the symptom and never located the root cause. It also exposes the absence of a clear time box and escalation mechanism in the incident response process.
Third, 98.61% availability translates to roughly 10 hours of downtime per month. For an online service whose core interaction is conversation, this level is still clearly short of production-grade high availability (typically 99.9% or above).
This article does not evaluate any specific vendor. It treats this class of event as a common industry sample and discusses the capabilities that online LLM services must fill in on both architecture and operations.
2. Failure Path Breakdown: Why LLM Services Are Harder to Stabilize Than Traditional Web
Scaling a traditional web service is relatively direct: add machines and caches to a stateless application layer and throughput rises linearly. LLM inference is different. Its resource model is a triple constraint of GPU memory, compute, and bandwidth, and requests have long lifetimes with uneven resource consumption.
A typical chat request travels this path:
Client → Access layer (auth/rate limiting) → Session and context management → Scheduling queue→ Prefill stage → Decode stage → Streaming response → Post-processing
Three stages are the most likely bottlenecks:
- Prefill is compute-intensive, and long contexts significantly amplify compute consumption;
- Decode is GPU memory bandwidth-intensive, and the number of concurrent sessions is hard-limited by memory capacity;
- Once the scheduling queue backs up, queueing latency rises non-linearly and is eventually returned to the client as “server busy.”
When traffic surges, an unreasonable rate limit threshold lets the queue keep growing. If autoscaling responds slowly (loading model weights onto a new instance often takes several minutes), the system enters a positive feedback loop of “busier means slower, slower means more backlog.” This is the typical cause of long outages.
3. Capacity and Elasticity: Stop “Busy” Before It Reaches Users
The first step in stability work is not tuning the model but making capacity predictable and elasticity triggerable.
- Capacity baseline: build a capacity model from “concurrent sessions × average context length × output length,” and use load test data to calibrate the safe watermark per instance. Steady-state utilization is usually kept at 60%–70% to leave headroom for bursts.
- Layered rate limiting: apply tenant-level, endpoint-level, and model-level limits at the access layer, prioritizing continuity for established sessions instead of failing all requests together.
- Queueing and admission: explicitly define a maximum queue depth and a wait timeout. Timed-out requests fail fast with a retryable message rather than occupying compute in vain.
- Elasticity policy: change the scaling trigger from CPU utilization to “queue wait time + decode concurrency,” and pre-warm a number of standby instances to shorten the cold start window.
- Resource isolation: offline tasks such as training and fine-tuning must be physically or logically isolated from online inference so they cannot seize GPU memory and cause online jitter.
Illustrative admission control logic:
def admit(request, limiter, queue):if not limiter.allow(request.tenant_id):return reject("rate_limited", retry_after=2)if queue.depth() >= QUEUE_MAX_DEPTH:return reject("server_busy", retry_after=5)if request.estimated_wait_ms() > MAX_WAIT_MS:return reject("timeout_busy", retry_after=3)return queue.enqueue(request)
The key point: rejection must be controlled, explainable, and retryable, rather than letting requests pile up without bound and then time out en masse.
4. Degradation and Fault Tolerance: Slower Instead of Unavailable
The core idea of a highly available system is to retain partial capability. A multi-level degradation design for an LLM chat service:
- Level 1: shorten the maximum context window and reduce maximum output length in exchange for higher concurrency;
- Level 2: switch to a smaller backup model, trading some quality for availability;
- Level 3: disable non-core capabilities (web retrieval, plugin calls, multimodal parsing) and keep text-only chat;
- Level 4: enter read-only mode, returning cached historical results or an explicit queueing notice instead of wrong information.
Dependency risk must also be handled. Any failure in vector retrieval, content safety review, or session persistence can drag down the main path, so each dependency needs its own timeout, circuit breaker, and bulkhead isolation:
Main path timeout = max(model inference budget, sum of dependency timeouts) + network marginCircuit breaker: error rate > 50% and request count > 20 → open for 30s → half-open probe
5. Observability and Incident Response: Compressing 10 Hours into 10 Minutes
A second incident lasting more than 10 hours is usually not a case of an unfixable system but of a localization path that is too long. Observability should cover three layers:
- Metrics: request volume, queue wait time, time to first token, end-to-end latency, GPU memory usage, batch size, error code distribution;
- Traces: a single request ID carried through access, scheduling, inference, and response, with drill-down by tenant and model;
- Logs: structured records of rejection reasons and degradation actions, making it easy to report afterward how many requests were rate limited and how many were degraded.
The incident response process should define time boxes and roles:
| Stage | Goal | Time box |
|---|---|---|
| Detect and confirm | Alert fires, status page updated | Within 5 minutes |
| Stop the bleeding | Rate limit, degrade, roll back | Within 15 minutes |
| Locate | Pin the bottleneck from trace data | Within 30 minutes |
| Fix and verify | Canary rollout, metric regression | Depends on root cause |
| Post-mortem | Root cause, action items, owners | Within 48 hours |
“Stop the bleeding first, locate second” must be written into the playbook. Rollback should be achievable in minutes, releases must be canaried (for example 1% → 10% → 50% → 100%), and automatic rollback thresholds should be configured.
6. Release and Change Management: Most Incidents Come from Changes
Industry experience shows a substantial share of production incidents are introduced by changes. Change risk is higher for LLM services, because a single prompt template adjustment or batch parameter change can shift the resource curve. Recommended practices:
- Schedule change windows away from business peaks, and require two-person review for major changes;
- Version model weights and inference configuration, keeping historical versions that can be switched quickly;
- Establish release gates bound to business metrics that automatically block when quality regression fails;
- Load test ahead of any change to capacity-related parameters (max batch size, concurrency limits).
7. Recommendations for Consumers: Client Applications Need Resilience Too
For business systems built on top of a model service, availability cannot be entrusted entirely to the upstream provider:
- Multi-provider and multi-model routing, switching dynamically based on availability;
- Exponential backoff retries on the client to avoid a retry storm (always add jitter);
- Idempotency and deduplication for critical results to prevent duplicate writes caused by retries;
- User-facing messaging that sets clear expectations, such as “the queue is currently long, estimated wait X seconds”;
- Your own degraded experience, for example switching to a question-answering mode over an existing knowledge base.
8. Conclusion
Three consecutive days of incidents amount to an open lesson on capacity, degradation, and observability. LLM service stability does not come from single-point optimization but from stacking four foundational capabilities: predictable capacity, degradable failures, rollbackable changes, and localizable problems. For developers and enterprise users, turning these capabilities into standardized architecture guidelines and operational playbooks is the realistic path from 98% availability to 99.9%.
