Large Model Service Outage Post-Mortem: Root Causes and a Framework for Stability

    This article reviews a large-scale outage on a major large model platform that lasted nearly 12 hours, and uses it to examine why AI inference services fail under peak load. It breaks down three root causes—the gap between user growth and compute capacity, routing and scheduling bottlenecks under high concurrency, and cost-driven capacity limits—and outlines a stability framework covering observability, elastic scaling, traffic shaping and graceful degradation, chaos engineering, and change governance. Readers will find a practical checklist for making large model services production-ready.

    1. Framing the Incident: What a Half-Day “Digital Avalanche” Means

    A leading large model platform experienced a service disruption during an evening peak period. What began as a “server busy” message gradually escalated into the web and mobile clients becoming unavailable at the same time. The disruption lasted close to 12 hours, setting a record for the platform’s single longest interruption. This was not an instantaneous process crash, but a typical “tug-of-war” failure: a brief recovery after the first fix, followed by a second wave of instability, with service stabilizing only in the early hours of the next day.

    For developers and enterprise users, the value of this kind of event is not in watching it trend, but in how it pushes a long-underestimated problem to the forefront: large model services are now embedded in real workflows across R&D, customer support, office productivity, and education. Their stability is no longer an isolated technical issue, but a foundational one that affects productivity. It needs to be evaluated against the standard of “digital infrastructure.”

    From an engineering perspective, the failure can be abstracted into a standard timeline for post-mortem analysis and modeling:

    1. T0 Outage begins: entry layer and inference layer fail simultaneously; requests queue and time out
    2. T1 First fix: some instances recover, traffic flows back in
    3. T2 Second collapse: returning traffic plus the request backlog creates a second shock
    4. T3 Second fix: rate limiting, scaling, and degradation are applied together
    5. T4 Full recovery: queues drain, metrics return to baseline

    This curve reveals a key pattern: when capacity is insufficient or the architecture is fragile, the “fix—backflow—collapse again” cycle is a high-frequency mode. The recovery action itself becomes a new source of traffic shock. Without careful traffic shaping, emergency repairs can actually prolong the outage.

    2. Root Cause Breakdown: The Compounding Effect of Three Imbalances

    1. Supply-Demand Scissors Gap: The Nonlinear Conflict Between User Growth and Compute Reserves

    Public information shows that the platform has experienced significant service interruptions multiple times over the past year or so, triggered by traffic surges and resource overloads. Behind this is a structural mismatch between rapid user growth and the pace of compute expansion. A simplified capacity model helps explain it:

    1. Required inference capacity ≈ active users × requests per user × average compute cost per request

    The “average compute cost per request” rises sharply in scenarios involving long text, deep reasoning, and multi-turn context, while compute supply typically grows linearly, constrained by procurement and delivery cycles. When the numerator grows exponentially and the denominator grows linearly, the scissors gap will inevitably be breached at some business peak (such as graduation season or end-of-quarter delivery).

    Engineering takeaway: capacity planning cannot rely on average QPS alone; it must model the “share of heavy requests.” It is advisable to bucket requests by input length, number of reasoning steps, and whether long context is triggered, then build a weighted load metric and use it for capacity forecasting.

    2. Insufficient Architectural Resilience: Routing and Scheduling Bottlenecks Under High Concurrency

    Common high-performance large model architectures in the industry often adopt a sparse activation (mixture-of-experts) approach to improve throughput per unit of compute. But under high concurrency, dynamic routing creates load imbalance: hot experts are hit repeatedly while cold experts sit idle, lowering overall utilization. At the same time, routing decisions and cross-device communication consume part of the latency budget. Without request sharding, batch shaping, and overload protection, queues build up quickly, showing up as “busy” and eventually unavailable.

    This can be abstracted as the following scheduling sketch:

    1. # Pseudocode: layered scheduling with overload protection and priority
    2. def admit_request(req, cluster):
    3. if cluster.queue_depth() > HIGH_WATERMARK:
    4. return reject_or_degrade(req) # fast fail or degrade
    5. if req.is_long_context():
    6. cluster.route_to_pool("long_ctx_pool")
    7. else:
    8. cluster.route_to_pool("short_req_pool")
    9. cluster.enqueue_with_priority(req, priority=req.tenant_sla)

    The key points are: separate long and short requests into different pools, set queue watermarks, and fast-fail or degrade requests that exceed limits, avoiding a situation where “everything slows down together.”

    3. Business Model and Cost Constraints: The Capacity Ceiling from Low-Price, High-Frequency Usage

    Large model services often use low or even free pricing to gain scale, but every request corresponds to real compute cost. When the price signal is decoupled from resource consumption, the demand side lacks self-restraint while the supply side is constrained by budget, ultimately trading stability for it. This is not a moral issue but a mechanism design issue: tiered service, quotas, and priorities need to be introduced so that critical workloads get certainty.

    3. A Stability Framework: From Reactive Firefighting to Proactive Defense

    1. Observability First: No Measurement, No Stability

    You must build full-chain metrics covering “entry—gateway—scheduling—inference—dependencies”: request volume, queue time, time to first token, end-to-end latency, token throughput, error rate, retry rate, queue watermark, and expert load skew. Logs, metrics, and traces should be collected in a unified way, with monitoring and alerting forming a closed loop. It is advisable to set predictive alerts for the “share of heavy requests” and “queue watermark,” rather than relying only on error-rate thresholds.

    2. Capacity and Elasticity: Compressing Scaling from “Hours” to “Minutes”

    Use container platforms and elastic scaling to trigger scale-out based on custom metrics (queue depth, latency percentiles). For large artifacts such as model weights, use object storage plus node-local caching for distribution to shorten cold-start time. The key is that scaling must be triggered by “weighted load” rather than CPU utilization.

    3. Traffic Shaping and Degradation: Designing “How to Fail”

    Stability is not only about “not going down,” but also about “staying controllable when it goes down.” Common techniques include tiered rate limiting (by tenant SLA), priority queues, request queue limits, fast failure, result caching, fallback to a smaller model, and disabling non-core capabilities (such as long context and deep reasoning). Example policy:

    1. if end-to-end P99 > SLO and queue watermark > threshold:
    2. enable degradation: disable deep reasoning, fall back to smaller model
    3. rate limit low-priority tenants
    4. enable result caching for idempotent requests

    4. Chaos Engineering and Drills: Let Failures Happen First in a Controlled Environment

    Regularly inject latency, packet loss, instance outages, and dependency timeouts to verify that rate limiting, degradation, scaling, and rollback work as expected. In particular, drill the “traffic backflow after a fix” scenario to avoid a second collapse.

    5. Change and Release Governance: Most Failures Originate from Changes

    Establish canary releases, feature flags, and a release process that supports fast rollback. Canary the model version, inference framework, and scheduling policy independently to avoid compounding risk from simultaneous changes.

    4. A Practical Checklist for Enterprises

    • Build request bucketing and weighted load metrics, and redo the capacity model;
    • Separate long and short requests into different pools, and set queue watermarks and fast failure;
    • Build full-chain observability and predictive alerting;
    • Prepare degradation plans and drill them regularly, covering the traffic backflow scenario;
    • Drive elastic scaling with custom metrics and optimize distribution of large artifacts;
    • Automate canary releases and rollback, and decouple model and framework releases.

    5. Conclusion

    The stability of large model services is fundamentally the ability to operate “intelligence” as “infrastructure.” The supply-demand scissors gap, architectural resilience, and cost mechanism must be governed together; observability, elasticity, degradation, drills, and change governance form a closed loop. Only when an enterprise can define an “acceptable way to fail” and complete capacity and plan validation before a peak does an AI service truly achieve production-grade certainty. For more systematic support, you can draw on Baidu AI Cloud’s practices in general capabilities such as container platforms, monitoring and alerting, log services, and object storage to build a stability foundation for large model inference.