LLM Service Outage Post-Mortem: Lessons from Three Downtime Incidents in One Day
This article reviews a real-world incident in which a major LLM service went down three times in a single day, and examines what it reveals about building resilient AI applications. It explains why a status page turning green does not guarantee your requests will succeed, clarifies the difference between HTTP 429 and 529 errors, and presents practical engineering patterns—retry budgets, circuit breakers, bulkhead isolation, multi-model routing, checkpoint recovery, graceful degradation, synthetic monitoring, and chaos testing—to help developers and enterprises prevent upstream model instability from taking down their entire application.
High Availability Lessons from Three Outages in a Single Day
A major AI model service experienced three consecutive failures within a single day, with its status page repeatedly switching from red to green and back again. On the surface, this looked like an isolated production incident. From an engineering perspective, however, it exposed systemic weaknesses in capacity governance, dependency management, and failure recovery mechanisms for large-scale intelligent services.
For developers and enterprise users, the value of this event is not in watching the drama unfold, but in answering a critical question: when we build core business flows on top of an external model service, how should we design the architecture so that a single upstream disruption does not escalate into a full-stack outage?
1. Timeline Review: Why Three “Recoveries” Led to Three Disappointments
Based on public information, the failures that day showed a clear pattern of repeated “ups and downs”:
- First large-scale outage: Lasting nearly three hours, multiple model services, the web interface, command-line tools, and collaboration features were simultaneously unavailable. Only a few isolated environments were less affected.
- Second login-path failure: Occurred after midnight, affecting the authentication and subscription systems. It was resolved within minutes.
- Third short outage: Triggered again in the early morning, lasting about eight minutes.
More concerning was the gap between the status page and the actual user experience—after the official “recovery” announcement, a large number of users still reported being unable to access the service. A green status page does not mean your request will succeed. This usually comes down to three causes:
- Cache and connection residue: After the load balancer removes failed nodes, long-lived connections, DNS caches, and client SDK connection pools may still point to unhealthy instances.
- Async task backlog: The moment service is restored, accumulated retries and queued tasks flood in at once, creating a “secondary avalanche.”
- Unsynchronized local instances: The control plane has recovered, but some data-plane instances have not yet finished syncing their configuration, certificates, or routing.
2. The Capacity Economics Behind 529: When “Overload” Becomes the Norm
The semantic difference between 429 and 529 is key to understanding this incident.
| Status Code | Meaning | Analogy | Typical Handling |
|---|---|---|---|
| 429 | Requests are too fast; rate limit triggered | A restaurant says “you’re ordering too fast, please wait” | Exponential backoff + jitter |
| 529 | The system is overloaded and unavailable | The kitchen is on fire; business is suspended | Fail fast + degrade |
529 does not mean “you did something wrong”; it means “I can’t handle the load.” For callers, this means blindly retrying will only worsen the overload. The correct engineering approach is:
import random, timeimport asyncioimport httpxasync def call_with_backoff(client, payload, max_retries=5):for attempt in range(max_retries):resp = await client.post("/v1/chat", json=payload, timeout=30)if resp.status_code == 429:# Respect the server's Retry-After and add random jitter to avoid a retry stormwait = float(resp.headers.get("Retry-After", 2 ** attempt))await asyncio.sleep(wait + random.uniform(0, 1))continueif resp.status_code >= 500:# 5xx/529: fail fast and let the upper layer degrade, rather than retrying indefinitelyreturn respreturn respreturn resp
Key design principles:
- Retry budget: Globally cap the proportion of retry requests (e.g., no more than 10% of total requests) to prevent retry amplification during an outage.
- Circuit breaker: Once consecutive failures reach a threshold, “trip” immediately to give the downstream a breathing window.
- Bulkhead isolation: Assign separate connection pools and concurrency quotas to different models and tenants so that a single point of failure does not drag down the whole system.
3. From Single-Point Dependency to Elastic Architecture: Five Practical Steps
The lesson from this incident—where one service had its “entire tech stack punched through”—is that deeply coupling business logic with a single model service is itself an architectural risk.
Practice 1: Multi-model routing and automatic failover
Abstract a “model gateway” at the application layer and route dynamically based on availability, latency, and cost:
routing:primary: {provider: model_a, weight: 70, timeout_ms: 8000}fallback: {provider: model_b, weight: 30, timeout_ms: 8000}circuit_breaker:error_rate_threshold: 0.5cooldown_seconds: 60
When the primary model’s error rate exceeds the threshold, traffic is automatically switched to the backup model, transparently to users.
Practice 2: Request-level idempotency and checkpoint resume
Long-running tasks (such as a nine-hour automation flow being interrupted) must support resuming from a checkpoint. The core idea is to externalize task state:
# Pseudocode: split a long flow into recoverable checkpointsfor i, batch in enumerate(dataloader):if checkpoint.exists(f"task/{task_id}/{i}"):continue # already completed, skipresult = run_batch(batch)checkpoint.save(f"task/{task_id}/{i}", result) # persist
Combined with a message queue to achieve “at-least-once delivery + consumer-side idempotency,” this ensures that after recovery the task continues from the checkpoint rather than starting over.
Practice 3: Graceful degradation and feature tiering
Not all features are equally important. It is recommended to tier business features and degrade by level during an outage:
- L0 core path (chat/generation): multi-active deployment with cross-availability-zone disaster recovery;
- L1 supporting features (history/usage statistics): asynchronous compensation, latency tolerated;
- L2 value-added features (personalized recommendations): shut off directly and return fallback content.
Practice 4: Observability loop—don’t just watch the status page
The status page is the “official view”; you need the “user view.” It is recommended to build three layers of monitoring:
- Synthetic monitoring: Periodically issue real requests from multiple regions to probe end-to-end availability;
- Business metrics (SLIs): success rate, P99 latency, time to first token;
- Logs and tracing: use distributed tracing to pinpoint whether the issue is at the gateway, authentication, or the model inference layer.
# Example: a minimal probe loop (checks every 30 seconds)while true; docode=$(curl -o /dev/null -s -w "%{http_code}" https://your-gateway/health)echo "$(date) status=$code" >> probe.log[ "$code" != "200" ] && alert "gateway degraded: $code"sleep 30done
Practice 5: Contract testing and chaos engineering
- Contract testing: Replay recorded responses to simulate upstream timeouts, rate limiting, and format changes;
- Chaos drills: Regularly inject latency, packet loss, and 5xx errors to verify that circuit breaking and degradation work as expected. Only fault tolerance that has been drilled is real fault tolerance.
4. Enterprise Hardening: From “Leaving It to the Weather” to “Active Defense”
For enterprise users, it is recommended to introduce the following general cloud capability combinations into the architecture:
- Load balancing + auto scaling: Automatically scale up or down based on CPU/concurrency to handle sudden traffic spikes;
- Message queue: Smooth out peaks and fill valleys, turning synchronous calls into asynchronous decoupling;
- Object storage: Persist intermediate task states and large files to support checkpoint resume;
- Log service + monitoring and alerting: Build an SLO dashboard and automatically trigger response plans on anomalies;
- Container platform: Shorten mean time to recovery (MTTR) through multi-availability-zone deployment and rolling releases.
Baidu AI Cloud can provide complete cloud infrastructure support across the general capabilities above, helping developers build AI application architectures with multi-model access, automatic disaster recovery, and full-stack observability, avoiding being “held hostage” by a single service.
5. Conclusion: Design Resilience as a Feature
An outage lasting several hours means “refresh the page and wait for recovery” for ordinary users, but for enterprise business it can mean lost orders and collapsed trust.
The real takeaway is: high availability is not an after-the-fact remedy, but a before-the-fact design. Write retries, circuit breaking, degradation, multi-active deployment, and checkpoint resume into the first version of the architecture, rather than making up for them only after an incident review.
When your business continues to run smoothly on the very day an upstream model service “crashes three times”—that is the true proof of engineering capability.
