LLM Online Service Outage Post-Mortem: Capacity Governance and Resilience
This article presents a comprehensive post-mortem of a large language model (LLM) online service outage, analyzing the incident from user impact to technical root causes. It breaks down the failure into multi-layer phenomena—ingress overload, application thread exhaustion, inference saturation, dependency coupling, and delayed elastic scaling—and identifies the core issue as supply-demand imbalance compounded by insufficient elasticity. The article then proposes a stability governance framework covering capacity planning, traffic management, dependency isolation, change control, and emergency response, along with observable SLI/SLO design, a token bucket rate-limiting pseudocode example, and structured post-incident review practices. It is intended for platform engineers and SREs who operate LLM services and need practical guidance for preventing and mitigating flash outages.
Incident Recap: From User Perception to Service Recovery
On May 8, 2026, an LLM-based online service platform experienced unavailability of both its web interface and API. Many users reported “service down” on social media, with the chat interface showing “server busy, please retry later.” The official status page indicated that both web and API services were unavailable. By 17:32 that day, the status was updated to “issue identified, fix in progress,” and services were restored that evening. The incident quickly rose to the top of discussion boards, with user concerns centered on “when will it recover,” “can I continue working,” and “will my chat history be affected.”
From a technical perspective, such a “flash outage” is rarely a single instantaneous error. It is the combined result of user perception, traffic ingress, application layer, model inference layer, compute resource layer, and status communication chain. Users see “server busy,” but behind that may lie sudden request spikes, queue timeouts, connection pile-ups, inference task saturation, delayed elastic scaling, dependent service timeouts, and insufficiently granular rate limiting. Therefore, a post-mortem must not stop at the conclusion of “traffic was too high”; it should establish a full-chain view from ingress to model inference.
Phenomena Breakdown: A Flash Outage Is Not a Single Point of Failure
An LLM online service typically includes a web frontend, gateway, authentication, session management, task scheduling, model inference, streaming response, logging, and billing. Any one component with insufficient capacity can be amplified by upstream systems into a full outage. Common phenomena include:
- Ingress layer overload: A short burst in request volume drives up connection count, concurrency, and new session creation, causing queuing at the gateway or load balancer.
- Application layer thread/coroutine exhaustion: Synchronous blocking calls, slow dependencies, and unreasonable timeout settings fill up worker threads, and health checks fail.
- Inference layer saturation: Model inference depends on scarce compute such as GPUs, and each request takes a relatively long time. When the queue backs up, time-to-first-byte (TTFB) increases, and user retries amplify traffic further.
- Dependency coupled amplification: Non-core dependencies such as authentication, configuration, logging, billing, and storage can drag down the main path if they jitter and lack isolation and degradation.
- Delayed elastic scaling: Compute scaling involves resource requests, image pulls, model loading, health checks, and traffic admission, which cannot complete in seconds like stateless web services.
- Insufficient status communication: Users cannot tell whether the failure is local or global, leading to retry storms and social media amplification that creates secondary traffic spikes.
In public discussions, it was mentioned that user requests grew by about 66.7% during a certain phase, while compute capacity grew by only about 8.3%—an obvious supply-demand gap. This data point serves as an example reminder for capacity governance: when demand growth significantly outpaces resource growth, the system must rely on rate limiting, queuing, degradation, elastic scheduling, and capacity reservation to maintain basic availability, and cannot assume that “scaling will always keep up.”
Root Cause Analysis: Supply-Demand Imbalance Stacks with Insufficient Elasticity
1. Capacity Planning Lacks a “Request–Compute–Latency” Conversion
LLM service capacity cannot be viewed only via QPS. Input length, output length, concurrent sessions, streaming response duration, model size, and batch processing efficiency all matter. If capacity planning only estimates based on historical peaks and does not cover spike traffic from breaking news, marketing events, or virality, queuing will occur when the peak arrives. A better approach is to build a capacity model that takes requests per second, average input/output tokens, single-card throughput, batch window, target TTFB, and error budget as inputs, and derives the required number of inference instances and a safety waterline.
2. Elastic Scaling Path Is Too Long
Scaling an inference instance is not simply adding replicas. Model loading, GPU memory initialization, health checks, and gray traffic admission all take time. If the scaling policy only uses CPU utilization as a trigger—while the inference bottleneck is actually in GPU memory, queue length, or TTFB—the optimal scaling moment will be missed. You should monitor queue depth, inference concurrency, first-token latency, P95/P99 response times, error rates, and rate-limit trigger counts, and maintain a warm pool and reserved capacity.
3. Lack of Layered Rate Limiting and Fair Scheduling
A global one-size-fits-all rate limit can protect the system but may inadvertently block legitimate users. You should implement multi-level rate limiting by tenant, API, model size, request length, priority, and session dimension. Stricter quotas should be applied to long outputs, high concurrency, and batch requests. Interactive and batch requests should be separated into different pools. When a request is limited, return a clear error code and retry advice to prevent unbounded client retries.
4. Dependencies Are Not Isolated, and Degradation Strategies Are Vague
When non-core dependencies such as authentication, logging, or billing slow down, a synchronous wait on the main path will cause thread pile-up. You should separate these from the main path using timeouts, circuit breakers, bulkhead isolation, and asynchrony. Degradation strategies must be defined in advance: for example, disable non-essential statistics, reduce log sampling, pause low-priority batch jobs, limit long input text, shorten maximum output length, switch to a backup model, or serve a queuing page.
Stability Governance Framework: Capacity, Traffic, Dependencies, Changes, Emergencies
1. Capacity Governance: Reservation, Elasticity, and Load Testing
Capacity governance should cover daily waterline, event waterline, and extreme waterline. Keep reasonable redundancy in daily operation; conduct capacity evaluation and load testing before events; prepare warm pools and fast-scaling scripts for extreme scenarios. Load testing should not focus only on the gateway—it must exercise model inference, streaming responses, long connections, authentication, billing, and logging chains. Metrics for load testing should include throughput, P95/P99 latency, error rate, queue depth, resource utilization, and recovery time.
2. Traffic Governance: Multi-Level Rate Limiting, Queuing, and Retry Control
We recommend setting up rate limiting at the ingress, tenant, API, and inference layers. The ingress layer protects total volume, the tenant layer ensures fairness, the API layer distinguishes interactive vs. batch, and the inference layer schedules by compute quota. Queuing should enforce a maximum wait time and maximum queue length; if exceeded, fail fast and return an understandable message. Client retries must use exponential backoff with jitter—unbounded retries are forbidden.
3. Dependency Governance: Timeouts, Circuit Breakers, Isolation, and Asynchrony
All cross-service calls should have connection timeouts, read timeouts, and total timeouts, with a clearly defined fallback path on failure. The critical path should only depend on essential services; non-core statistics, auditing, and billing can be asynchronous. Set circuit breaker thresholds for slow dependencies to prevent fault propagation.
4. Change Governance: Canary Release, Rollback, and Change Freeze
LLM services are sensitive to configuration changes, model versions, prompt templates, routing policies, and quota adjustments. Changes should be released in canary mode: observe error rate, latency, and rate-limit metrics before expanding rollout. During peak hours, enforce a change freeze. Keep one-click rollback capabilities.
5. Emergency Governance: Playbooks, Drills, and Status Communication
Emergency response plans should define failure severity, the responsible person, escalation paths, rate-limit/degradation switches, capacity scaling steps, and external communication templates. The status page should distinguish between “investigating,” “identified,” “fixing,” and “resolved,” and provide impact scope and estimated recovery time. Drills should cover inference saturation, dependency timeouts, ingress overload, and regional-level failures.
Observability and SLOs: Making “Busy” Explainable
Stability governance requires quantifiable metrics. Define SLIs and SLOs such as availability, first-token latency, full-response latency, error rate, rate-limit ratio, queuing time, and recovery time. Monitoring should cover:
- Ingress layer: QPS, concurrent connections, 429/503 ratio, retry rate.
- Application layer: thread/coroutine pool utilization, queue length, timeout count.
- Inference layer: inference queue depth, batch size, GPU memory utilization, first-token latency, P99 latency.
- Dependency layer: authentication, configuration, storage, logging, and billing call success rate and latency.
- Business layer: active sessions, proportion of long-text requests, batch task backlogs.
Alerting cannot rely on single-point thresholds; it should combine multiple indicators. For instance, “queue depth continually rising + first-token latency exceeding target + rate-limit trigger rate rising” together indicate capacity is close to a bottleneck. For teams running on cloud infrastructure, you can leverage platform capabilities such as general monitoring alerts, log services, auto-scaling, load balancing, and container platforms—like those offered by Baidu AI Cloud—to build layered observability and elastic protection. But the core still lies in metric design, threshold calibration, and emergency response linkage.
Rate Limiting and Degradation Example: Codifying Strategy with Pseudocode
The following is general rate-limiting pseudocode that emphasizes strategy rather than implementation:
class TokenBucket:def __init__(self, capacity, refill_per_sec):self.capacity = capacityself.tokens = capacityself.refill_per_sec = refill_per_secself.last_time = now()def allow(self, cost=1):elapsed = now() - self.last_timeself.tokens = min(self.capacity,self.tokens + elapsed * self.refill_per_sec)self.last_time = now()if self.tokens >= cost:self.tokens -= costreturn Truereturn False
In production, combine tenant quotas, interface weights, and priority scheduling. Degradation switches can be designed as:
if inference queue depth > high waterline:reject low-priority batch tasksenable queuing page for interactive requestsreduce maximum output lengthelif first-token latency > target P99:expand warm poolreduce batch windowtrigger capacity alertelse:serve normally
The key is not the code itself, but turning rate limiting, queuing, degradation, and scaling into configurable, auditable, and rollback-capable runtime policies.
Post-Mortem Mechanism: Building Capability from Incidents
After recovery, complete a blameless post-mortem as soon as possible, covering timeline, impact scope, root cause, handling process, monitoring blind spots, playbook effectiveness, and improvement items. Each improvement item must have an owner, a completion date, and acceptance criteria. Common improvements include: adding a capacity model, increasing warm pool size, refining tenant-level rate limits, improving the status page, optimizing retry strategies, adding dependency isolation, conducting peak-hour drills, and establishing change-freeze windows. The goal of the post-mortem is not to explain “why it crashed,” but to ensure the system detects issues earlier, degrades more smoothly, and recovers faster when the next peak arrives—and to prove stability improvement with verifiable SLOs.
