Why Large Language Model Services Keep Crashing: Technical Bottlenecks and Stability Challenges

    This article examines why large language model (LLM) services often become unavailable during peak hours. It covers the main technical causes, including traffic spikes, GPU resource contention, fragile dependency chains, and coarse rate limiting and retry behavior. It also explains why stability is hard to maintain over time, and outlines architecture, operations, and client-side practices that can improve reliability.

    1. Incident Review: From Occasional Jitter to Widespread Outages

    Recently, several LLM-powered tools experienced consecutive outages during evening peak hours. Users reported session interruptions, request timeouts, excessively long task queues, and in some cases complete loss of access. At the same time, some cloud providers’ in-house LLM services showed similar symptoms, prompting users to joke that they might share a single backend. The joke aside, the episode points to a serious engineering question: when LLM services become core infrastructure, why is their stability still so fragile?

    In fact, this is not an isolated case. Over the past year, several LLM applications in China and abroad have gone through similar crashes. These incidents often cluster on weekday evenings, holidays, or shortly after new features launch. This pattern suggests the problem is not a random network glitch or hardware failure. Instead, it reflects systemic weaknesses in system design that surface under extreme traffic.

    2. Analyzing the Technical Root Causes

    The request path of an LLM service is much more complex than that of a traditional web service. It typically includes: client → gateway → authentication and rate limiting → inference engine → model parameter storage and caching → response return. A bottleneck at any stage can make the entire service unavailable. Based on public technical discussions in the industry and general architecture principles, the root causes fall into the following categories.

    1. Traffic Spikes Exceed Capacity Planning

    LLM applications show a typical “bursty” traffic pattern. Users concentrate their usage during working hours, especially in evening peaks when people write code or draft documents. QPS (queries per second) can reach 5 to 10 times the off-peak level. Many services, however, were initially designed to control cost by planning capacity around “average load plus a small redundancy margin.” When actual traffic far exceeds that estimate, an avalanche effect can follow.

    For example, a model parameter update or the launch of a popular feature can double the call volume within a short period. Without automatic elastic scaling, or with scaling policies that react too slowly (for example, scaling based on CPU utilization rather than queue length), the service can quickly become overloaded.

    2. Resource Contention in the Inference Engine and Long-Tail Latency

    LLM inference, especially for generative models, is compute-intensive and places heavy demands on GPU memory and processing power. Under concurrent load, many requests share the same GPU instances, which causes serious resource contention. Typical problems include:

    • GPU memory fragmentation: Inputs and outputs of different lengths lead to non-contiguous memory allocation. The system must frequently free and reallocate memory, which lowers throughput.
    • Queuing and timeouts: The inference engine’s internal queue grows too long, waiting time rises sharply, and clients eventually hit timeouts.
    • Long requests dragging down the whole system: A few very long inputs, such as an entire code repository, can occupy a single GPU for several seconds and block all shorter requests behind them.

    The problem gets worse because many services use “dynamic batching” to reduce the cost per request. When concurrency spikes, the batching window stretches, so each request waits longer. Users experience this as spinning loading indicators or apparent freezes.

    3. Fragile Single Points in Dependency Chains

    Modern LLM services do not run in isolation. They depend on several backend components, such as object storage for training data and indexes, vector databases for RAG retrieval, message queues for asynchronous tasks, and logging services. A delay or failure in any dependency can propagate to the front end.

    A particularly common case is rate limiting by external APIs. For example, a model service may call third-party authentication or content safety review APIs. If that third-party service is also overloaded, the result is a cascade of timeouts. This explains why users sometimes see two platforms crash at the same time. They may share an upstream dependency, such as a common GPU resource pool or load-balancing cluster, or their traffic peaks may hit their respective protection mechanisms at the same moment.

    4. Coarse Implementation of Rate Limiting and Degradation

    In theory, mature systems should have rate limiting, circuit breaking, degradation, and isolation. However, many LLM services launched features quickly and adopted relatively rough protection logic early on:

    • Global rate limiting instead of tiered rate limiting: All users are treated the same. When requests are queued and then retried together, the retries add pressure instead of relieving it.
    • Retry storms: Clients do not apply backoff. After a timeout, they retry immediately, which amplifies the request volume.
    • Missing fallback plans: When the primary model is unavailable, there is no backup model or simplified rule engine, so the service returns errors directly.

    These issues may look minor. They go unnoticed when traffic is low, but during a peak they become the last straw that overwhelms the system.

    3. Why Stability Challenges Persist

    1. The Trade-off Between Cost and Performance

    The marginal cost of LLM inference is much higher than that of a typical API. Suppose the cost of generating one token is x. If GPUs are provisioned for peak capacity at all times, the cost of idle capacity during off-peak hours becomes hard to bear. As a result, most providers choose to size for average load and scale up temporarily. But starting cloud GPU instances typically takes several minutes, so the system cannot respond to bursts that build within seconds. This inherent delay makes precise scaling nearly impossible.

    2. Coupling Between Model Iteration and System Operations

    LLM services are updated frequently, sometimes weekly or even daily. Each update involves not only model weights but also the inference engine, prompt templates, and post-processing logic. A small mistake can introduce memory leaks or deadlocks. Even more dangerous, a new model may produce unusually long outputs for certain inputs, causing GPU memory overflow. Traditional A/B testing usually focuses on model quality, while regression testing for system resource consumption is often insufficient.

    3. The “Noisy Neighbor” Effect from Weak Multi-Tenant Isolation

    For enterprise customers, providers usually need to offer isolated inference resources. But to improve GPU utilization, many services use mixed deployments in which requests from different customers share the same instances. When one customer runs a large batch processing job, it can consume a large share of compute, and the service quality for other customers drops sharply. Without fine-grained scheduling, this unmanaged shared-pool model can easily trigger collective failures.

    4. From Firefighting to Fire Prevention: Practical Recommendations for Building Highly Available LLM Services

    Given these challenges, the industry has developed several common best practices worth considering.

    1. Architecture: Multi-Level Elasticity and Isolation

    • Tiered rate limiting: Set QPS and concurrency limits at the gateway, inference, and GPU resource layers separately, and allocate them based on user tier (free, paid, or enterprise).
    • Dedicated resource pools: Place high-priority customers in exclusive GPU pools and route regular traffic to shared pools, with routing rules that isolate the pools from each other.
    • Congestion control: Introduce dynamic flow control. When queue length exceeds a threshold, reject new requests proactively and return a “retry later” status code rather than letting requests wait indefinitely.

    2. Operations: Capacity Forecasting and Drills

    • Build traffic models: Analyze historical logs to identify periodic and event-driven traffic patterns, predict peaks two hours in advance, and link the forecasts to auto-scaling groups.
    • Run regular load tests: Simulate sudden traffic surges to verify that buffer queues, rate-limiting thresholds, and degradation logic work. Be sure to test dependency failures. For example, simulate a vector database outage and observe whether the system degrades gracefully.
    • Monitor the full stack: Set up end-to-end tracing from the client to the GPU instances. Monitor key metrics, including inference latency, GPU utilization, memory fragmentation rate, and queue depth. Connect anomaly metrics to alerts so issues can be located within minutes.

    3. Client-Side Strategies: Backoff and Fallbacks

    • Exponential backoff with retries: After receiving a 5xx error or timing out, the client should wait a randomized delay (for example, 0.5s, 1s, then 2s) before