LLM Service Instability: Compute Pressure and Building Reliability

    This article analyzes a multi-day LLM service outage that spread from API and login failures to widespread inference errors. It explains the root causes—shared failure domains, the hard capacity limits of large-model inference, and the lack of lightweight model tiers—and presents a five-layer reliability strategy covering capacity testing, failure-domain isolation, model tiering and fallback, observability, and elastic capacity. A deployment checklist is included to help teams turn potential collapse into controlled degradation.

    1. Incident Review: From a Single Failure to a Cascading Outage

    An AI assistant service experienced multiple rounds of request failures over two days. The timeline showed a clear pattern of failures arriving in batches and across layers: API availability dropped first, followed by failures in third-party login, and then, within a very short window, several models of different sizes and purposes began failing to process requests.

    Abstracting this timeline reveals three key signals:

    1. The failure was not a single point: Multiple models failed within 7 minutes, indicating the problem was not in one model’s weights or a single inference path, but more likely in a layer they all depended on.
    2. The failure persisted across days: It continued from the first evening into the second evening, showing this was not a one-off spike but a state where capacity and load had been near the critical threshold for a long time.
    3. The failure spread across layers: Peripheral components (login, APIs) failed first, then the core (inference), matching the typical progression of “resources get squeezed, then layers fall one by one.”

    2. Root Cause Analysis: Shared Infrastructure and Capacity Levels

    2.1 Shared Failure Domains Act as Amplifiers

    When multiple models share the same scheduling layer, the same pool of inference nodes, and the same caching and gateway infrastructure, resource pressure at a single point can quickly escalate into global instability. This is common in distributed systems: if failure domains are not isolated, local overload propagates through shared dependencies into full unavailability.

    2.2 Large-Model Inference Has Harder Capacity Limits

    Models with larger parameter counts have significantly higher memory usage, computation time, and queuing cost per inference. Unlike stateless web services that can scale linearly by adding instances, they are constrained by GPU memory, batching efficiency, and scheduling strategy. Once concurrency exceeds the critical level, queuing latency rises non-linearly, eventually triggering timeouts and failures.

    2.3 Missing Lightweight Tiers Leaves No Room to Divert Traffic

    If the model lineup lacks small, low-latency lightweight tiers, all requests pile onto a few heavy models. Without a buffer during peak hours, rate limiting and cascading failures become almost inevitable.

    3. Reliability Strategy: Five Lines of Defense

    3.1 Capacity and Load Testing: Map the Water Level

    • Establish capacity baselines by model, by tenant, and by API;
    • Use step-wise load testing to find the “latency inflection point,” not just throughput;
    • Set a safe water level for each model (e.g., 60%–70%), triggering scaling or degradation when exceeded.

    3.2 Failure-Domain Isolation: Don’t Let Sharing Turn into Collective Failure

    • Group inference resource pools by model size, physically isolating heavy and light models;
    • Deploy critical dependencies (gateway, cache, scheduler) across multiple availability zones;
    • Add circuit breakers for peripheral dependencies such as third-party login to prevent them from dragging down the main path.

    3.3 Model Tiering and Degradation: Give Requests a Way Out

    The core idea is “heavy requests go to heavy models, light requests go to light models, and automatic downgrade happens during anomalies.” Example strategy configuration:

    1. routing:
    2. - tier: heavy # complex reasoning, long context
    3. model: large
    4. timeout_ms: 8000
    5. fallback: medium
    6. - tier: medium # standard Q&A
    7. model: medium
    8. timeout_ms: 4000
    9. fallback: light
    10. - tier: light # simple classification, summarization
    11. model: light
    12. timeout_ms: 1500
    13. fallback: cache

    When queuing for the heavy model exceeds the threshold, degradable requests are automatically routed to a lighter tier or cached results, ensuring “a bit slower but still usable.”

    3.4 Observability: From “User Feedback” to “Minute-Level Diagnosis”

    • Metrics: success rate, P95/P99 latency, queue length, and GPU memory usage by model;
    • Logs: a unified trace_id spanning from gateway to inference nodes;
    • Alerts: triggered by dual conditions of “error rate + latency inflection point” to reduce noise.

    3.5 Elastic Capacity and Cost Balance

    • Use a container platform for elastic scaling, but set minimum resident instances to avoid cold starts;
    • Build a semantic cache for cacheable results to reduce repeated inference;
    • Use a message queue to smooth peaks, converting burst traffic into controllable asynchronous processing.

    4. Deployment Checklist

    • Does every model have a clear safe water level and scaling threshold?
    • Are heavy and light models isolated into separate failure domains?
    • Are there at least two degradation paths (downgrade model, use cache)?
    • Are all third-party dependencies covered by circuit breakers and timeout governance?
    • Can you locate the specific model and dependency within 5 minutes?

    5. Conclusion

    The reliability of LLM services is essentially not about “adding more GPUs,” but about building a system around capacity, failure domains, degradation paths, and observability. When shared infrastructure is under pressure, only tiering and isolation can keep services predictable during peak hours. With general capabilities from Baidu AI Cloud in container platforms, monitoring and alerting, and log services, enterprises can build this defense faster and turn “suspected collapse” into “controlled degradation.”