LLM Service Instability Under Compute Pressure: A Guide to Building Resilient AI Infrastructure

    This article analyzes a typical incident where multiple LLM services experienced concurrent short-term failures. It breaks down four common failure modes in online LLM serving—rigid capacity from large models, missing lightweight tiers, shared infrastructure bottlenecks, and lagging rate-limiting policies—and outlines a stability framework covering capacity planning, tiered rate limiting, multi-tier model routing, observability, graceful degradation, and client-side retry practices.

    1. Incident Review: A Typical Case of Concurrent Multi-Model Failures

    Recently, a major LLM platform experienced user-perceivable service disruptions. Based on the publicly available timeline, the failures were not isolated events. Instead, across different dates and time windows, short-lived jitter occurred around API availability, third-party account login flows, and request processing across multiple model specifications of varying sizes. When the timestamps are arranged at minute-level granularity, a critical pattern emerges: within a span of just a few minutes, multiple models of different specifications reported request processing failures one after another.

    This pattern of “multiple targets failing simultaneously within a short window” is clearly distinct from localized failures such as a single-instance crash, a single data center power outage, or jitter on a single network link. Localized failures typically manifest as an elevated error rate on a single service, in a single region, or on a single endpoint, with a clear recovery path. In contrast, alternating failures across multiple models and multiple entry points within the same window are more indicative of pressure propagating through a shared dependency layer.

    It is important to emphasize that a timeline alone cannot determine the specific root cause; any conclusion must be grounded in the incident report disclosed by the platform and its internal metrics. Nevertheless, from an engineering perspective, this type of event serves as a high-quality “negative example” for reviewing the key design principles of stability in online LLM serving.

    2. Root Cause Abstraction: Four Typical Failure Modes in Online LLM Serving

    2.1 Inference Cost and Capacity Ceiling of Ultra-Large Models

    Continuously growing parameter counts directly increase GPU memory usage, computation, and memory bandwidth pressure per inference. The consequences appear on three levels:

    • The concurrent batch size a single GPU can handle decreases, making throughput extremely sensitive to batch scheduling;
    • Memory usage in long-context scenarios grows nearly linearly, easily triggering queuing and timeouts;
    • Scaling cycles are long—loading, warming up, and health-checking new instances all take time, so horizontal scaling cannot happen in seconds the way it does for stateless services.

    When a traffic peak arrives, the capacity curve is “rigid” while the traffic curve is “spiky.” This mismatch leads to a queuing avalanche.

    2.2 No Lightweight Tier Means Nowhere to Offload Traffic

    If the model matrix contains only large-tier options, every request—including lightweight tasks such as intent recognition, summarization, format conversion, and simple Q&A—must go through the same high-cost pipeline. This is equivalent to merging a highway and a residential road into a single lane, where congestion in any segment spreads globally. A more mature industry practice is to build a “light–medium–heavy” multi-tier matrix, offloading lightweight tasks to low-cost tiers and reserving high-cost compute for requests that genuinely require complex reasoning.

    2.3 Cascading Propagation Through Shared Infrastructure

    Model services often share foundational components such as gateways, authentication, quotas, caches, message queues, logging, and monitoring. Once a bottleneck appears in the shared layer, the failure propagates simultaneously to all upper-layer models, manifesting as “concurrent multi-model failures.” This is also why troubleshooting must begin with layered localization: is the problem in the access layer, the scheduling layer, the inference layer, or an external dependency (such as third-party login, payment, or SMS)?

    2.4 Lagging Capacity Governance and Rate-Limiting Policies

    Rate limiting is itself a protective mechanism, but if thresholds are set crudely and lack priority tiers, it will reject normal requests along with abusive ones during peak periods, creating a positive feedback loop of “rate limiting → retries → higher load.” Client retries without backoff and jitter can amplify a brief disruption into sustained congestion.

    3. Stability Framework: From Reactive Firefighting to Proactive Resilience

    3.1 Capacity Planning and Regular Load Testing

    Establish a capacity model with “peak concurrency × average context length × output length” as inputs, and conduct regular full-link load tests to determine the rated throughput and inflection points of each tier. Capacity is not a one-time deliverable but a rolling plan that is continuously recalibrated as the business grows.

    3.2 Tiered Rate Limiting and Priority Queues

    Classify requests by business value, reserve dedicated quotas for high-priority pipelines, and apply queuing plus delayed scheduling to low-priority requests rather than rejecting them outright. An illustrative policy is shown below:

    1. priority = tenant_level * 100 + request_type_weight
    2. if load_ratio > 0.85:
    3. admit only priority >= threshold
    4. enable backpressure to upstream

    3.3 Multi-Tier Model Orchestration and Task Routing

    Use a lightweight routing layer that selects a tier based on task complexity, context length, and latency requirements, balancing cost and user experience:

    1. route(req):
    2. if req.task in {classify, extract, rewrite}: return light_tier
    3. if req.context_tokens > 32k: return heavy_tier
    4. return balanced_tier

    3.4 Observability and Fault Localization

    Build layered metrics: the access layer tracks QPS, error rate, and P99 latency; the scheduling layer tracks queue length and wait time; the inference layer tracks GPU memory usage, batch size, and decoding speed; and the dependency layer tracks the success rate of external interfaces. Combined with distributed tracing, this makes it possible to quickly determine “who dragged down whom” within a minute-level window.

    3.5 Degradation and Graceful Fallback

    Predefine degradation paths: fail fast on timeout and return cached results, switch to a lightweight tier, disable non-core enhancement capabilities, and enable asynchronous task processing. The core principle is “degrade rather than avalanche.”

    3.6 The Right Approach on the Client Side

    Callers should implement retries with exponential backoff plus random jitter, idempotency keys, request coalescing, and local caching to avoid creating a secondary impact during platform jitter.