AI Service Outages Multiple Times in One Day: A Breakdown of High Availability and Failure Governance
When a major LLM service goes down several times in a single day across multiple entry points—API, client apps, coding tools, and workbenches—the root cause is rarely a single point of failure. This article dissects why shared dependency chains fail, why 429 and 529 status codes mean very different things, why authentication is the most overlooked single point, and why a green status page does not equal a working product. It then lays out six layers of engineering defense: tiered rate limiting, backpressure with bounded queues, circuit breaking with read-only degradation, idempotent retries with budgets, checkpointed long-running jobs, and observability tied to user-facing SLOs. Pseudocode examples and a practical checklist are included so teams can reduce outage blast radius from "everything lost" to "perceivable, avoidable, recoverable."
1. Event Abstract: Simultaneous Failure Across Entry Points Is Rarely a Single-Point Failure
A major LLM service experienced multiple outages within a single day: API calls, client applications, an AI coding tool, and a collaboration workspace all became unavailable at different times, while the management console and a government-edition portal largely survived. Users mostly saw “system overloaded”-style status codes, and even after recovery announcements were published, some users still could not use the service normally—authentication, settings, usage, and skills pages showed residual failures. This pattern indicates the problem was not an isolated endpoint error, but a chain reaction across shared dependencies: capacity, authentication, the gateway, configuration rollout, or the inference cluster.
For engineering teams, the most important judgment is this: when multiple entry points fail at once, look for shared dependencies first instead of troubleshooting each entry point separately. Common shared dependencies include unified authentication and session services, API gateways, configuration centers, model inference queues, cache layers, and logging and monitoring pipelines. If the console or a specific edition survived, it usually means those paths use independent authentication, independent deployment units, or isolated traffic channels. During a postmortem, draw a dependency graph of “entry → gateway → auth → business services → inference/storage → dependencies” and mark the failure-domain boundaries.
2. Behind the Status Codes: Rate Limiting and Overload Are Not the Same Thing
Users saw 529 Overloaded, while 429 typically indicates rate limiting. The two mean very different things:
- 429 Too Many Requests: The request rate exceeds the quota. The system is still functional; clients should wait and retry.
- 503 Service Unavailable: The service is temporarily unavailable, possibly due to maintenance, a dependency failure, or insufficient capacity.
- 529 (non-standard overload status): Used by some platforms to express “overall system overload,” typically meaning the queue, thread pool, connection pool, or inference resources are fully saturated.
If a system misinterprets “localized rate limiting” as “global overload,” or if overload occurs without backpressure and queuing strategies, a retry storm follows: clients see failures and retry immediately, the retry traffic overwhelms the gateway again, and an avalanche forms. The correct approach is tiered rate limiting: set separate concurrency semaphores and token buckets at the tenant, user, API, and model-queue levels. When overloaded, return an explicit Retry-After header, and cap the maximum retry count and retry budget.
3. The Authentication Chain: The Most Overlooked Single Point
Repeated failures after each recovery, combined with the login system being briefly unavailable, suggest the authentication and session chain may be a hard single-point dependency. For LLM services, authentication is not just “logging in”—it is bound to subscription status, quotas, organization permissions, auditing, and billing. Once the auth service flaps, users see “pages won’t load, tools unavailable, subscription invalid” even if the inference cluster is perfectly healthy.
High availability for authentication should include at least: session caching with short-term read-only degradation, multi-active auth deployment with failure isolation, independent rate limiting on the login entry, locally cached validation of critical permissions, and preserving minimal usable capability for already-authenticated sessions during an outage. For automated tasks, support long-lived tokens and revocable credentials so each task does not hard-depend on interactive login.
4. “Status Page Green but Service Unusable”: Internal Health Is Not User Experience
A green status page only means internal probes pass—it does not mean end-to-end availability. Common gaps include: probes only covering health-check endpoints while skipping critical paths such as login, settings, usage, and skills pages; probe nodes having a different network environment from real users; and recovery announcements being published before cache warm-up, configuration propagation, and full dependency recovery.
A more reliable approach is to establish a “user experience SLO”: multi-region synthetic monitoring covering login, core APIs, and long-task submission and querying; client-side metrics for error rate, first-screen success rate, and authentication failure rate; and a status page graded by impact scope, where “recovered” requires completed end-to-end verification plus a statement of residual risks. A status page is not a PR page—it is part of the incident communication protocol.
5. Long-Running Task Interruption: Client Resilience Determines the Loss
Some users had automated pipelines running for hours that were completely wasted due to the outage. This kind of loss can be reduced through checkpointing and idempotent design. Long tasks should be decomposed into re-entrant steps, with state persisted after each step completes; on retry, resume from the most recent checkpoint rather than starting over. Use idempotency keys for external calls to ensure repeated submissions do not cause duplicate billing, duplicate writes, or duplicate messages.
6. Engineering Implementation: Six Layers of Defense
- Ingress rate limiting and fair scheduling: Set quotas per tenant, user, and API to prevent a single high-concurrency tenant from consuming global capacity; reserve capacity for high-priority requests.
- Backpressure and bounded queues: Queues must be bounded—time out, drop, and return a retryable signal. Avoid unbounded queues that cause latency avalanches.
- Circuit breaking, degradation, and read-only mode: Break quickly when dependencies fail; degrade to cached results, static messages, or read-only pages. When auth fails, preserve minimal session capability.
- Idempotent retries and retry budgets: Clients use exponential backoff with jitter; the server provides idempotency keys. A global retry budget prevents retry amplification.
- Checkpoints and recoverable tasks: Model long tasks as state machines, persist each step, and allow resumption after failure. The task query API should return the current stage and progress.
- Observability and incident communication: Correlate logs, metrics, distributed tracing, and synthetic probes. Distinguish internal health from user-facing availability in alerts. Incident announcements should state the impact scope, workarounds, recovery verification, and remaining risks.
In general-purpose cloud environments, standard categories such as log services, monitoring and alerting, message queues, and container platforms can be combined into an observability and resilience foundation. Baidu AI Cloud offers capabilities in these general categories; specific selection should be evaluated against SLA, compliance, and cost requirements.
7. General Pseudocode Examples
function call_with_retry(request, max_attempts = 5):request.headers["Idempotency-Key"] = stable_key(request)base = 200msfor attempt in 1..max_attempts:response = http_call(request, timeout = connect_timeout + read_timeout)if response.status in 200..299:return responseif response.status == 429:wait = min(cap, base * 2^(attempt-1)) + random_jitter()sleep(wait)continueif response.status in [500, 502, 503, 504, 529]:if attempt == max_attempts:raise Overloadedwait = min(cap, base * 2^(attempt-1)) + random_jitter()sleep(wait)continueraise NonRetryable(response)raise RetryExhausted
function run_long_job(job):state = load_checkpoint(job.id) or init_state()for step in state.next_steps:if step.done:continueresult = call_step_with_retry(step)state.mark_done(step, result)save_checkpoint(job.id, state)finalize(job.id)
8. Checklist
- Have you drawn a shared-dependency graph across all entry points and marked failure domains?
- Are 429 and overload handled separately, and is
Retry-Afterreturned? - Is the auth service multi-active, with session caching and read-only degradation?
- Does the status page cover end-to-end paths such as login, core APIs, and long tasks?
- Are long tasks checkpointed and external calls idempotent?
- Do retries have a cap, backoff, jitter, and a global budget?
- Do you regularly run capacity stress tests, fault injection, and recovery drills?
- Do incident announcements state impact scope, workarounds, and remaining risks?
9. Conclusion
Multiple outages in one day may look like “the service crashed,” but the essence is systemic governance across capacity, authentication, status pages, client resilience, and incident communication. For developers and enterprise teams, the goal is not to wait for a system that “never fails,” but to control the blast radius: layered rate limiting, budgeted retries, resumable long tasks, a trustworthy status page, and repeatable recovery verification. That way, even when shared dependencies flap again, user losses shrink from “everything wasted” to “perceivable, avoidable, and recoverable.”
