LLM Service Outage Postmortem: Fault-Tolerant Design for Overload and Dependency Failures

    This article reviews a large model service outage that occurred three times in a single day and analyzes why the impact spread across every product built on it. It explains the difference between rate limiting (429) and overload (529/503), why a green status page does not mean your account is usable, and the separate risks of the login and authentication path. It closes with a practical fault-tolerance checklist covering tiered degradation, rate limiting with queues, circuit breaking with adaptive backoff, idempotent checkpointed tasks, and a model abstraction layer, plus observability and failure drills.

    1. The Incident: When an External AI Capability Becomes a Single Point of Dependency

    A large model service platform went down three times within a single business day. The official status page flipped from red to green three times, yet a large share of users still could not use the service. It was already the thirteenth day that month with a recorded incident. During the outages, the main model invocation APIs, the web app, the subscription-based coding assistant, and the collaboration modules all alerted at the same time; only a few strongly isolated console-type entry points stayed available. Multiple users reported that long-running automated tasks were cut off at the interruption point, and all prior work was lost.

    From an engineering perspective, this was not an isolated case of “service jitter.” It was a structural risk exposed after the business bound a critical path to a single external AI capability. Every third-party service has an availability ceiling. What actually needs to be designed is not “never failing,” but “how the business keeps running when a failure happens.”

    2. Rate Limiting Is Not Overload

    The typical error users saw during the outage was an overload error (commonly represented as 529), which is fundamentally different from the familiar rate-limiting error (429):

    • Rate limiting (429): the service is still healthy and is only rejecting requests that arrive “too fast.” This is protective feedback, and backoff retries usually work.
    • Overload (529/503 family): the service’s own capacity has been exhausted, so retrying only makes congestion worse. This is a signal of systemic failure.

    Illustrative classification logic:

    1. def classify(err):
    2. if err.status == 429: # rate limited: safe to back off and retry
    3. return "backoff_retry"
    4. if err.status in (529, 503): # overloaded: open the breaker, then degrade
    5. return "circuit_break_degrade"
    6. return "failover_or_raise"

    Treating the two error types as the same thing is a common root cause of “the more we retry, the less the service responds” during an incident.

    3. Why the Blast Radius Was So Large: Cascading Failure in a Shared Stack

    A single failure in the underlying model service propagated along the shared dependency chain to every layer above it: model families, the web app, API calls, the coding assistant, and the collaboration modules were all impaired at once. This shows they share the same inference and scheduling foundation and lack fault-domain isolation.

    The architectural takeaway is direct: assume shared dependencies will fail together. Divide fault domains by business criticality, and reserve dedicated quota, a dedicated path, or a switchable backup capability for critical paths, so that one failure point cannot take down everything.

    4. A Green Status Page Does Not Mean Your Account Works

    The incident repeatedly showed a gap between “the vendor announced recovery” and “users were still getting errors.” The reasons are usually three:

    1. Recovery is staged: the control plane comes back first, while the data plane and login authentication are still ramping up.
    2. Caches and connections are not invalidated: clients and gateways still hold stale failure state or long-lived connections.
    3. Recovery is uneven across regions and tenants: different regions and tenants recover on different schedules.

    Availability should therefore be judged by end-to-end probes on your own path, not by the upstream status page alone.

    5. The Separate Risk in the Login and Authentication Path

    In the later stage of the incident, the login and subscription validation path went down twice more, briefly each time. Authentication is a hard dependency: once it is unavailable, the business is completely unusable even if the inference service is healthy. Engineering-wise, authentication results should have a short-lived cache and a grace window, along with a read-only degraded mode, so that critical tasks with established sessions can keep running through authentication jitter.

    6. A Practical Fault-Tolerance Checklist

    1. Tiered degradation: define core and non-core features, and shed non-core ones first under overload to protect the main path.
    2. Rate limiting plus queues: limit traffic at the entry point to protect downstream services, use asynchronous queues to smooth peaks, and add priority scheduling.
    3. Circuit breaking and adaptive backoff: open the circuit immediately on overload errors, and use exponential backoff with jitter to avoid a retry storm.
    4. Idempotency and resume from checkpoint: split long tasks into recoverable steps and record checkpoints, so nine hours of work is not wasted.
    5. Capability abstraction layer: hide differences between models and providers behind a unified interface so switching is fast.
    1. # Capability abstraction layer: callers are unaware of the specific backend
    2. class ModelClient:
    3. def call(self, prompt, task):
    4. for backend in self.backends: # primary -> fallback
    5. try:
    6. return backend.invoke(prompt, task)
    7. except OverloadError:
    8. self.breaker.open(backend) # open the breaker on overload
    9. continue
    10. return self.degraded(task) # degrade if all backends fail

    7. Observability and Routine Drills

    • End-to-end probes: test availability with real business actions, not just port liveness.
    • Key metrics: success rate, time to first token, share of overload errors, number of degradation triggers.
    • Failure drills: regularly inject overload and authentication failures to verify that degradation and failover actually work.

    8. Conclusion

    The stability of an external AI capability is out of your control, but business continuity is not. Treat overload as a system signal rather than occasional noise, and build buffers with fault-domain isolation, tiered degradation, idempotent resume, and a capability abstraction layer. That is what lets the business keep serving customers while the upstream kitchen is on fire. For teams that want to balance reliability with compliance, falling back on a cloud architecture with complete monitoring and alerting, logging services, and containerized elasticity (such as the general cloud product capabilities offered by Baidu AI Cloud) is a pragmatic way to improve overall resilience.