LLM Service Outage Post-Mortem: Error Semantics and Fault-Tolerant Design
A technical post-mortem of a multi-hour LLM service outage that took down chat, coding assistants, collaboration modules, and public APIs at once. It explains how to tell rate limiting apart from overload, why a green status page does not mean your requests will succeed, which metrics to collect, and how to design tiered degradation, circuit breakers, checkpointed tasks, and a provider abstraction layer around an uncontrollable external dependency.
A multi-hour outage of a large language model service took down the chat frontend, the coding assistant, the collaboration suite, and the public API at the same time. This article starts from that typical incident and breaks it down in neutral, technical terms.
1. Incident Timeline: Three Outages in One Day
A model platform went fully unavailable three times between midday and afternoon on a single workday. The status page turned red and then green three times, and after each “recovered” announcement a large number of users still reported that they could not get in. The month was not over yet, and the number of days with an incident on record had already passed half.
The breadth of the impact is what stands out. Multiple model tiers failed simultaneously, and the web chat frontend, the public API, the coding tool, and the collaboration module were all affected; only a few strongly isolated surfaces, such as the admin console and dedicated deployments, escaped. The failure was not confined to one layer — it cut across the ingress layer, the authentication layer, the inference layer, and the frontend asset layer.
The real lesson for engineering teams is not “that vendor is unreliable.” It is that binding core business flows directly to a single external inference service leaves you without the architectural redundancy you need.
2. Error Semantics: Overload Is Not Rate Limiting
The message users saw during the incident was “service overloaded,” which is a completely different signal from the “too many requests” error developers are used to.
- Rate limiting errors (conventionally HTTP 429): the caller exceeded its quota, but the service itself is healthy. Back off and retry, and the request succeeds.
- Overload errors (conventionally a non-standard code such as 529): overall server capacity is saturated. This is a global event, and retrying only makes congestion worse.
A queueing analogy makes it clearer: rate limiting means “you are ordering too fast, please wait”; overload means “the kitchen is on fire and we are not taking orders today.” Client strategy therefore has to split the two cases:
import random, timeRETRYABLE = {429, 500, 502, 503, 504, 529}def call_with_backoff(fn, max_attempts=5, base=0.5, cap=8.0):for attempt in range(max_attempts):try:return fn()except ServiceError as e:if e.status not in RETRYABLE or attempt == max_attempts - 1:raise# Exponential backoff with jitter to keep retries from synchronizing into a stormdelay = min(cap, base * (2 ** attempt))time.sleep(delay * (0.5 + random.random()))
Three points matter here: back off only on retryable status codes; backoff must include random jitter; and during a global overload, trip the breaker instead of continuing to retry.
3. “Status Page Is Green” vs. “It Works on My Side”
The most engineer-worthy detail in the original account is that users still could not get in after recovery was announced, showing up as stale authentication state, failed frontend asset loads, and blank configuration and usage pages.
This is common in distributed systems. A status page usually reflects only the health probes on the core path, while session credentials, caches, static asset distribution, and edge node synchronization all lag behind. Recovery is a process of converging layer by layer, not a switch being flipped.
Availability measurement therefore has to separate two levels:
- Platform availability: declared by the service provider.
- Business success rate: measured by the caller over its own requests. This is the metric that actually aligns with user experience.
At minimum, collect request success rate, P95 time to first byte, end-to-end completion rate, and the retry amplification factor (actual request volume / business request volume). When the retry amplification factor exceeds 2, the client is turning a local failure into global congestion.
4. Fault-Tolerant Architecture: Caging the Uncontrollable Dependency
1. Tiered degradation
Split links by business value: keep synchronous calls on the core path, and automatically degrade non-core paths (summarization, tag recommendation, batch rewriting) to asynchronous execution or cached results.
2. Circuit breaking and bulkhead isolation
Give every external dependency its own thread pool and circuit breaker so one dependency cannot take down the whole service; while the breaker is open, return a fallback result directly.
3. Task queues and resumable checkpoints
Long-running flows should not live inside synchronous requests. Move them to a task queue and record staged checkpoints:
{"task_id": "t-20240824-001","stage": "outline_done","checkpoint": {"completed_chunks": 37, "total_chunks": 120},"retryable": true}
That way, even a multi-hour outage in the middle only costs you a resume from chunk 38, instead of throwing away nine hours of work.
4. Provider abstraction layer
Put a unified gateway between business code and model calls to hide the differences and keep switchover cost and canary ratio under control:
class ModelGateway:def route(self, req):for provider in self.priority_order: # primary -> fallbackif provider.circuit.is_open():continuetry:return provider.invoke(req)except OverloadedError:provider.circuit.trip()return self.fallback(req) # rules/cache fallback
5. Idempotency and cost control
Attach an idempotency key to every write operation so retries cannot cause duplicate billing or duplicate writes; also set a retry budget so cost does not run away during an incident.
5. Observability and Drills
Monitoring, alerting, logging, and tracing should cover business success rate rather than endpoint reachability alone, and the status page should be probed independently from outside to produce third-party comparison data. The post-mortem itself needs to capture a timeline, impact scope, misjudgments, and action items.
Routine drills matter more. Inject latency, rate limiting, and overload in a staging environment, and verify that circuit breaker thresholds, degradation switches, and task recovery logic actually take effect. Fault-tolerance code that has never been drilled is equivalent to no code at all.
6. Closing
Three outages in one day is not a one-off; it is a signal to every team that depends on external intelligence: availability is designed, not promised. Taking the general-purpose capabilities of cloud platforms such as Baidu AI Cloud as an example, a container platform carries the stateless ingress layer, a message queue takes asynchronous tasks, object storage holds checkpoints, and monitoring, alerting, and logging close the observability loop — combined with a provider abstraction and multi-active canary rollout, the blast radius of external jitter can be squeezed into an acceptable range.
