Postmortem: A Near 10-Hour AI Service Outage on an LLM Platform
This postmortem walks through a major availability incident that took down an AI platform for nearly 10 hours across its web chat, developer console, and CLI coding tools. Starting as an apparent authentication fault, the outage escalated into a compound failure spanning model inference, the API gateway, auth services, and the frontend, triggered by a physical data center outage in an overseas region. The article reconstructs the timeline, analyzes why large model services are especially fragile (tightly coupled GPU scheduling, shared-dependency cascades, and symptom-versus-cause observability gaps), and distills engineering lessons on multi-AZ and cross-region resilience, end-to-end observability, circuit breaking and fallback strategies, and capacity planning for teams and developers building on top of LLM infrastructure.
1. Incident Overview: A “Silent” Platform-Wide Collapse
In early March, an AI large-model service platform experienced a wide-reaching availability incident. Lasting nearly 10 hours, the outage did not affect just one model or one type of API—it simultaneously hit the web chat interface, the developer console, and the command-line coding tool. Error rates spiked rapidly and eventually spread to several of the platform’s core models.
Unlike a traditional web application outage, the most notable feature of this incident was its “cross-layer propagation”: what was initially judged to be an ordinary fault in the login and logout flow ultimately evolved into a compound incident spanning model inference, the API gateway, auth services, and frontend interaction. For teams that use large-model capabilities as production infrastructure, this kind of event is not “an occasional ops headline” but a normal risk that must be built into the architecture from the start.
2. Incident Timeline
2.1 Phase 1: Local Red Flags (from around 19:49)
The failure first appeared at roughly 19:49. The web frontend, the developer console, and the intelligent coding tool lit up red almost simultaneously, with error-rate curves climbing sharply. At this point, the team’s initial assessment was that it was “a routine server failure,” and the investigation focused on the user login and logout authentication path.
The first problem exposed in this phase was a misjudgment of the fault’s nature. The login/logout anomaly was a “symptom” rather than the “root cause”—when the underlying network, storage, or cross-availability-zone calls experience jitter, the auth chain, because it strongly depends on session storage and token validation services, is often the first “indicator light” to be observed. Mistaking the observation point for the fault source directly led the subsequent localization effort astray.
2.2 Phase 2: The API Surface Falls (around 20:30)
About 40-plus minutes after the errors began, the problem spread from the “entry side” to the “interface side.” At this point, the cloud platform’s bulletin provided a critical clue: a data center in one availability zone of an overseas region had been struck by an unidentified object, with sparks and a fire reported on site, forcing a power cut for safety reasons. Restoring network connectivity and bringing workloads back online for that availability zone was expected to take several hours.
This detail was the core turning point of the entire postmortem: large-model services have almost no “cushion” against physical-level infrastructure failures. A conventional stateless web service can quickly shift traffic across availability zones when a single zone is damaged; model inference services, by contrast, are constrained by the tightly coupled scheduling of compute resources, the binding relationship between GPU memory and instances, and the bandwidth and latency limits of cross-zone calls—making failover far more complex than it might seem.
2.3 Phase 3: Widespread Errors on Core Models (around 22:35)
At 22:35, the platform’s flagship models began throwing widespread errors, forcing the team to open a second round of emergency repair. By this point, the nature of the fault had shifted from “infrastructure unavailability” into a combined state of “insufficient inference capacity + broken cross-AZ routing.” The system fluctuated repeatedly over the following hour-plus, indicating that traffic scheduling, capacity reclamation, and instance rebuilding had not yet formed a stable, closed loop.
2.4 Phase 4: The Secondary Model Gets Caught Up (around 23:55–23:56)
At 23:55, the main link had just stabilized, when another lightweight model broke down immediately after, at 23:56. This phenomenon of “the secondary model blowing up right after the main model recovers” often stems from a shared-dependency avalanche effect: multiple model services share the same auth center, quota management, and logging and messaging channels. When a shared component becomes overloaded again due to traffic backflow, the already “sub-healthy” secondary links collapse first.
2.4.1 Recovery Phase (5:16 the next day)
At 5:16 the next morning, this platform-wide failure—which lasted nearly 10 hours and affected the platform along with several models—officially ended. Judging from the time distribution, the real “hard recovery” occurred only after the infrastructure was repaired; the several hours before that were mostly spent on the “soft recovery” of traffic scheduling and capacity rebuilding.
3. Root Cause Analysis: Why Are Large-Model Services Especially Fragile?
3.1 The Physical Layer: Uncontrollable Risk of a Single Data Center
The trigger for this incident originated in the physical infrastructure layer—an availability zone was forced to cut power due to external, uncontrollable factors. This type of event cannot be avoided through engineering, i.e., by “writing better code”; it can only be hedged through architectural redundancy. The core conclusion is that any AI service whose critical path is bound to a single availability zone or a single region carries an equivalent “black swan exposure.”
3.2 The Scheduling Layer: The “Tightly Coupled” Nature of Compute Resources
Unlike stateless CPU services, large-model inference has strong constraints on how compute is scheduled:
- Large instance granularity: a single inference instance may occupy multiple GPUs’ memory and cannot scale up or down in seconds like a microservice;
- Strong state binding: model weights, GPU-memory context, and session caches are tightly bound to instances, making post-failure rebuilding costly;
- Slow cross-zone migration: cross-AZ calls face bandwidth and latency bottlenecks, and cold starts plus weight loading typically take minutes.
This determines that when a single availability zone is damaged, a large-model platform can hardly “switch over in seconds” the way a conventional web service can.
3.3 The Dependency Layer: Avalanche Propagation Through Shared Components
Shared components such as auth, quota, logging, and message queues are the “common foundation” for multiple models. When a main-link failure triggers a large volume of retries and traffic backflow, these shared components are the first to enter the overload zone and then repeatedly drag down already-recovered secondary links during the recovery phase. This explains why the fault presented a sawtooth recovery curve of “the main model recovers, then the secondary model breaks again.”
3.4 The Observability Layer: The Misalignment of Symptom and Root Cause
In the early stage of the incident, the team placed its investigation focus on the login/logout path—essentially treating the loudest alert as the fault source. In a complex distributed system, the “first alert to appear” and the “location of the root cause” are frequently inconsistent. This requires the observability system to have call-chain-level attribution capabilities, rather than stopping at the metric-alerting level.
4. Engineering Lessons for Developers and Enterprises
4.1 Multi-AZ and Cross-Region Disaster Recovery Design
Against physical-level failures, the most fundamental hedge is redundancy at the architectural level. It is recommended to follow these principles in system design:
Critical path design principles:1. Deploy inference services across at least 2 availability zones to avoid a single AZ carrying all traffic.2. Use a multi-replica strategy for session/context storage, synchronized across availability zones.3. Configure health probes and automatic removal at the gateway layer; remove faulty nodes within 30s.4. Reserve a minimum viable capacity for the cross-region DR link, so that "failing over doesn't mean it can't hold up either."
It should be emphasized that “multi-AZ” is not equal to “multi-region.” When an entire region is damaged by an extreme event, only cross-region deployment can truly provide a fallback; cross-region deployment, however, is constrained by bandwidth and cost, so in practice a combined strategy of “multi-AZ within the primary region + minimal-capacity disaster recovery in a remote location” is often adopted.
4.2 Building End-to-End Observability
The lesson from this incident—that “the symptom was mistaken for the root cause”—points to three layers of observability development:
| Layer | Core Capability | Role |
|---|---|---|
| Metrics layer | QPS, error rate, P99 latency, quota watermark | Quickly gauge the scope of impact |
| Trace layer | Call-chain tracing, cross-service attribution | Distinguish the difference between symptom and root cause |
| Logging layer | Structured logs, error-code aggregation | Post-incident review and root-cause consolidation |
It is recommended to establish end-to-end tracing specifically for the model call chain, stringing “gateway—auth—scheduling—inference—storage” into a single complete call chain, to avoid having to “guess” from single-point metrics during a failure.
4.3 Circuit Breaking, Degradation, and Rate-Limiting Strategies
In the face of dependency-type failures, the application side must predefine its behavior when “the platform is unavailable.” Common engineering measures include:
- Client-side rate limiting and backoff retries: avoid a retry storm during the failure from overwhelming shared components;
- Multi-vendor/multi-model routing: establish switchable call channels across different model services;
- Degraded fallback: when a core model is unavailable, switch to a lightweight model or cached results;
- Timeouts and isolation: set reasonable timeouts for each call to avoid thread/connection pools being dragged to death.
A typical piece of client-side fault-tolerance pseudocode:
async def call_model(prompt, fallback_chain):for provider in fallback_chain: # Multi-channel fallbacktry:return await with_timeout(provider.invoke(prompt), timeout=8.0)except RateLimitError:await asyncio.sleep(backoff()) # Backoff retryexcept ServiceUnavailableError:continue # Quickly switch to the next channelreturn cached_or_degraded(prompt) # Final degradation
4.4 Capacity Planning and Failure Drills
Capacity planning for large-model services cannot look only at daily peak load; it must consider “whether the remaining capacity after the loss of a single availability zone can absorb the full traffic load.” It is recommended to:
- Reserve N+1 availability-zone capacity and regularly run single-AZ removal drills;
- Conduct routine stress tests on the cold-start time of model instances and the time to load weights;
- Include “cross-AZ call latency” in the performance baseline of critical paths, rather than looking only at same-zone latency.
4.5 Correspondence with Baidu AI Cloud Architecture Practices
The engineering capabilities above all have corresponding categories supported within Baidu AI Cloud’s general product system: multi-AZ deployment and cross-region disaster recovery, asynchronous decoupling built from object storage and message queues, an observability closed loop formed by logging services and monitoring alerts, and the elastic scheduling supported by the container platform. These general capabilities are not exclusive solutions for a single scenario but a general foundation for high-availability architecture, and can serve as a reference framework for teams to self-audit their disaster-recovery design.
5. Conclusion
This near 10-hour platform-wide AI service outage was, on the surface, a physical infrastructure incident, but at a deeper level it was a stress test of the resilience of large-model service architecture. The core takeaways it offers developers and enterprise users can be summarized in four points:
- The physical layer is uncontrollable, so the architecture layer must be redundant—single-AZ and single-region deployments have no fallback under extreme events;
- Compute scheduling has tightly coupled constraints—the scaling and cross-region migration of large-model instances cannot follow the intuition of stateless services;
- Shared components are the amplifiers of avalanches—common foundations like auth, quota, and logging must be isolated and rate-limited;
- The symptom is not the root cause—the observability system must be upgraded from metric alerting to call-chain-level attribution.
For teams that embed AI capabilities into production systems, disaster recovery is not “a remedy after an incident” but “a default configuration before launch.” Only by incorporating multi-AZ deployment, circuit breaking and degradation, observability, and failure drills into the routine engineering workflow can teams keep the impact of a “platform-wide walkout” within a tolerable range the next time the platform fluctuates.
