LLM Service Crash Under High Concurrency: A Post-Incident Review

    This article reviews a typical LLM service outage triggered by a release-day traffic spike, nighttime peak overlap, and missing isolation between stateful and stateless paths. It breaks down the root causes across traffic, inference, and dependency layers, then covers architecture responses such as tiered entry points, priority queues, proper autoscaling signals, and bulkhead isolation. It also explains rate limiting, graceful degradation, retry governance with backoff and budgets, observability, and release practices, ending with a reusable post-incident checklist.

    1. The Incident in Abstract: A Classic Release-Day Capacity Breakdown

    Shortly after a new model went live, an AI coding tool experienced brief local service fluctuations that recovered on their own within minutes. During the evening peak, however, the chat entry point became unavailable again, while the account system remained broken, leaving users unable to log in or register. Even after chat capability was restored, the official status page still showed “ongoing monitoring.”

    With the specific brand removed, this is a highly reusable failure sample: a step increase in traffic from the release + overlapping evening double peaks + no isolation between stateful and stateless paths.

    It is worth stressing that this kind of fluctuation is usually not a single component “breaking.” Instead, once capacity assumptions are broken, multiple stages become saturated one after another along the dependency chain. Understanding the order of failure is more valuable than memorizing a momentary symptom.

    2. Root Causes by Layer: From Traffic Model to Dependency Chain

    1) Traffic side: a step change, not linear growth
    A new model release brings step-wise growth, along with significant “retry amplification.” When the client timeout is set to 10 seconds with no backoff, a single real request can turn into 3–5 backend calls, multiplying the effective load.

    2) Inference side: hard constraints of GPU memory and batching
    Concurrency in LLM inference is jointly limited by GPU memory capacity and batching strategy. Longer context linearly increases key-value cache usage, reducing the number of concurrent requests. A poorly tuned batching window can also cause severe oscillation between throughput and time-to-first-token.

    3) Dependency side: account and auth are stateful paths
    Login, registration, and token validation depend on databases and caches, making them stateful paths. When the stateless chat layer saturates first and exhausts the connection pool, the stateful path fails as a side effect because connection and thread resources are squeezed out. This explains the asymmetric phenomenon of “chat recovered but login still broken.”

    4) Traffic governance side: no tiered entry
    If all requests share the same entry point and the same quota, interactive requests get starved by batch jobs, ultimately showing up as a full outage.

    3. Architecture Responses: Putting Uncertainty in a Cage

    Tiered entry points and priority queues
    Split interactive chat, batch jobs, and internal probes into separate entry points and quota domains, so high-priority traffic still has basic availability during a flood.

    1. Entry layer -> Priority queues (interactive/batch/probe) -> Inference pools A/B -> Dependency layer (cache/database)
    2. \-> Degradation path (smaller model/cached results)

    The right way to autoscale
    Scaling must be based on metrics close to the user experience, such as “queue wait time + time-to-first-token,” rather than CPU alone. A warm-up buffer is also needed, because the cold-start time for inference instances to load weights and build caches is far longer than that of ordinary stateless services.

    Bulkhead isolation and resource quotas
    Set up separate connection pools, thread pools, and timeout budgets for the chat path and the account path, to prevent a single saturated point from triggering a global avalanche.

    4. Rate Limiting, Degradation, and Retry Governance

    For rate limiting, use a token bucket for entry shaping, combined with overload protection based on concurrency semaphores (not just connection counts). Degradation should have predefined acceptable “suboptimal answers,” such as returning cached conclusions, switching to a smaller model, or shortening the context window.

    Retries must follow exponential backoff with jitter, plus a retry budget, to prevent the positive feedback loop of “the more it fails, the more it retries”:

    1. # Example: retry with jitter and budget
    2. import random, time
    3. def call_with_retry(fn, max_attempts=3, budget=0.1):
    4. attempts = 0
    5. while attempts < max_attempts and random.random() < budget:
    6. try:
    7. return fn()
    8. except TimeoutError:
    9. attempts += 1
    10. time.sleep(min(2 ** attempts, 8) * (0.5 + random.random()))
    11. raise OverloadError("shed load")

    5. Observability and Release Process

    Three layers of observability are needed: at the entry layer, watch request volume and rejection rate; at the inference layer, watch queue time, batch size, and GPU memory level; at the dependency layer, watch connection pool usage and slow queries. Alerts should focus primarily on “user-perceivable metrics” to avoid being drowned out by host metrics.

    For the release process, use canary rollouts, shadow-traffic load testing, and fault drills based on predefined playbooks. In status page maintenance, distinguish independent component states such as “chat capability” and “account capability,” so both users and on-call engineers can quickly locate the scope of impact.

    6. Post-Incident Checklist

    • Is capacity planning based on step traffic rather than average traffic?
    • Is bulkhead isolation complete between the interactive and account paths?
    • Are tiered degradation and a retry budget in place?
    • Are scaling metrics close to time-to-first-token and queue wait time?
    • Is the status page component granularity fine enough?

    The conclusion is straightforward: the stability of an LLM online service depends on how honest its capacity assumptions are and how gracefully it behaves under overload. Design the degradation path as a first-class citizen, and a brief crash will degrade into a small, observable fluctuation.