LLM Service Outage Post-Mortem: Stability Engineering for Large Model Inference Platforms
This article reviews a three-day sequence of outages on a large model platform and explains why LLM inference services are more prone to cascading failures than traditional web services. It covers a practical stability checklist across the entry, capacity, change management, degradation, and observability layers, including concurrency gating, token-based capacity planning, fast rollback, graceful degradation states, and user-impact alerting. Readers will learn how to turn availability from an after-the-fact metric into a constraint designed in advance.
1. Incident Breakdown: A Typical “Gradual Degradation, Avalanche, Long-Tail Recovery” Failure
A large model platform experienced three consecutive service disruptions over 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. The detail most worth attention for developers is not how long each outage lasted, but the shape of the failures: a short burst of instability on day one, prolonged unavailability on day two, and a short self-recovering incident on day three. This kind of sequence is very common in distributed online services and usually maps to three different root causes, which cannot be handled with the same playbook.
Breaking the three days down from an engineering perspective:
- First incident (about 108 minutes): users reported instability in the morning, the blast radius widened in the afternoon, and the issue was confirmed and contained by the evening. This matches queue amplification after capacity watermarks are exceeded.
- Second incident (about 613 minutes): the anomaly was detected and investigated at night, a fix was applied in the early morning, but it was not closed out by the next morning and service recovered only later in the day. This matches a change or dependency failure compounded by resource exhaustion, where the remediation required data migration or instance rebuilding and could not be compressed.
- Third incident (about 63 minutes): a short afternoon anomaly followed by a quick fix. This matches a residual risk point being triggered, such as cache stampede or a single availability zone hiccup.
It is worth noting that 98.61% monthly availability implies roughly 6 hours of downtime, which does not contradict the roughly 12 hours of cumulative incidents over three days. Availability is typically calculated based on “error rate exceeding a threshold at minute-level granularity,” so some degraded periods may not be counted. This suggests that the way an availability metric is defined itself affects post-mortem conclusions.
2. Why LLM Online Services Are More Prone to Avalanches Than Traditional Web Services
The scaling unit for traditional services is a “stateless replica,” while the scaling unit for LLM inference services is an “instance carrying GPU memory and weights.” This creates several structural differences:
- Long, non-preemptible resource occupancy per request. A single long-context inference can run for tens of seconds, keeping an instance fully occupied while the queue builds up quickly.
- Slow scaling. A new instance must load weights, warm up GPU memory, and establish caches, which takes minutes or longer and cannot absorb second-level traffic spikes.
- Strong cost constraints. GPU memory is expensive, so steady-state redundancy is low and the baseline watermark is naturally high.
- Many failure amplification paths. Any hiccup in context caching, retrieval dependencies, authentication, or rate limiting gets amplified inside the queuing model.
Put roughly in queuing terms: when the arrival rate λ approaches the service rate μ, average wait time grows as 1/(1-ρ), where ρ = λ/μ. Raising ρ from 0.8 to 0.95 increases wait time by roughly 4x; raising it to 0.99 increases it by roughly 20x. That is the mathematical explanation for “just slow in the morning, server busy by the evening.”
3. A Practical Stability Engineering Checklist
3.1 Entry Layer: Stop Overload Before Inference
The core principle is fail fast rather than succeed slowly. Implement concurrency limits, token bucket rate limiting, and priority queues at the gateway, and split interactive requests from batch jobs into separate pools so offline tasks cannot consume online quota.
Request -> Auth -> Tenant quota -> Priority queue -> Concurrency gate -> Inference instance pool|-> Over threshold: return retryable response (with Retry-After)
When returning a “server busy” response, always include retry semantics so clients can apply exponential backoff instead of retrying endlessly and creating a secondary surge.
3.2 Capacity Layer: Use “Concurrent Tokens” Instead of QPS as the Capacity Unit
LLM service capacity should constrain both request count and token throughput. It is recommended to define three watermarks: safe watermark (0.7), scale-out watermark (0.8), and rate-limit watermark (0.9), and to configure autoscaling based on queue length rather than CPU alone.
scaling:metric: queue_wait_ms # Queue wait timetarget: 800cooldown_up: 60scooldown_down: 300s # Slower scale-in to prevent flappingmax_concurrency_per_instance: 32max_tokens_per_minute: 600000
3.3 Change Layer: Compress the “Long-Tail Recovery”
The second incident lasted more than ten hours, usually not because diagnosis was slow but because the remediation action was heavy. Ways to avoid this include versioning models and prompt templates with second-level rollback; deploying weights and caches separately to avoid re-pulling them during rebuilds; following a two-phase release of compatibility first, cleanup later for database changes; and completing shadow traffic validation in a canary environment for all changes.
3.4 Degradation Layer: Define an “Available but Constrained” Middle State
Do not limit the system to only “normal” and “unavailable.” Possible intermediate states include shortening the maximum context length, lowering the generation length cap, disabling non-core web and retrieval capabilities, switching to a smaller backup model, and giving queued requests an estimated wait time. These strategies turn a hard failure into an acceptable drop in experience.
3.5 Observability Layer: Detect Failures Before Users Do
Minimum viable observability set:
- Business metrics: success rate, first-token latency, end-to-end P95/P99 latency, queue wait time;
- Resource metrics: GPU memory usage, batch saturation, number of ready instances;
- Dependency metrics: latency and error rate for authentication, retrieval, and caching;
- Change metrics: an overlay view of release events on metric curves.
Alerting should be based on “user-perceivable failures” rather than single-point resource thresholds, with a clear on-call escalation path.
4. Final Thoughts
Abstracting this incident into a methodology yields three conclusions: capacity planning must use the real bottleneck resource as the unit; overload protection must be pushed to the entry layer and support graceful degradation; and recovery capability (rollback, canary, data compatibility) is as important as fault tolerance. If your team is building or operating LLM online services, you can implement the watermarks and canary mechanisms described above in a cloud environment with complete monitoring, alerting, logging, container platform, and object storage capabilities, such as Baidu AI Cloud, turning availability from an after-the-fact number into a constraint designed in advance.
