Why LLM Services Keep Showing "Service Busy" Errors

    This article explains why large language model services frequently return "service busy" messages, showing that the real cause is usually temporary resource exhaustion rather than model size alone. It covers how traffic spikes, long contexts, and sparse expert architectures create bottlenecks, and walks through capacity planning, request scheduling, prefix caching, elastic scaling, graceful degradation, and observability practices for building stable LLM serving systems.

    1. The Real Cause: Busy Is Not “The Model Is Too Big” but “Resources Are Momentarily Drained”

    When users repeatedly see “service busy, please try again later,” the first assumption is often that the model has too many parameters or that compute is insufficient. That is only partly correct. The real cause is usually that ultra-large sparse architectures (commonly mixture-of-experts designs, with parameter counts reaching the trillions, where only a small subset of experts is activated per inference) concentrate requests onto a few hot experts and a few long-context requests during traffic spikes, causing momentary contention for GPU memory, bandwidth, and scheduling queues.

    Think of a single inference request as a pipeline: request intake, authentication and rate limiting, context assembly, the prefill stage, token-by-token decoding, and post-processing with streaming output. A queue forming at any stage is perceived by the user as “busy.” Therefore, stability work must start from the end-to-end path rather than focusing only on a single metric like GPU utilization.

    2. Why “A Great Model” Translates Directly into “A Crowded Service”

    1. Capability Leaps Drive Nonlinear Traffic Growth

    When a general capability (for example, front-end code generation or long-document understanding) performs strongly in public benchmarks, user growth is not linear but bursty. Attention from leaderboards can turn into concentrated traffic within hours, and capacity planning based on averages will inevitably be broken by the peak.

    2. Long Contexts Are the Main Consumers of GPU Memory

    Memory usage during decoding is roughly linear in context length, while compute in the prefill stage grows faster with length. A small number of very long requests can drop the concurrency capacity of an entire machine by an order of magnitude, which is a common reason for “not many users, but it is still slow.”

    3. Load Imbalance in Sparse Architectures

    Expert structures reduce per-request compute in theory, but expert activation under real traffic is uneven. Devices hosting hot experts become bottlenecks while other devices idle, and overall throughput is held back by the slowest node.

    3. Capacity Planning: First Calculate How Much Concurrency You Can Serve

    It helps to break capacity into three quantifiable dimensions rather than estimating loosely:

    • Concurrent sessions: the number of requests simultaneously in the decoding state;
    • Context budget: average input length, average output length, and the share of long requests;
    • Latency targets: percentile values for time to first token and overall completion latency (such as P95 and P99).

    A simplified estimation approach is shown below (illustrative only, not parameters for any specific product):

    1. # Illustrative capacity estimation logic only; values must come from your own load tests
    2. def estimate_capacity(qps, avg_in, avg_out, kv_per_token, gpu_mem, reserve=0.8):
    3. peak_tokens = qps * (avg_in + avg_out)
    4. required_mem = peak_tokens * kv_per_token
    5. usable_mem = gpu_mem * reserve
    6. return required_mem / usable_mem # a result > 1 means you need to scale out or throttle

    The key action is to load test first: build a request set from real business distributions, measure the maximum stable concurrency at different context lengths, and form a three-dimensional baseline table of “length, concurrency, latency” as input for autoscaling.

    4. Request Scheduling: Stop Long Requests from Hurting Short Ones

    • Queue isolation: place long-context requests and short Q&A requests in separate queues and separate resource pools so they do not crowd each other out.
    • Priority and quotas: set quota limits for paid or critical workloads to prevent a single caller from consuming all resources.
    • Batch strategy tuning: balance throughput and latency, and reduce the batch wait window for latency-sensitive traffic.
    • Streaming responses: emit the first token as early as possible, which noticeably improves perceived experience even if total time is unchanged.

    5. Caching and Reuse: The Cheapest Performance Optimization

    Prefix reuse is one of the highest-value techniques for long-context scenarios. System prompts, knowledge base snippets, and code repository context often repeat across requests; caching and reusing their computed results can greatly cut repeated prefill cost.

    1. request = stable prefix (system instructions + knowledge snippets) + variable part (user question)
    2. cache key = hash(stable prefix)
    3. on hit, skip prefix prefill and process only the variable part

    You can also cache results for frequent similar questions and set a reasonable invalidation policy to avoid stale answers.

    6. Elasticity and Degradation: Flatten the Peak

    • Elastic scaling: use queue length, queueing latency, and GPU memory水位 as scaling signals, which track the real bottleneck more closely than CPU metrics alone.
    • Asynchronization: move non-real-time tasks (batch summarization, offline generation) into a message queue for off-peak consumption.
    • Tiered degradation: during peaks, progressively enable shorter contexts, disable non-core features, switch to a smaller model, or fall back to rule-based replies.
    • Queueing and reservations: clearly communicate expected wait time, turning “failure” into “predictable waiting.”

    Degradation switches should be configurable for fast rollback:

    1. degrade_policy:
    2. trigger: queue_latency_p95 > 3s
    3. actions:
    4. - shorten_context: 4096
    5. - disable_rerank: true
    6. - fallback_to_small_model: true

    7. Observability: No Measurement, No Stability

    Build a metrics system covering the full path: intake success rate, number of throttled requests, queueing duration, time to first token, cost per thousand tokens, cache hit rate, and hot expert distribution. Pair this with logging and monitoring alerts, tiered thresholds, and an on-call response process. During incident reviews, focus on which stage saturated first rather than only looking at totals.

    8. Running It on the Cloud: Build the Foundation with General Capabilities

    To build this kind of service on Baidu AI Cloud, you can combine a container platform to host inference instances, object storage for models and corpora, a message queue for peak shaving, logging and monitoring alerts to close the observability loop, and elastic scaling to handle bursty traffic. The core principles are: separate stateful from stateless, separate real-time from offline, and separate degradable from non-degradable.

    9. Conclusion

    “Busy” is a by-product of proven capability, not a technical defect. A truly mature solution builds capacity, scheduling, caching, elasticity, and degradation into an engineering system beyond model capability. When the peak arrives, the system can queue gracefully, degrade smoothly, and recover quickly, so users experience not a failure message but a stable, trustworthy service.