Why LLM Inference Services Collapse Under Load: Capacity Rigidity, Shared Dependencies, and Retry Storms

    When an online AI assistant has several models fail within minutes—sometimes alongside a brief third-party login outage—the root cause is rarely just a "model that is too large." This article dissects cascading failures in high-load LLM inference services along three threads: capacity rigidity, shared dependencies, and retry storms. It then presents a complete governance framework covering capacity modeling, tiered routing, admission control, circuit breaking, and chaos testing, with ready-to-use illustrative code and a practical checklist. The goal is to turn sporadic crashes into predictable, degradable, and recoverable engineering capability.

    1. Starting from a “Suspected Crash”: Translating an Outage into Engineering Terms

    To users, “the service is down” is just an alarm. For an engineering team, it is only a starting signal. To locate the real problem, the symptoms must first be translated into statements that can be tested and judged. Combining direct user reports with publicly available status records, a recent online AI assistant service showed three key characteristics:

    • Multiple services failed in a very short window. Starting at 21:04 on the second day, four model services of different sizes failed to process requests one after another within roughly 7 minutes. Each individual service was affected for about 6–13 minutes, and the overall outage window approached 33 minutes. On the afternoon of the previous day, its core API had also experienced an availability drop lasting about 80 minutes, during which the third-party login service was briefly unavailable.
    • Failures appeared scattered rather than concentrated. The failures that accumulated over the previous day looked more like repeated flare-ups that were constantly being extinguished than a single, clean shutdown. This is usually a signal that the system was repeatedly destabilizing near a critical point.
    • Load and cost pressure persisted. The service had already recorded rate-limiting and degradation of its primary models, and inference compute had long been running at high utilization.

    Ordinary users tend to summarize this kind of incident as a “crash.” In engineering terms, these characteristics have a more precise name: cascading failure. A failure propagates and amplifies along a shared dependency chain, ultimately manifesting as a group of services becoming unavailable simultaneously or in sequence. The reason a brief hiccup in the login service can trigger a site-wide cascade is, essentially, that many components share the same failure-propagation path.

    This article does not target any specific vendor. Instead, it treats this incident as a typical production case, extracts the systemic problems that large-model online services tend to exhibit under high load, and offers a practical stability-governance framework.

    2. Root Cause Analysis: Why “Too Large a Model” Becomes a “Service Avalanche”

    2.1 Capacity Rigidity: VRAM Is a Hard Constraint That Elastic Scaling Cannot Solve

    Traditional web services are stateless. When request volume rises, adding instances to spread the load often solves the problem. Large-model inference services, by contrast, are constrained by a physical hard limit: GPU memory (VRAM).

    Take mainstream autoregressive decoding as an example. VRAM consumption is made up of three main parts:

    • Model weights. If a single model reaches the trillion-parameter (T) scale, the weights require hundreds of GB to TB-level VRAM even with low-precision quantization such as 4-bit, and usually must be loaded via tensor parallelism across multiple servers and multiple accelerators.
    • KV Cache. Every generated token requires caching the Key/Value tensors of all preceding tokens, and its size is proportional to sequence length and the number of concurrent requests.
    • Runtime overhead. This includes the framework memory pool, communication buffers, and activations during the prefill stage, among others.

    KV Cache VRAM consumption can be approximated as:

    1. KV VRAM ≈ 2 × num_layers × num_kv_heads × head_dim × seq_len × num_concurrent_seqs × bytes_per_element

    (the ×2 accounts for the two separate tensors, K and V.)

    Example: an estimate based on common industry attention assumptions

    • Assume 80 layers, 8 KV heads, and head dimension 128, stored in FP16
    • Per-token KV usage is about 2 × 80 × 8 × 128 × 2 = 320 KB
    • With a 32K context, a single session occupies about 10 GB of VRAM
    • With 32 concurrent sessions, KV Cache alone needs about 320 GB

    This is only an illustrative calculation; actual values depend on the specific model architecture and implementation optimizations. But the conclusion is clear: concurrency capacity does not scale linearly—it is hard-capped by VRAM capacity.

    Larger parameter counts have two consequences:

    1. The weights themselves consume VRAM that could otherwise hold the KV Cache, lowering the number of concurrent requests the system can accommodate;
    2. Inference cost grows nearly linearly with output length, diluting the output per unit of compute.

    So the “rate limiting” users perceive is, at the technical level, often the scheduler proactively rejecting new requests to protect already-admitted ones from being dragged down. This is an overload-protection mechanism at work, not simply “the service is broken.”

    2.2 Shared Dependencies: Why a Single-Point Hiccup Becomes a Global Avalanche

    The truly dangerous situation is not that some component fails, but that multiple critical paths share the same component. In online large-model services, these “common-cause dependencies” usually hide in three places:

    • Infrastructure layer. The same pool of inference nodes, the same inference framework and CUDA context, the same tensor-parallel group, the same RDMA/InfiniBand network. Any GPU ECC error, NVLink link jitter, or network congestion here simultaneously affects every model resident on that resource.
    • Traffic ingress layer. Multiple models share the same API gateway, the same authentication and quota service, and the same connection pool. When the gateway thread pool or connection pool is exhausted, all models become unavailable together.
    • State and metadata layer. Session history, prefix caches, and routing tables are often stored centrally in a small number of key-value stores or cache clusters. Once their response latency rises, every model call that depends on them slows down in sync.

    This explains the phenomenon of “four models failing one after another within 7 minutes”: if the models were completely independent, the probability of simultaneous failure would be extremely low; the fact that they clustered tightly in time strongly suggests a shared failure source. A typical propagation chain looks like this:

    1. Underlying node/network jitter
    2. → Inference request latency rises, GPU utilization saturates
    3. → Gateway upstream times out; thread pool and connections are occupied by long-tail requests
    4. → New requests queue up, and queue latency amplifies further
    5. → Clients time out and retry, amplifying traffic a second time
    6. → Queues keep backing up, and the failure spreads from a single model to every model in the same cluster
    7. → Session/cache dependencies time out, and the authentication chain is affected as well

    At the same time, if multiple models share the same resource pool without isolation or prioritization, high-load models will “starve” other models in the contention for resources. This is precisely why bulkhead isolation is needed.

    2.3 Queuing and Retry Storms: A Positive Feedback Loop That Self-Amplifies Overload

    From a queuing-theory perspective, as service utilization ρ approaches 1, average queue latency diverges roughly as 1/(1−ρ). Once a system enters the overload region, latency deteriorates non-linearly.

    At this point, if clients or gateways are configured with “aggressive retries,” the overload amplifies itself:

    • Retry amplification. When each failed request is retried N times, effective traffic is amplified N-fold.
    • Synchronized retries. Large numbers of clients retry together at the same timeout moment, creating periodic “retry pulses.”
    • Unbounded queues. Requests enter a queue with no upper limit, so even after upstream recovers, the backlog keeps the system pinned in the overload region.

    A minimal simulation can make this effect intuitive. The code below references no specific framework or product; it only captures the basic behavior of queuing and retries:

    1. import random
    2. import heapq
    3. from statistics import mean, median
    4. def simulate(load, cap, max_retries=3, with_retry=True, seed=0):
    5. """Simplified single-service queue simulation (illustrative, not real performance data)
    6. load: Requests arriving per second
    7. cap: Requests the service can complete per second (capacity)
    8. max_retries: Maximum client retry count
    9. Returns: (average completion latency, final backlog queue length)
    10. """
    11. rng = random.Random(seed)
    12. busy = [] # min-heap of service completion times
    13. queue = [] # pending requests with their retry count
    14. done = []
    15. backlog = 0
    16. duration = 20.0 # simulation duration in seconds
    17. for t in range(int(duration * 1000)): # advance in 1ms steps
    18. now = t / 1000.0
    19. # 1) Release completed service slots
    20. while busy and busy[0] <= now:
    21. heapq.heappop(busy)
    22. # 2) New arrivals (Poisson approximation)
    23. n_arr = rng.poissonvariate(load * 0.001) if hasattr(rng, "poissonvariate") \
    24. else int(load * 0.001 + 0.5)
    25. for _ in range(max(n_arr, 0)):
    26. queue.append((now, 0))
    27. # 3) Start new requests while there is spare capacity; queue otherwise
    28. while queue and len(busy) < cap:
    29. arrived, retries = heapq.heappop(queue)
    30. if with_retry and retries < max_retries:
    31. # Retry interval: exponential backoff + jitter
    32. delay = min(0.2, 0.05 * (2 ** retries)) * (0.5 + rng.random())
    33. if now - arrived > delay and now + delay < duration:
    34. heapq.heappush(queue, (now, retries + 1))
    35. heapq.heappush(busy, now + 0.05) # single processing takes 50ms
    36. done.append(now - arrived)
    37. if with_retry:
    38. break # admit one at a time, approximating serial admission
    39. backlog = len(queue)
    40. return round(mean(done), 3), round(median(done), 3), backlog
    41. if __name__ == "__main__":
    42. for retry in (False, True):
    43. avg, p50, backlog = simulate(load=400, cap=8, with_retry=retry)
    44. print(f"retry={'on' if retry else 'off'} avg latency={avg}s "
    45. f"median latency={p50}s residual backlog={backlog}")

    This kind of simulation usually shows consistent behavior:

    • At moderate load, the extra traffic from retries is limited and has little effect on latency;
    • Once load approaches or exceeds capacity, enabling retries multiplies average latency and keeps the backlog stubbornly high;
    • Even after upstream capacity recovers, the residual backlog keeps the system pinned in the overload region for a long time.

    In reality, additional factors—GPU inference latency far greater than 50ms, and huge variance in output length across requests—only make the effect more severe. The timeline from earlier in the article—“repeated anomalies the previous day, concentrated outbreak the next”—closely matches this evolution path of repeated destabilization near a critical point.

    2.4 Release and Warm-up: The Most Overlooked “Hidden Load” in Capacity Planning

    Model services also carry a special risk: weight updates and cold starts. When a new model version goes live, a series of initialization steps must complete—weight distribution, loading into VRAM, CUDA Graph capture, kernel auto-tuning, cache warm-up—during which throughput is far below the steady-state level.

    If the release cadence overlaps with a traffic peak, or the canary ratio is set improperly, new-version instances will handle real traffic before they reach steady state, showing up as “timeouts right after the release.” Meanwhile, multiple coexisting versions briefly raise overall resource consumption, further compressing an already tight capacity margin.

    In addition, large-model requests exhibit prefix locality: consecutive requests within the same project or session often share large common prefixes. If session scheduling does not handle affinity, the prefix-cache hit rate drops sharply and repeated computation multiplies.

    3. Governance Framework 1: Capacity Model and Tiered Routing

    3.1 From “Scaling by QPS” to “Planning by Token Throughput”

    The capacity metric for large-model services cannot stop at QPS. A more reasonable approach is to use token throughput (tokens/s) as the baseline unit and build a capacity model:

    1. Required concurrency ≈ peak input tokens/s × average prefill time + peak output tokens/s × average per-token decode time
    2. Required VRAM ≈ weight VRAM + peak concurrency × average context length × per-token KV usage + runtime reserve

    Practical points:

    1. Separate prefill from decode. Prefill is compute-intensive and limited by compute; decode is memory-intensive and limited by VRAM bandwidth. The two should be modeled separately and given separate elasticity policies.
    2. Set capacity watermarks. A steady-state utilization of 60%–70% is recommended as the scale-up trigger, leaving buffer for traffic spikes, retry amplification, and failover.
    3. Distinguish “insufficient capacity” from “poor queue policy.” If utilization stays below 40% for long periods yet timeouts are still frequent, the problem most likely lies in queue configuration, batching policy, or timeout settings—not in insufficient compute.

    3.2 Tiered Routing: Sharing the Burden of the “Flagship Large Model”

    Returning to the user observation about a “missing lightweight tier”: abstracted as an architectural problem, the core point is that not every request needs the most powerful model. The goal of tiered routing is to send requests of different complexity to matching compute tiers.

    A typical tiering matrix can be designed as follows:

    Tier Typical scenarios Key characteristics Suggested capacity share
    Flagship Complex reasoning, long-chain tasks, hard code comprehension Largest parameter count, high latency, high cost 10%–20%
    Mainstream Everyday chat, general Q&A, routine code generation Balanced quality and latency 40%–60%
    Lightweight Completion, rewriting, formatting, intent classification, routing decisions Small parameter count, fast first token, high batch concurrency 20%–40%
    Rule/cache High-frequency repeated requests, deterministic tasks Direct cache hit or rule path As needed

    Tiered routing offers three benefits:

    • Structurally lower cost. A large share of simple requests is diverted to low-cost tiers.
    • Higher peak capacity. The lightweight tier can handle several times the concurrency of the mainstream tier.
    • Smaller blast radius. When the flagship tier is overloaded, the remaining tiers can still serve independently, forming a natural degradation path.

    The lightweight tier does not have to be trained from scratch. Common industry approaches include distillation fine-tuning on strong-model outputs, quantization and compression, pruning, and sparse-activation (MoE) architectures that activate only part of the parameters per token. Specific technology choices must be evaluated against business corpora and quality baselines, but “using a distilled small model to handle high-frequency simple tasks” is a widely validated engineering pattern.

    3.3 Resource Pool Isolation: Keeping Tiers From Dragging Each Other Down

    Tiered routing only works when resource isolation is in place. If all tiers share one resource pool, lightweight requests are still crowded out by the VRAM of flagship requests. Recommended isolation granularity:

    • Physical isolation: Deploy different tiers on different node pools so that VRAM and bandwidth are not contended.
    • Priority queues: Give low-latency tiers (such as completion) dedicated scheduling queues and reserved quotas.
    • Concurrency quotas: Set a maximum number of concurrent sequences per tier and per tenant to prevent a single caller from saturating the cluster.

    4. Governance Framework 2: Overload Protection and Elastic Scaling

    4.1 Admission Control: Better to Reject Fast Than Drag Down Slowly

    The core principle of overload protection is fail fast: rejecting excess requests at the ingress at very low cost is far more economical than letting requests queue until they time out. A workable admission-control implementation follows:

    1. import threading
    2. import time
    3. from collections import deque
    4. class TokenBucket:
    5. """Token bucket rate limiter: allows some burst, long-term rate limited"""
    6. def __init__(self, rate: float, capacity: float):
    7. self.rate = rate # tokens replenished per second
    8. self.capacity = capacity # bucket capacity (burst limit)
    9. self.tokens = capacity
    10. self.last = time.monotonic()
    11. self.lock = threading.Lock()
    12. def acquire(self, tokens: float = 1.0) -> bool:
    13. now = time.monotonic()
    14. with self.lock:
    15. self.tokens = min(self.capacity,
    16. self.tokens + (now - self.last) * self.rate)
    17. self.last = now
    18. if self.tokens >= tokens:
    19. self.tokens -= tokens
    20. return True
    21. return False
    22. class AdmissionController:
    23. """Admission control: rate limiting + semaphore + bounded queue"""
    24. def __init__(self, rate: float, burst: float, max_inflight: int,
    25. max_queue: int, queue_timeout: float = 0.5):
    26. self.bucket = TokenBucket(rate, burst)
    27. self.sem = threading.BoundedSemaphore(max_inflight) # max in-flight requests
    28. self.queue: deque = deque(maxlen=max_queue) # bounded wait queue
    29. self.queue_timeout = queue_timeout
    30. def try_enter(self) -> str:
    31. """Returns 'ok' / 'rate_limited' / 'busy' / 'queue_full'"""
    32. if not self.bucket.acquire():
    33. return "rate_limited"
    34. if self.sem.acquire(blocking=False):
    35. return "ok"
    36. # In-flight is full; briefly queue to avoid rejecting on transient jitter
    37. if len(self.queue) >= self.queue.maxlen:
    38. return "queue_full"
    39. self.queue.append(time.monotonic())
    40. if self.sem.acquire(timeout=self.queue_timeout):
    41. if self.queue:
    42. self.queue.popleft()
    43. return "ok"
    44. if self.queue:
    45. self.queue.popleft()
    46. return "busy"
    47. def leave(self):
    48. self.sem.release()

    The key design here is: return a structured error code on rejection rather than making the caller guess. rate_limited, busy, and queue_full each map to a different client strategy: the first should back off and retry, while the latter two should degrade directly.

    4.2 Circuit Breaking and Bulkheads: Blocking the Propagation Chain

    Against the cascade chain described in Section 2, two kinds of “physical circuit breakers” are needed:

    • Circuit breaker: When a dependency’s error rate or latency exceeds a threshold, cut the call quickly so threads and connections are not exhausted by slow requests.
    • Bulkhead isolation: Assign independent thread pools / connection pools to different downstream dependencies so a single point of failure cannot drag down all resources.
    1. import random
    2. import threading
    3. import time
    4. class CircuitBreaker:
    5. """Sliding-window circuit breaker: opens after consecutive failures reach the threshold,
    6. and half-opens to probe after a cooldown"""
    7. CLOSED, OPEN, HALF_OPEN = "closed", "open", "half_open"
    8. def __init__(self, fail_threshold=5, window=10,
    9. cooldown=10.0, half_open_max=3):
    10. self.fail_threshold = fail_threshold
    11. self.window = window
    12. self.cooldown = cooldown
    13. self.half_open_max = half_open_max
    14. self.state = self.CLOSED
    15. self.failures = 0
    16. self.opened_at = 0.0
    17. self.half_open_calls = 0
    18. self.lock = threading.Lock()
    19. def allow(self) -> bool:
    20. with self.lock:
    21. if self.state == self.CLOSED:
    22. return True
    23. if self.state == self.OPEN:
    24. if time.monotonic() - self.opened_at >= self.cooldown:
    25. self.state = self.HALF_OPEN
    26. self.half_open_calls = 0
    27. else:
    28. return False
    29. # HALF_OPEN: limit the number of probe requests
    30. if self.half_open_calls >= self.half_open_max:
    31. return False
    32. self.half_open_calls += 1
    33. return True
    34. def on_success(self):
    35. with self.lock:
    36. self.failures = 0
    37. self.state = self.CLOSED
    38. self.half_open_calls = 0
    39. def on_failure(self):
    40. with self.lock:
    41. self.failures += 1
    42. if self.state == self.HALF_OPEN:
    43. self.state = self.OPEN
    44. self.opened_at = time.monotonic()
    45. elif self.failures >= self.fail_threshold:
    46. self.state = self.OPEN
    47. self.opened_at = time.monotonic()

    4.3 Exponential Backoff + Jitter: Eliminating Retry Pulses

    Section 2.3 noted that synchronized retries create periodic traffic pulses. The solution is exponential backoff combined with random jitter, which spreads retry moments out along the time axis:

    1. import random
    2. import time
    3. def backoff_delay(attempt: int, base: float = 0.5,
    4. cap: float = 8.0, jitter: float = 0.3) -> float:
    5. """Exponential backoff + jitter
    6. attempt: Retry count, starting from 0
    7. base: Base backoff time (seconds)
    8. cap: Backoff ceiling (seconds)
    9. jitter: Jitter ratio, 0~1
    10. """
    11. delay = min(cap, base * (2 ** attempt))
    12. return delay * (1.0 - jitter + random.random() * 2 * jitter)
    13. def should_retry(exc: Exception, attempt: int, max_attempts: int = 3) -> bool:
    14. """Back off only on retryable errors; parameter errors and content violations should not be retried"""
    15. retryable = isinstance(exc, (TimeoutError, ConnectionError))
    16. return retryable and attempt < max_attempts
    17. # Usage example (pseudo-code structure)
    18. def call_with_retry(fn, *args, **kwargs):
    19. for attempt in range(4):
    20. try:
    21. return fn(*args, **kwargs)
    22. except Exception as e:
    23. if not should_retry(e, attempt):
    24. raise
    25. time.sleep(backoff_delay(attempt))
    26. raise RuntimeError("retries exhausted")

    Two easily overlooked details:

    • Retry budget: Set a global cap on the total number of retries across the whole call chain, so multi-level retries do not multiply traffic.
    • Retryable-error classification: Deterministic errors such as parameter errors, content-moderation rejections, or context-length overflow are pointless to retry and only waste quota.

    4.4 Elastic Scaling: From “Reactive Scale-up” to “Predictive Scale-up”

    GPU instance cold starts usually take minutes, while traffic spikes can happen in tens of seconds. A reactive strategy that scales up only after metrics breach thresholds is often too late. More robust practices:

    1. Leading indicators: Use queue length, in-flight request count, and token-generation rate as scale-up signals rather than waiting for GPU utilization to saturate.
    2. Warm pool: Keep a certain proportion of warm standby instances that can absorb spikes within seconds.
    3. Tiered triggering: Scale up the lightweight tier first (low cost, fast start), then the mainstream tier, and be most cautious with the flagship tier.
    4. Scale-down protection: Set a scale-down cooldown to avoid repeated scaling during traffic jitter, which can overload the instance-management plane.

    5. Governance Framework 3: Observability, Release, and Degradation Plans

    5.1 Metrics, Logs, and Traces as One

    Observability for large-model services needs to cover three layers:

    • Metrics: In addition to standard QPS, error rate, and P99 latency, add large-model-specific indicators.
    • Logs: Record prompt length, completion length, cache-hit status, and the reasons behind rate-limiting decisions.
    • Traces: Connect the full call chain from “gateway → routing → inference → dependency calls” to make cross-service failures easier to locate.

    For large-model inference services, the additional metrics recommended for collection include:

    Metric Meaning Alarm significance
    Time to first token (TTFT) From request sent to first token returned Reflects queuing and prefill congestion
    Time per output token (TPOT) Time gap between adjacent tokens Reflects resource contention during decode
    Output-length distribution Histogram of generated request lengths Long outputs monopolize VRAM and are a source of capacity spikes
    Prefix-cache hit rate Share of requests hitting the cache A sharp drop signals a surge in repeated computation
    KV Cache utilization Share of VRAM held by the KV cache Near the limit, concurrency falls off a cliff
    Queue latency Time a request waits in the queue The earliest overload signal, ahead of rising error rates
    Rate-limit rejection rate Share rejected by admission control Distinguishes “insufficient capacity” from “policy misfires”

    One important practice here: queue latency is usually the earliest overload signal. While GPU utilization is still in the normal range and error rates have not yet risen, queue latency has already started to climb. Making it a core alarm metric buys a valuable intervention window before an avalanche occurs.

    5.2 Tiered SLOs and Alarm Noise Reduction

    Different tiers should have different SLOs. The lightweight tier commits to low latency (e.g., first token within 200ms), while the flagship tier prioritizes quality with looser latency. A blanket “99.9% service availability” masks structural differences.

    For alarm design, multi-level suppression is recommended:

    • Log a single-point anomaly without alarming;
    • Escalate only when multiple instances in the same tier fail simultaneously;
    • Trigger a global response plan directly when anomalies span tiers.

    The earlier case of “four models failing one after another” is exactly a typical cross-tier signal that should trigger a global plan. If alarm rules judge each model independently, the team may only notice the failure passively after it has already spread.

    5.3 Release Strategy: Small Canaries and Warm-up Guarantees

    Against the release risks in Section 2.4, the following practices are recommended:

    1. Warm up before taking traffic: Run new instances at low concurrency on a fixed batch of requests to complete kernel tuning and cache warm-up before adding them to the load balancer.
    2. Small-ratio canary: Ramp up stepwise—1% → 5% → 20% → 50% → 100%—observing at least one full traffic cycle at each level.
    3. Avoid peaks: Schedule model weight updates and framework upgrades during off-peak business hours.
    4. Control the version-coexistence period: During the period when old and new versions coexist, monitor the overall resource watermark and, if necessary, temporarily raise the lightweight-tier share to offset it.
    5. One-click rollback: Preserve a fast rollback path for the previous version’s weights and configuration, with rollback time kept to minutes.

    5.4 Degradation Plans: Deciding in Advance “What Can Be Cut”

    Degradation capability must be designed before an incident happens, not discussed on the fly. A workable degradation ladder:

    1. L0 Normal: full functionality, all tiers available
    2. L1 Mild overload: rate-limit the flagship tier, route simple requests to the mainstream tier
    3. L2 Moderate overload: disable long-context (>8K) requests and high-cost features (e.g., deep-thinking mode)
    4. L3 Severe overload: keep only the lightweight tier, return a clear message on non-core endpoints
    5. L4 Extreme: static fallback responses + a queue-number mechanism, keeping users informed rather than showing a blank error

    Degradation policies should be configuration-driven switches that support runtime adjustment, and every switch should be auditable. It should also be made clear that user-facing messages during degradation must honestly state that “the system is currently in degraded mode,” so users do not mistakenly believe the model’s capability has dropped.

    6. Practical Checklist and Rollout Roadmap

    6.1 Quick Self-Check List

    • Are there resource pools, gateways, or cache clusters shared across models? If so, what is the isolation plan?
    • Does admission control use a bounded queue? When the queue is full, does it return a structured error code or simply time out?
    • Do clients use exponential backoff + jitter for retries? Is a retry budget set?
    • Does each tier have its own SLO and alarm rules?
    • Has queue latency been included in core alarm metrics?
    • Is there a warm-up process for new-version launches? Has the rollback path been verified?
    • Do degradation switches cover all levels L1–L4? Have they been drilled?
    • Is capacity modeling based on token throughput, and does it separate prefill from decode?

    6.2 Phased Rollout Roadmap

    Phase 1: Stop the bleeding (1–2 weeks)

    • Introduce admission control and circuit breaking, returning clear error codes quickly
    • Unify the retry strategy, replacing it globally with exponential backoff + jitter
    • Fill in the three core metrics: queue latency, TTFT, and rate-limit rejection rate

    Phase 2: Isolation (3–4 weeks)

    • Split resource pools by tier, and establish priority queues and concurrency quotas
    • Connect full-chain tracing to locate shared dependencies
    • Define the L1–L4 degradation ladder and make it configuration-driven

    Phase 3: Optimization (1–2 months)

    • Launch the lightweight tier and establish tiered routing
    • Introduce prefix caching and KV-cache reuse optimizations
    • Build a token-throughput capacity model and a warm pool

    Phase 4: Normalization (ongoing)

    • Run regular chaos drills, actively injecting node failures, network latency, and dependency timeouts
    • Review capacity watermarks and SLO attainment every quarter
    • Build a failure knowledge base that turns each incident into reusable detection rules

    6.3 Chaos Drill Example

    Stability capability cannot be validated by “paper design” alone. Regular fault injection is recommended, for example:

    1. # Pseudocode: chaos drill injector
    2. def inject_faults(target_service, fault_type):
    3. """
    4. fault_type:
    5. 'latency' - inject random latency to verify timeout and circuit breaking work
    6. 'error_rate' - inject partial request failures to verify retry and degradation strategies
    7. 'capacity' - reduce available instances to verify admission control and queue behavior
    8. 'dependency' - cut a shared dependency to verify bulkhead isolation blocks propagation
    9. """
    10. if fault_type == 'latency':
    11. # inject 2~5s latency on 20% of requests
    12. pass
    13. elif fault_type == 'dependency':
    14. # simulate an unavailable shared cache/auth service
    15. pass
    16. # ... other types follow the same pattern
    17. # Drill acceptance criteria
    18. # 1. Alarm triggers within 30 seconds after fault injection
    19. # 2. Success rate of non-target tiers stays no lower than 99%
    20. # 3. Degradation switch can be flipped within 1 minute
    21. # 4. System returns to steady-state watermark within 5 minutes after the fault is removed

    The value of drills lies in verifying whether “isolation that is isolation on paper” actually works in practice. Many teams document bulkhead isolation, yet in deployment all tiers still share the same gateway thread pool—design deviations like this can only be exposed through drills.

    7. Conclusion: Turning “Crashes” into “The Expected”

    Back to the opening question: why does a service “fail to hold up”?

    The answer is not a single “the model is too large” or “there is not enough compute.” It is the combined result of four factors: capacity rigidity, shared dependencies, the retry/queue positive-feedback loop, and missing release warm-up. If any one link breaks, a local hiccup can turn into a global avalanche.

    The corresponding governance logic is also clear:

    1. Replace guesswork with a capacity model, upgrading QPS thinking to token-throughput thinking;
    2. Use tiered routing and resource isolation to shrink the blast radius, so simple requests do not contend with flagship requests for VRAM;
    3. Use admission control and circuit breaking to keep overload at the door—reject fast, don’t drag slowly;
    4. Use observability and chaos drills to expose risks early, snuffing out sparks before an avalanche forms.

    The stability of large-model services is essentially a capacity-engineering problem: you must both calculate accurately how much compute is needed and design how the system degrades gracefully when compute is insufficient. Once both are done well, a “suspected crash” is no longer a black swan that users randomly encounter, but an ordinary engineering metric the team can manage proactively.

    For concrete cloud deployment, general-purpose capabilities offered by platforms such as Baidu AI Cloud—container services, load balancing, monitoring and alerting, and logging services—can serve as infrastructure options for hosting the architectural patterns above, but architecture design and capacity planning still need to be carried out independently in light of business characteristics.