Capacity Governance for LLM Serving During Sudden Scale-Out Incidents

    This article examines why large language model (LLM) serving outages are usually capacity and queueing instabilities rather than single-point failures. It breaks down four common triggers—new model canary releases, traffic spikes, heterogeneous compute migration, and hotfixes—and outlines engineering practices such as capacity estimation, canary rollout with automatic rollback, overload protection, observability, elastic scaling, and chaos drills. The goal is to turn reactive firefighting into proactive capacity governance so LLM services stay stable across version iterations and traffic peaks.

    1. Framing the Problem: Why “Crashes” Are Rarely a Single-Point Failure

    An intelligent inference platform went down again on a Friday evening, and the community immediately filled with speculation: some said a new model was about to be rolled out gradually; others blamed a marketing campaign that brought in new users and “overloaded” the cluster; some suspected jitter during the handover of a phased replacement of heterogeneous compute; and others thought it was just a regression introduced by a minor hotfix. Abstracting these guesses, they happen to cover four typical risk sources in online inference systems: version changes, traffic surges, resource topology changes, and configuration and dependency changes.

    The key point to emphasize is that most “crashes” are not a process dying, but a loss of stability in terms of capacity and queueing theory. When the request arrival rate exceeds the system’s effective throughput, queue length grows nonlinearly, timeout retries amplify the load further, and an avalanche eventually forms. So when discussing causes, the focus should be on “effective capacity” and “overload protection” rather than on any single point.

    2. Engineering Breakdown of the Four Triggers

    2.1 New Model Canary: Dual Amplification of GPU Memory and Compute

    New models usually bring longer contexts, larger weights, and higher activation GPU memory usage, which reduces the concurrent batch a single card can handle. If the canary ratio is not controlled properly, a small amount of traffic hitting the new version can drag down the shared scheduling layer.

    Recommended practices:

    • Roll out in the order of “shadow traffic → small-ratio canary → region-by-region ramp-up,” with automatic rollback thresholds;
    • Use P99 latency, time to first token, queueing time, and GPU memory usage as primary circuit-breaking metrics;
    • Assign separate resource pools to different model versions to avoid mutual interference.

    2.2 Traffic Surges: Treat Marketing Campaigns as Capacity Events in Advance

    User growth from marketing campaigns is an expected “planned flood” and should be managed as a capacity event rather than handled as ad-hoc firefighting.

    Illustrative capacity estimation logic:

    1. Required concurrency ≈ peak QPS × average inference duration × safety factor (1.3~1.5)
    2. Required instances = ceil(required concurrency / effective concurrency per instance)

    Supporting measures include: ingress rate limiting, token bucket shaping, queue pages and reservation systems, degradation of non-core features, and caching results for high-frequency requests.

    2.3 Heterogeneous Compute Migration: “Dual-Write and Dual-Run” During the Handover

    When replacing compute in batches, the risks concentrate on driver and runtime version differences, operator support differences, and communication topology changes. During the handover, it is recommended to:

    • Run old and new resource pools in parallel and shift traffic gradually by weight;
    • Build a unified abstraction layer to hide underlying differences so business code does not perceive the hardware;
    • Complete precision alignment and long-duration stability stress tests before migration, and retain one-click rollback capability.

    2.4 Minor Hotfixes: Change Management Is the Foundation of Stability

    Hotfixes may be small, but they often touch “invisible critical paths” such as the tokenizer, template assembly, and default sampling parameters. The practice should be: keep change records, use canary releases, put observability first, pre-stage rollback scripts, and prohibit high-risk changes during peak windows.

    3. Stability Engineering: From Reactive Firefighting to Proactive Defense

    1) Observability trio: unified collection of metrics, logs, and tracing, plus a “capacity watermark dashboard.”
    2) Overload protection: adaptive rate limiting, priority queues, and request budgets to protect paid and high-priority requests.
    3) Elastic scaling: scale based on queue length and time to first token, not just CPU.
    4) Chaos drills: regularly inject node failures, dependency jitter, and traffic pulses to validate that plans work.
    5) Capacity retrospective mechanism: after each incident, produce a timeline, root cause, improvement items, and owners to close the loop.

    4. Conclusion

    Turning the debate over “why it crashed” into engineering questions—how to define effective capacity, how to canary, how to protect against overload, and how to make the system observable—is the sustainable path. Drawing on practices in general capabilities such as container platforms, log services, and monitoring and alerting from Baidu AI Cloud, teams can lock uncertainty inside processes and keep LLM services stable through version iterations and traffic floods.