LLM Service Outage Post-Mortem: Error Semantics, Fault Tolerance, and Observability Design
When an LLM platform fails three times in a single day, the signal is systemic rather than incidental. This post-mortem dissects a multi-hour overload incident and extracts lessons for teams building on third-party model APIs: why HTTP 529 Overloaded must be handled differently from 429 Too Many Requests, why provider status pages diverge from your own success rate, which classes of residual failures cause recovery flapping, and how to harden clients, long-running pipelines, and architectures with checkpoints, circuit breakers, multi-provider routing, and business-aware health probes. A practical fault-tolerance checklist and observability metric set are included.
1. What Three Red Lights in One Day Actually Tell You
An LLM service platform lit its failure indicator three separate times within a single business day. The operator posted three recovery notices, yet each time the status page flipped back to green, the community filled with reports of requests that still could not connect. Before the month was even over, the platform had accumulated more than ten incident days — meaning over half the dates on the calendar carried some mark of disruption. One user described an automated pipeline that had been running for nine hours being cut off entirely inside the outage window, with all intermediate artifacts rendered useless.
Treating events like these as “bad luck” is both the easiest and the most dangerous reading. Three signals are worth extracting instead: the failures were repetitive rather than isolated; there was a systematic gap between recovery declarations and what users actually experienced; and long-running tasks have a tolerance for short jitter that is effectively zero. The layers below break each of these down.
2. Error Semantics: 529 Is Not 429
The core error surfaced to users during the outage was 529 Overloaded. It is fundamentally different from the 429 that developers know well:
429 Too Many Requestsis a quota- and rate-level rejection. Its meaning is “you are arriving too fast,” and backoff retries typically recover it within seconds.529 Overloadedsignals that overall server capacity is exhausted. Its meaning is “the whole kitchen is on fire,” and retries usually only worsen congestion.- Within 5xx,
500/502/503/504correspond to internal error, gateway error, service unavailable, and timeout respectively — each pointing at a different line of investigation.
According to the status page timeline, the overload ran from 12:50 to 15:36 Beijing time, close to three hours. Roughly 21 minutes after the alert fired, the operator claimed the root cause had been located, but disclosed no technical detail and gave no recovery time. The blast radius covered multiple model versions, the web app, the API, the AI coding tool, and collaborative work features; only the console and services for specific compliance scenarios were untouched. That points to the fault sitting in the shared ingress and scheduling layer rather than in any single model’s weights.
The engineering implication is straightforward: your client must distinguish “rate limiting that can be retried” from “overload that must not be blindly retried.” The following is an illustrative classification and handling pattern:
import random, timeRETRYABLE = {429, 500, 502, 503, 504}OVERLOAD = {529}def call_with_backoff(fn, max_attempts=5, base=0.5, cap=30.0):for attempt in range(max_attempts):try:return fn()except ApiError as e:if e.status in OVERLOAD:# Overload: exponential backoff + jitter; trip the breaker# if needed to avoid a retry stormif attempt == max_attempts - 1:raisesleep = min(cap, base * (2 ** attempt)) * (0.5 + random.random())time.sleep(sleep)elif e.status in RETRYABLE:time.sleep(min(cap, base * (2 ** attempt)))else:raise # Do not retry business errors such as other 4xx
3. Why Recovery Itself Keeps Flapping: Three Classes of Residual Failure
The harder problem was the jitter inside recovery itself. Model-side errors persisted for nearly three hours before subsiding; shortly after midnight, the authentication system failed again for about six minutes; at 4 a.m. there was another eight-minute break. A monitoring account watching nothing but login availability posted a single word at 4:11 — “Yes” — accurate and entirely without feeling.
This “green, then red again” pattern usually comes from three kinds of residual problems:
- Inconsistency in the auth and token layer. The control plane has recovered, but session issuance or token validation still fails. It shows up as “the landing page opens but I cannot get into the workspace.”
- Inconsistency in frontend and static asset caches. Edge nodes are holding an error page or partial assets, and users only recover after a hard refresh or switching networks.
- Inconsistency in how status is aggregated. Status pages are often computed from “core endpoint success rate,” while long-tail paths such as the settings page, usage page, and skills configuration page fall outside that judgment. So the operator shows green while some users are still seeing errors.
The conclusion: a status page reports availability from the vendor’s point of view, not from your business’s point of view. The two must be measured separately.
4. A Fault-Tolerance Checklist for Developers
4.1 Client Side
- End-to-end timeout budget. Set an overall deadline per call and propagate the remaining budget downstream, so a retry never ends up slower than the original call.
- Circuit breaker and rate limiting. Open the breaker once consecutive failures cross a threshold, then probe with small traffic in the half-open state, so the service is not flattened at the moment it recovers.
- Request deduplication and idempotency keys. Carry an idempotency identifier on every write so retries produce no duplicate side effects.
- Fallback paths. Switch to a backup model or a rule-based fallback answer when the primary model is unavailable, and tell users clearly that they are in degraded mode.
4.2 Long-Running Tasks
A nine-hour pipeline producing nothing is, at its core, a missing-checkpoint problem. Break long tasks into resumable stages and persist each stage’s output to disk:
def run_stage(name, payload, store):key = f"stage:{name}:{payload.id}"if store.exists(key):return store.load(key) # resume from checkpointresult = heavy_call(payload) # may failstore.save(key, result) # idempotent writereturn result
Pairing this with a message queue for peak shaving, object storage for intermediate artifacts, and a container platform hosting stateless retry units can turn a three-hour outage from a “disaster” into a “delay.”
4.3 Architecture Side
- Multi-provider and multi-region redundancy. Abstract a unified model-invocation gateway that hides per-vendor API differences and routes dynamically by health.
- Asynchronous, queue-based execution. Replace synchronous waiting with task submission plus callback or polling, which absorbs jitter naturally.
- Health probes close to real business flows. Probes should cover login, authentication, core reads and writes, and long-tail pages — not just a single health-check endpoint.
5. Observability: Turning “It Feels Down” Into Quantifiable Signals
Collect at least four categories of metrics: success rate broken down by error code (with 529 charted separately), p50/p95-style quantiles for time-to-first-byte and end-to-end latency, retry counts and breaker trip counts, and queue backlog together with the wait time of the oldest pending task. A logging service handles detail retention, while monitoring and alerting fire on multi-window, multi-condition combinations to avoid alert fatigue caused by single-point jitter. Also maintain a side-by-side dashboard of “vendor status vs. your own success rate” — the gap between the two is exactly the buffer capacity you need to build yourself.
6. Closing Thoughts
Three interruptions in a single day is not one vendor’s problem; it is a condition that every team depending on external intelligence will eventually face. Separating retry semantics, making long tasks resumable, and taking the right to measure availability back into your own hands is how you put uncertainty in a cage. If you build the buffering layer described above on general-purpose capabilities such as object storage, message queues, container platforms, and monitoring and alerting offered by Baidu AI Cloud, you can achieve more controllable continuity and smoother degradation without binding yourself to a single model service.
