Managing LLM Platform Capacity Crises: From Outages to Graceful Degradation
This article explores the root causes of capacity crises in large language model (LLM) platforms, highlighting the conflict between linear compute supply and exponential demand surges. It examines why KV cache becomes a critical memory bottleneck during peak usage and outlines a comprehensive governance framework. Readers will learn how to implement tiered degradation strategies, manage cache lifecycles, establish effective SLOs, and design predictable user experiences to transform systemic capacity crises into manageable service degradations.
Managing LLM Platform Capacity Crises: From Outages to Graceful Degradation
1. The Event Essence: Not an Outage, but Resource Reclamation via Degradation
Recently, an LLM platform experienced a service contraction on November 15th. Users were not completely locked out; instead, they received prompts during conversations such as “Insufficient compute power; long conversations inactive for over 7 days are no longer supported.” The input length limit was shortened, and daily conversation quotas were restricted, triggering a “Server busy, usage limit reached” message when capped. Unlike traditional downtime caused by network jitter or single-point process crashes, this was the platform proactively executing functional degradation, quota degradation, and resource reclamation near its capacity redline.
From an engineering perspective, the service was still running, but the platform was reclaiming occupied resources—specifically the KV cache held by long-inactive conversations—by restricting new feature boundaries. The KV cache is intermediate data residing in GPU VRAM during the autoregressive inference process, used to avoid recalculating the Key/Value tensors of historical tokens. A retained long conversation that is temporarily inactive is like a parked car occupying a parking space, continuously consuming scarce VRAM. By sacrificing user experience continuity, the platform frees up physical space for the survival of the entire system.
Therefore, evaluating such an incident should not merely ask “Why did it crash?” but rather: Is the capacity water level observable? Is the degradation strategy tiered? Is resource reclamation predictable? Is the user experience communicated transparently? This marks a shift in service stability issues from sporadic technical failures to systemic capacity crises.
2. Root Cause: The Gap Between Linear Supply and Exponential Demand
The fundamental contradiction causing capacity crises is the massive gap between the linear growth of compute supply and the exponential surge in user demand. LLM service demand is highly pulsatile: the concentrated opening of new application APIs, spikes in daily new registrations, and rapid growth in daily active users (DAU) can quickly push inference requests, concurrent sessions, and context lengths to extremes in a short period. Conversely, compute supply is constrained by accelerator card procurement, cluster construction, network interconnects, power, and datacenter delivery, resulting in a much flatter growth curve.
Public status records show that the platform experienced multiple service incidents within a month, presenting a clear deterioration trajectory from “localized performance degradation” to “hours of partial outages,” and eventually “active functional restrictions for all users.” In earlier stages, registration peaks on the launch day of a new version caused system-wide pressure and continuous outages lasting hours. Data indicates that when DAU surged by 66%, compute capacity only grew by 8%. This imbalance inevitably leads to repeated breaches of capacity redlines. Planning and deploying ultra-large-scale AI compute clusters often takes over a year, which cannot solve immediate needs. The platform is left with no choice but to perform priority scheduling and degradation within its existing resource pool.
3. Technical Mechanism: Why KV Cache Becomes a Critical Memory Bottleneck
Transformer inference is divided into prefill and decode phases. In the decode phase, every generated Token requires the Key/Value of historical tokens to participate in the attention calculation. To avoid redundant computations, the inference engine caches historical K/V in VRAM. The longer the context and the higher the concurrent sessions, the larger the KV cache footprint. Assuming the number of layers is L, attention heads is H, head dimension is D, sequence length is S, batch size is B, and precision bytes is P, the KV cache size is roughly proportional to 2 × L × H × D × S × B × P. Long conversations have a very high S. Even if a request is temporarily inactive, as long as the session is retained, the cache may continue occupying VRAM.
When VRAM becomes a hard constraint, the platform faces choices: reject new requests, queue them, truncate context, reclaim inactive sessions, reduce batch concurrency, or directly throttle. Reclaiming the KV cache of inactive long conversations can quickly free up VRAM, but the cost is that when users resume the conversation, the historical context must be re-prefilled, increasing first-token latency and compute consumption. Therefore, platforms need to treat the “cache lifecycle” as a first-class citizen in governance: setting idle TTL, LRU eviction, session summarization compression, hot/cold tiering, archiving to external storage, and re-prompting upon recovery. Product layers should clearly inform users that “long conversations may be reclaimed.”
4. The Availability Percentage Trap and SLO Governance
An availability figure like 99.4% to 99.7% may seem high, but converted to a yearly basis, it still equates to dozens of hours of unavailability. Averages also mask tail failures: long-tail fluctuations categorized by model, API, tenant, or region can be far more severe. Under a capacity crisis, platforms should establish tiered Service Level Objectives (SLOs): flagship models differ from lightweight models, interactive conversations differ from offline batch processing, and paid reserved capacity differs from free quotas. Error budgets should drive releases and throttling: when error budgets are consumed too quickly, non-core features should be automatically tightened, concurrency in low-priority queues reduced, and non-critical batch tasks paused.
5. Governance Framework: From Firefighting to Capacity Engineering
1. Capacity Visibility and Observability. Simultaneously monitor QPS, Token/s, concurrent session count, average and P99 queue times, VRAM utilization, KV cache footprint, cache hit rate, re-computation rate, throttle hit rate, and degradation switch status. Capacity forecasting should combine historical peaks, event calendars, and API release plans to conduct load testing and chaos engineering drills in advance.
2. Tiered Throttling and Backpressure. Set quotas by tenant, application, model tier, and request priority. Interactive requests take precedence over offline batch processing. When queues are full, fail fast and return retryable prompts. Use token buckets and concurrency semaphores to control ingress, and use backpressure to protect the inference engine.
3. Cache Lifecycle Management. Set TTLs for inactive sessions and evict them based on LRU and cost weighting. Long conversations can be summarized, compressed, and archived, then recomputed and prompted upon recovery. Truncate or segment-summarize requests that exceed the context window.
# Pseudocode: Ingress admission and KV cache eviction strategy illustrationdef admit_request(req, tenant_quota, gpu_pool):if not tenant_quota.allow(req.tokens):return reject("Quota limit reached, please try again later")if gpu_pool.free_memory < req.estimated_kv_bytes:# Evict idle long conversations first, then consider queuinggpu_pool.evict_idle_sessions(ttl=7_days, policy="LRU_COST")if gpu_pool.free_memory < req.min_required:return enqueue(req, priority=req.priority, timeout=2s)return execute(req)
4. Scheduling and Elasticity. Continuous batching, paged memory management, preemptive scheduling, and hot/cold resource pool tiering can improve VRAM utilization. Multi-region and heterogeneous resource pools can share peak loads. For cloud implementations, capabilities like general monitoring alerts, logging services, container platforms, and object storage provided by Baidu AI Cloud can be utilized to build an observable and elastic foundation. Specific selections should be evaluated based on the team’s existing infrastructure.
5. Cost and Product Strategy. Transparent quotas, degradation alerts, tiered SLAs, reserved capacity, and peak/off-peak billing help users understand boundaries. Provide compensation or recovery guidance for affected users.
6. Product UX: Degradation Must Be Predictable
Degradation itself is not terrifying; sudden degradation is. Platforms should proactively alert users about quota and context limits, provide countdowns and remaining balances, support session archiving and recovery, and use status pages for tiered notifications based on impact scope. Transforming “cold pop-up alerts” into an “explainable, actionable, and recoverable” experience is an integral part of capacity crisis governance.
7. Long-Term Building: Capacity Buffers and Architecture Decoupling
In the long run, platforms need to reserve capacity buffers, shorten cluster delivery cycles, advance inference optimization (quantization, distillation, cache reuse, batching optimization), decouple online interactive services from offline batch processing, and establish a capacity review mechanism. Only by closing the loop among capacity planning, throttling degradation, cache governance, and SLO operations can a “systemic capacity crisis” be transformed into a “controllable service degradation.”
