LLM Service Availability Ledger: Engineering Practices Behind the SLA

    This article breaks down how to treat large language model service availability as a measurable engineering problem rather than a marketing claim. It explains how to convert availability percentages into annual downtime, why averages hide long-tail outages, and how to manage an error budget. It also covers capability tiering and graceful degradation, the trade-offs between parameter switches and standalone endpoints, differentiated timeout, retry, and circuit-breaker configuration, and the observability and compensation mechanisms needed to turn outages into auditable events. A practical implementation checklist is included.

    1. Starting From a Long Outage: Availability Is Not a Slogan

    A large model service platform experienced several service disruptions within a reporting period. One outage lasted more than four hours and affected the web app, the mobile chat experience, and two model APIs at the same time. Most of the other disruptions lasted only a few minutes to a few tens of minutes and were limited to auxiliary search capabilities, while the core chat path stayed available. Afterward, the platform compensated API users with credits and committed to preventing the same class of issue from recurring.

    The value of this incident for developers is not “who went down.” It is that it exposes a common rule: the availability of a large model service must be broken into measurable metrics before it can be governed as an engineering problem.

    2. Translating Percentages Into Time: Quantify Your Risk Exposure First

    The platform’s disclosed measurement shows availability of roughly 99.46% and 99.74% for its two model APIs. The standard industry conversion is straightforward: a year has 8,760 hours, so 99.46% corresponds to about 47.3 hours of downtime, and 99.74% to about 22.8 hours.

    Read these numbers this way:

    • The gap between 99.9% and 99.5% is an order of magnitude. The former allows about 8.76 hours of annual downtime; the latter approaches 47 hours, more than five times as much.
    • Averages hide the long tail. A single four-hour outage consumes nearly 10% of the annual budget, which means “meeting the average” is not the same as “meeting the user experience.”
    • The availability budget belongs in design, up front. If your business promises 99.9% and the upstream only provides 99.5%, the gap must be closed by architecture, not by hope.

    A recommended practice is to write the error budget into the requirements document and pin down the measurement with sample code:

    1. # Approximate service availability with request success rate, aggregated per minute
    2. budget_minutes = 8760 * 60 * (1 - 0.999) # annual budget at a 99.9% target ≈ 525 minutes
    3. used = sum(m["fail_minutes"] for m in monthly_report)
    4. print(f"Remaining error budget: {budget_minutes - used:.1f} minutes")

    3. Tiered Degradation: Make “Partially Available” the Normal State

    One detail in the original account deserves emphasis: most disruptions affected only auxiliary retrieval tools, while core chat was never interrupted. That is exactly the value of capability tiering. In engineering terms, large model capabilities should be split into three layers:

    1. Core layer: basic text generation and chat completion, held to the highest availability tier;
    2. Enhancement layer: deep reasoning, web retrieval, file parsing, which may time out and degrade;
    3. Peripheral layer: standalone capabilities such as speech synthesis, speech recognition, and optical character recognition, which may be circuit-broken individually.

    The corresponding strategy: when the enhancement layer fails, fall back to the core layer automatically and mark the response explicitly with something like “retrieval was not enabled for this result,” so users do not mistake degradation for a drop in model capability.

    1. {
    2. "answer": "……",
    3. "degraded": true,
    4. "disabled_features": ["deep_search", "file_input"]
    5. }

    4. Orchestrating Multiple Capabilities: Parameter Switches vs. Standalone Endpoints

    The platform subsequently exposed chat capabilities and low-level voice capabilities in two forms, “enable by parameter” and “standalone endpoint,” supporting individual or combined invocation. The abstracted architecture principle is:

    • Parameter switches suit capabilities tightly coupled to the main path that need to share context; the advantages are simple invocation and consistent context.
    • Standalone endpoints suit capabilities with clearly different compute profiles (recognition, synthesis, OCR), making independent scaling, independent rate limiting, independent billing, and independent troubleshooting easier.

    The orchestration layer should apply differentiated timeout and retry configuration, for example:

    1. orchestration:
    2. core_chat: { timeout_ms: 8000, retries: 1 }
    3. deep_search: { timeout_ms: 15000, retries: 0, fallback: core_chat }
    4. asr: { timeout_ms: 5000, retries: 2, circuit_breaker: true }

    The key point: more retries are not better. Blindly retrying long-running inference paths amplifies congestion and can escalate a local jitter into a global avalanche.

    5. Observability and Compensation: Turn Outages Into Settleable Events

    Delivering on “no repeat of the same issue” requires observability first. The minimum set includes success rate and time-to-first-token by model, by endpoint, and by region; end-to-end latency percentiles; rate-limit rejection rate; and queue backlog, with alerting driven by the error budget rather than by raw thresholds alone.

    The compensation mechanism should be engineered too: record unavailable duration and affected request volume as settleable events, and issue entitlements asynchronously through a message queue, so the reconciliation logic itself does not become a new failure source during an outage.

    6. Implementation Checklist

    • Replace “feels stable” with an error budget, measured per minute and published;
    • Split capabilities into three layers, and design degradation paths and user-facing notices together;
    • Use parameters for tightly coupled capabilities and standalone endpoints for heterogeneous ones;
    • Differentiate timeouts, retries, and circuit breaking; eliminate mindless retries;
    • Cover every endpoint with metrics, logs, and tracing;
    • Make the compensation flow asynchronous, auditable, and recomputable.

    Stability is not a one-time promise but a mechanism that keeps running. Converting percentages into time, splitting capabilities into layers, and turning outages into settleable events are what give developers real control when a large model service fluctuates.