Why Large Model Services Are Constantly "Busy": Capacity, Scheduling, and Observability

    This article explains why large language model inference endpoints frequently return "service busy" errors, framing the problem as a queueing issue rather than a single machine failure. It covers why sparse MoE activation is still expensive, how to quantify capacity with three key ratios, and which scheduling, batching, and degradation practices keep interactive traffic responsive. It also outlines the observability signals needed to turn "busy" into an actionable engineering metric.

    1. The Symptom and the Root Cause: “Service Busy” Is Not a Single-Point Failure

    In large-scale model serving, the message users see—“request volume is high, please retry later”—is usually not a crashed machine. It is a classic queueing problem: the arrival rate exceeds the effective service rate, the queue length crosses a threshold, and the system deliberately applies rate limiting to protect itself. After a recently open-sourced, trillion-parameter-class MoE model took a leading spot on a public benchmark, user traffic climbed quickly and pushed an engineering problem once confined to lab discussions in front of every inference serving team.

    The key point is that stronger models do not automatically lower the compute cost per request. Parameter count, number of experts, and activation strategy together determine memory footprint and memory-access pressure, while benchmark-driven traffic is bursty, long-tailed, and concentrated in a few peak windows. Put together, these create a structural tension: the more capable a model is advertised to be, the more likely the service is to become busy.

    2. Why Sparse Activation Is Still Expensive

    The core idea of Mixture of Experts (MoE) is “very large total parameters, only a small subset used per pass.” With hundreds of billions to trillions of parameters, hundreds of experts, and only a dozen or so activated each time, the theoretical compute looks manageable—but the engineering cost moves elsewhere:

    • Memory residency cost stays fixed. All expert weights must remain resident in GPU memory or be swappable in quickly; memory capacity becomes a hard constraint that directly limits the safe batch size a single device can carry.
    • Memory access and communication become the main bottleneck. Uncertain routing produces large, jittery All-to-All traffic under expert parallelism, and cross-node bandwidth often saturates before compute does.
    • Batching efficiency is fragmented by routing. Within a single batch, requests hit an uneven distribution of experts—hot experts overload while cold ones sit idle, creating load skew.
    • Longer context tightens the KV cache. Long documents and repository-level code context make cache usage grow linearly, further compressing available concurrency.

    Roughly, the cost of a single request can be understood as:

    1. cost ≈ weight reads (related to number of activated experts)
    2. + KV cache reads/writes (related to context length and concurrency)
    3. + routing and cross-node communication overhead
    4. + queue wait time (related to arrival rate / service rate)

    The first three terms determine what is “expensive”; the fourth determines what is “busy.” Scaling out only eases the fourth term—the first three must be addressed through architecture and scheduling.

    3. Capacity Planning: Start With Three Ratios

    Before scaling out, quantify the metrics instead of blindly adding hardware.

    1. Memory budget ratio: available memory ÷ (resident weights + peak KV cache + activation and temporary buffers). This ratio sets the safe concurrency ceiling per instance; keep a 15%–25% margin to absorb long-context spikes.
    2. Throughput service-rate ratio: target peak QPS ÷ measured single-instance QPS (split into short and long requests). Long requests should be grouped separately so they do not drag down the overall queue.
    3. Bandwidth watermark ratio: peak cross-node communication ÷ available network bandwidth. If this ratio stays above 0.7 for long, prioritize optimizing parallel partitioning and routing over adding more hardware.

    Layered deployment is the more realistic option: split short-context, low-latency interactive traffic from long-context, offline batch traffic into separate resource pools, each with its own batch size and timeout policy.

    4. Key Scheduling and Batching Practices

    • Continuous batching with priority queues. New requests join a batch on arrival while being tiered by tenant, request length, and timeout sensitivity, so interactive requests are not starved by long jobs.
    • Length bucketing. Group requests into batches by context length to reduce idle spinning caused by uneven compute within a batch.
    • Prefix cache reuse. Stable prefixes such as system prompts, coding conventions, and long documents can reuse prior computation, cutting repeated work significantly; the cache key must include the model version and key parameters to avoid incorrect reuse.
    • Expert load balancing. Introduce a capacity factor and load penalty during routing to suppress hot-expert overload; consider redundant replicas for extremely hot experts.
    • Request-level degradation. During peaks, automatically shorten the maximum output length and disable non-essential high-cost capabilities, reserving limited compute for the core path.
    1. {
    2. "queue_policy": {
    3. "max_batch_tokens": 32768,
    4. "buckets": [2048, 8192, 32768],
    5. "priority": ["interactive", "batch_offline"],
    6. "timeout_ms": 8000
    7. },
    8. "degrade": { "max_output_tokens": 1024, "disable_long_context": true }
    9. }

    5. Observability: Turning “Busy” Into a Locatable Signal

    Without fine-grained metrics, scaling out is guesswork. At minimum, collect: queue wait-time distribution (P50/P95/P99), actual batch fill rate, hit distribution and skew per expert type, KV cache hit rate and peak usage, cross-node communication latency, and per-request token cost and time-to-first-token. Alerts should trigger on two conditions together—“wait-time P95 plus queue watermark”—rather than CPU or memory utilization alone, which in inference scenarios is often “not high but already saturated.”

    6. Cloud Deployment: Assembling Elasticity From General Capabilities

    In a cloud environment, you can combine a container platform to host inference instances with elastic scaling, object storage to hold model weights and versions, a message queue for request buffering and peak shaving, logging and monitoring/alerting services to aggregate metrics, and load balancing with session affinity to route traffic for prefix cache reuse. The general cloud product categories offered by Baidu AI Cloud in such scenarios can serve as a component reference for building an elastic inference pipeline; the key is to close the loop on four things—buffer, tier, degrade, observe—rather than scaling a single point.

    7. Conclusion

    Trillion-parameter models and sparse activation will not make serving automatically cheaper, and benchmark-driven traffic will not smooth itself out. Account clearly for the three ledgers—memory, bandwidth, and queue—build a buffer with bucketing, prefix reuse, load balancing, and tiered degradation, then let fine-grained observability drive capacity decisions. Do that, and “service busy” stops being a passive notice and becomes a predictable, operable, and optimizable engineering metric.