LLM Inference Capacity Planning: Sizing Capacity, GPU Memory Shortages, and Fallback Practices
When a large-model service pauses new subscriptions after a capability upgrade, users often read it as the product getting worse. This article explains why it is usually an admission-control measure, why LLM inference hits the compute wall sooner than traditional web services, and how to turn that pressure into numbers. It walks through concurrency sizing with Little's Law validated against KV cache memory limits, along with Python pseudocode, and covers admission control that fails fast, priority scheduling and multi-tenant isolation, prefix caching, model tiering and graceful degradation, asynchronous execution, and observability thresholds that trigger action early. It also lists pre-launch validation steps, quota-based subscription design to avoid overselling, and multi-provider routing with automatic failover for teams calling a single upstream model.
1. Pausing New Subscriptions Is Capacity Protection, Not Service Degradation
When a large-model service pauses new membership purchases right after a capability upgrade, users often interpret it as the service scaling back or getting worse. From an engineering perspective, it looks more like admission control at the front door: when concurrency, GPU memory, or latency nears its ceiling, the entry point lowers incoming load first so that all users do not end up sharing the same rising timeouts, queues, and error rates.
The questions users search for most — how to size inference capacity, what to do when GPU memory runs short, how to avoid selling more subscriptions than the system can serve — are really one question: how to turn reactive firefighting into proactive capacity governance.
Such measures typically pursue three technical goals. First, protect key metrics such as time to first token (TTFT), time per output token (TPOT), and timeout rate. Second, prevent queue buildup that keeps driving up request memory, concurrency, and failure rates until it triggers a cascading collapse. Third, buy a time window for hardware delivery, model compilation and optimization, and datacenter expansion. In other words, pausing new subscriptions does not close the service down; it gives existing load priority on limited capacity and creates room for recovery and scaling.
2. Why LLM Inference Hits the Compute Wall Sooner
Traditional web services scale almost linearly: adding machines usually spreads QPS across them. LLM inference has a different cost structure. Per-request cost is driven mainly by model weights, the KV cache, and the memory-bandwidth-heavy nature of the decoding phase. GPU memory capacity determines how many sessions can be held at once; memory bandwidth determines how many tokens per second can be generated. The first caps concurrency, the second caps throughput, and neither is relieved immediately by adding machines.
Long context and agent-style calls amplify per-request cost further. A traditional search request costs roughly the same every time, whereas an LLM request’s cost depends on input length, output length, and the number of turns. Once a product moves from single-shot Q&A to multi-turn conversation, tool calling, and long-document analysis, one user-visible answer may hide planning, retrieval, execution, and summarization calls. If capacity is estimated only as “daily active users multiplied by requests per user,” it will badly underestimate the real load.
At the same time, demand arrives in nonlinear bursts while supply is rigid and slow. A model release, a leaderboard ranking, or social sharing can multiply traffic within minutes, but compute supply is constrained by chip delivery, cluster build-out, networking, and power, so expansion cycles are measured in weeks or even months. Subscription plans built on “unlimited” usage or overly loose quotas amplify oversell risk, because the cost variance across heavy users becomes extreme.
3. How to Size Inference Capacity: Turning Pressure into Numbers with Two Constraints
Judging whether capacity is sufficient starts with a computable model. A common approach estimates concurrency with Little’s Law and then validates the maximum number of sessions against the GPU memory limit. The code below is pseudocode; the parameters must come from your own load tests and model configuration.
import mathtarget_qps = 50avg_ttft = 1.2avg_output_tokens = 800tpot = 0.03avg_latency = avg_ttft + avg_output_tokens * tpotrequired_concurrency = target_qps * avg_latency# num_layers, kv_heads, and head_dim come from the model configuration.# dtype_bytes is the number of bytes per cache element (FP16 uses 2).# gpu_mem, weights_mem, and overhead_mem must share the same unit, e.g. bytes.num_layers = 32kv_heads = 8head_dim = 128dtype_bytes = 2gpu_mem = 80 * 1024 ** 3weights_mem = 20 * 1024 ** 3overhead_mem = 2 * 1024 ** 3input_len = 2000per_session_kv_bytes = (2 * num_layers * kv_heads * head_dim * dtype_bytes* (input_len + avg_output_tokens))max_sessions_per_gpu = max(0,(gpu_mem - weights_mem - overhead_mem) // per_session_kv_bytes)if max_sessions_per_gpu <= 0:raise RuntimeError("Not enough GPU memory for one session: shorten the context, lower concurrency, or add capacity")# safety_ratio is a headroom factor, not a multiplier; 0.70 to 0.85 is recommended.# 0.75 means reserving 25% of capacity for traffic spikes, failover, and memory fragmentation.safety_ratio = 0.75required_gpus = math.ceil(required_concurrency / (max_sessions_per_gpu * safety_ratio))
Both constraints must be checked at the same time. The typical signal of a memory constraint is concurrency rising while throughput stays flat, with obvious queuing. The typical signal of a bandwidth or compute constraint is latency becoming unacceptable even at low concurrency. In engineering practice, keep 20% to 30% of capacity in reserve; otherwise a single-point failure, a traffic spike, or a pile-up of long requests can break through whatever is left.
4. What to Do When GPU Memory Runs Short: Start with Admission Control, Scheduling, and Caching
1. Make admission control fail fast
Rate limiting should not be a single global QPS knob. An effective design combines multi-dimensional quotas with a token bucket, applying limits separately by tenant, by plan, and by request characteristics. The following is also pseudocode and needs real interface types substituted in.
# TokenBucket: keeps a long-term rate and a burst capacity per tenant_id.# consume returns success or failure; success means this request received its rate quota.# Decision: ALLOW, QUEUE_WITH_DEADLINE, REJECT_OVERLOAD.# request.estimated_tokens: input tokens plus an estimate of the maximum output tokens.class AdmissionController:def __init__(self, token_rate, burst, max_concurrency):self.bucket = TokenBucket(token_rate, burst)self.semaphore = BoundedSemaphore(max_concurrency)def allow(self, request):# Order matters: check instantaneous concurrency first, then consume long-term rate tokens.if not self.semaphore.acquire(timeout=0.5):return Decision.REJECT_OVERLOADif not self.bucket.consume(request.tenant_id,cost=request.estimated_tokens):# Failure release path: when the token bucket rejects the request, release the# concurrency semaphore immediately so requests that fail the rate check do not# hold concurrency slots.self.semaphore.release()return Decision.QUEUE_WITH_DEADLINEreturn Decision.ALLOW
The key principle is that failing fast beats queueing indefinitely. Once a request has waited past what users will tolerate, return an explicit “busy, please retry” rather than holding resources for a long time. Cost estimation must happen up front, and long-context requests deserve their own limit. Under overload, degrade in tiers instead of rejecting everything with one blanket rule.
2. Priority scheduling and multi-tenant isolation
Production inference scheduling usually relies on continuous batching, where new requests can join a batch during decoding. Supporting strategies include letting high-priority requests preempt low-priority ones, setting a concurrency cap per tenant, routing long-context requests to a separate resource pool, and using paged KV cache to reduce memory fragmentation. This prevents a single heavy user from dragging down the whole system and reduces interference between short and long requests.
3. Reuse prefix caching where it actually applies
Prefix caching reuses shared prefixes from system prompts, few-shot examples, or long-document context, cutting repeated computation. It tends to pay off with a fixed system prompt, multi-turn Q&A over long documents, and batch calls on similar tasks. The benefit, however, depends on cache hit rate, the memory budget, and the eviction policy. If the hit rate is too low, the cache itself adds memory pressure and scheduling complexity. Evaluate it jointly on hit rate, TTFT reduction, memory utilization, and eviction cost rather than assuming it suits every workload.
4. Keep model tiering and graceful degradation under control
Do not send every request to the largest model. Classify request complexity using signals such as input length, intent, tool-calling needs, and historical success rate. Simple requests go to a lightweight model; complex ones go to the flagship model. Under overload, flagship requests can be downgraded to a lighter model, have output length shortened, or have non-essential tools disabled. Degradation should not happen silently: return an appropriate notice and record the degradation reason and ratio. If a lightweight model’s output fails validation or its confidence is too low, fall back to a more capable model or convert the request into an asynchronous task.
5. Make work asynchronous to smooth instantaneous peaks
Long-document parsing, deep reasoning, and batch generation tasks can be converted into asynchronous jobs. The system returns a task ID immediately, and the client polls for results or receives a callback. Asynchronous execution turns an instantaneous concurrency peak into a queueable work queue, which smooths capacity peaks very effectively and is often underestimated.
6. Make observability good enough to trigger action early
Monitor at least GPU memory utilization, compute utilization, request queue length, queue wait time, TTFT, TPOT, end-to-end P95/P99, error rate, timeout rate, the share of requests coming from paying users, and the distribution of per-user cost. Alerting can use combined thresholds, for example: GPU memory utilization above 85% for 5 consecutive minutes, or queue length exceeding twice the target concurrency, or queue wait P95 above 500 ms, or TTFT P95 above 2 s. To reduce false positives, trigger on several consecutive windows, tier alerts by service level, and suppress brief spikes.
5. How to Validate Capacity Before It Goes Live
Scaling up should not rely on theoretical formulas alone. Recommended practices are canary releases, shadow traffic, long-context load tests, peak-traffic replay, and failure drills. Shadow traffic replicates real requests without serving the responses, which reveals how the scheduler, caches, and GPU memory behave. Long-context load tests should cover maximum input, maximum output, and mixed high-concurrency scenarios. Failure drills should simulate a single-GPU failure, a cache node outage, and upstream throttling to confirm that degradation paths, circuit-breaking policies, and recovery procedures work.
6. How to Avoid Overselling Subscriptions
Plan design should avoid simple unlimited usage. A safer approach is to state explicit token quotas, concurrency caps, rate caps, and a hard per-period ceiling so that cost and entitlements line up. When rules change, keep existing plans usable and provide a clear upgrade path with an explanation of any price difference. Opening new plans, pausing them, and ramping them gradually should be controlled through configuration or an operations console, supported by a queue or waitlist mechanism, rather than depending on a code release.
External communication must offer certainty. A status page or announcement can list the affected regions, the affected plans, the current state of new subscriptions, whether existing users’ entitlements change, the conditions for resumption, the expected update time, and where to get support. Users really want to know when they can use the service and whether their entitlements are affected; setting clear expectations usually cuts complaints and churn more effectively than vague explanations.
7. How Callers Avoid Being Blocked by a Single Upstream Provider
For developers, do not hard-bind your product’s capabilities to one model. Recommended practices are to abstract a unified inference interface that hides protocol differences between providers, to build multi-route routing with automatic failover, to log token consumption, latency, and cost for every call, and to define cost budgets and a degradation strategy. The code below is pseudocode; a real integration still needs provider adapters, authentication, streaming responses, and retry boundaries.
class UnifiedLLMClient:def __init__(self, providers, fallback_order):self.providers = providersself.order = fallback_orderdef chat(self, req):for name in self.order:p = self.providers[name]if not p.is_healthy():continuetry:return p.chat(req, timeout=p.sla_timeout)except (RateLimited, Timeout, ServerError):p.mark_unhealthy()lightweight = self.providers.get("lightweight")if lightweight and lightweight.is_healthy():return lightweight.chat(req.degrade(max_tokens=512,enable_tools=False))raise ServiceUnavailable()
The adapter layer also needs explicit timeout tiers, a retry policy, idempotency keys, and budget control. Retry only errors that are genuinely retryable, to avoid double billing; idempotency keys prevent a retry from generating the same work twice; budget control stops abnormal traffic from draining the quota.
8. Key Takeaways
Compute pressure is not a decline in product capability; it is the external symptom of inference capacity supply failing to keep up with demand growth. How do you size inference capacity? By estimating concurrency and validating it against the GPU memory limit as a second constraint. What do you do when GPU memory runs short? Apply admission control first, then priority scheduling, prefix caching, model tiering, and asynchronous execution. How do you avoid overselling subscriptions? Use explicit quotas, a configurable entry point, protection of existing entitlements, and clear communication. Building capacity management, degradation, and fallback into the architecture is what converts external compute risk into a controllable engineering capability.
