High Availability for LLM Inference: Four Lines of Defense and an Implementation Checklist

    This article examines a late-March 2026 incident pattern on a large-model platform, explains why LLM inference services are prone to failure, and presents four practical defenses: capacity planning, tiered degradation, multi-active disaster recovery, and observability. It also includes a backoff-and-retry code example, operational cautions, and an acceptance checklist for implementation.

    1. Incident Overview and Data Conventions

    At the end of March 2026, a large-model service platform experienced service anomalies for three consecutive days. The status page cited in the source recorded three outages: starting on the morning of March 29, lasting about 1 hour 48 minutes, during which users saw a “server busy” message; starting on the evening of March 30, lasting about 10 hours 13 minutes, the longest of the three; and about 1 hour 3 minutes on the afternoon of March 31. The three outages totaled about 13 hours 4 minutes.

    These figures are taken from the source’s citations and were not independently verified by this article. Readers should refer to the original disclosure on the status page.

    The source also mentioned that overall availability over the past 30 days was about 98.61%. There are two issues to note when comparing this figure with the outage timeline.

    First, the conversion requires a clear period. Thirty days is 720 hours, and 98.61% availability corresponds to 720 × 1.39% ≈ 10.0 hours of unavailability.

    Second, the two data sets cannot be directly corroborated. The three outages totaled about 13 hours, which already exceeds 10 hours. This suggests that the time window used for availability statistics, whether planned maintenance was excluded, and the start and end points of outage timing were likely different from the conventions used in the event timeline. Before comparing service quality, these conventions should be unified.

    The table below lists the allowed downtime in a 30-day period for different availability targets, calculated as 720 hours multiplied by the unavailability ratio.

    Availability target Allowed downtime in 30 days
    99.9% About 43.2 minutes
    99.95% About 21.6 minutes
    99% About 7.2 hours
    98.61% About 10.0 hours

    For end users, this incident may have meant only several periods of being unable to use the service. For engineering teams, the more important concern is that failures occurred repeatedly within three days. Repeated failures usually point to systemic gaps in capacity planning, architecture redundancy, change management, or retry policy, rather than a single accidental point of failure.

    2. Why LLM Inference Services Are Prone to Failure

    Online large-model services differ significantly from traditional web services. Understanding these differences is a prerequisite for designing high-availability solutions.

    1. High and volatile resource consumption. Inference depends on large GPU clusters. The GPU memory usage and compute duration of a single request vary with input and output length. Traffic spikes caused by hot events quickly lead to request queueing. Once queues build up, gateway timeouts and insufficient GPU memory can aggravate each other, expanding the scope of the failure.

    2. Long-lived connections amplify the impact. Streaming output keeps a conversation connection open for tens of seconds. When a failure occurs, many unfinished connections need to be cleaned up, and clients automatically retry.

    A retry storm refers to many clients repeatedly sending requests at around the same time, multiplying the actual request volume and further overwhelming a service that is already slow. It is usually triggered by three conditions together: timeouts that are too short, retries without intervals, and retry counts without a cap. With proper backoff and rate limiting, retries themselves are beneficial and do not necessarily amplify failures.

    3. Long recovery cycles. Inference instances have slow cold starts, and model loading and traffic warm-up both take time. Even after the root cause is identified, recovery is usually slower than for stateless services. The single outage of about 10 hours mentioned in the source may be related to the chain of “identify root cause, implement the fix, verify the result, and gradually ramp traffic.” Public information is insufficient to determine the specific cause, and this article does not infer it.

    3. Four Lines of Defense

    1. Capacity Planning

    Capacity planning starts with stress testing. Stress testing should determine the concurrency limit of a single instance at acceptable latency, as well as the curve of first-token latency as concurrency changes.

    • Stress test at 1.5 times the historical peak to validate system behavior under traffic beyond expectations.
    • Estimate GPU memory usage by bucketing input length and output length, so that long-context requests do not monopolize an entire instance.
    • Reserve redundant capacity. For example, configure N+1 instances and keep daily utilization around 70% to leave headroom for bursts.

    The numbers above are examples and should be based on the team’s own stress test results.

    2. Tiered Degradation

    Degradation requires business priorities to be defined first. A common tiering approach is as follows.

    • P0: Core online dialogue, prioritized for protection.
    • P1: Batch processing, offline summarization, and similar tasks, which can be queued or delayed.
    • P2: Non-critical features, such as recommendation generation and additional analysis, which can be disabled during peak periods.

    Available degradation measures include limiting the maximum number of output tokens per request, temporarily disabling ultra-long context, switching to a smaller model, returning an explicit error for requests that exceed the queue timeout, and returning cached results for frequently asked questions.

    Every degradation switch needs an owner, clear trigger conditions, and rollback steps. Switches should also be drilled during normal times; otherwise, they may not work as expected during a real incident.

    3. Multi-Active Disaster Recovery

    The goal of multi-active disaster recovery is to enable automatic traffic transfer to other nodes when a single availability zone or region fails.

    • Inference clusters should be distributed across at least two availability zones. The gateway layer should continuously perform health checks and support weighted traffic switching.
    • Model weights, inference configurations, and version numbers need to remain consistent to avoid different output behavior after traffic switching.
    • Define the recovery time objective (RTO) and recovery point objective (RPO). For stateless inference requests, the focus is usually RTO.

    Multi-active architecture has a high cost. Teams can start with “cold standby plus rapid activation,” but they must document the expected RTO and regularly drill traffic switching, replacing estimates with measured values.

    4. Observability

    The goal of observability is to detect anomalies before users complain. At a minimum, the following metrics should be covered.

    • Queue length and queue wait time, which are the earliest signals of congestion.
    • First-token latency and output tokens per second, which reflect user experience.
    • GPU memory utilization and instance health status.
    • Timeout rate, error code distribution, and retry requests as a share of total requests.

    Example alert thresholds are below. Actual values need to be adjusted based on business baselines.

    • Queue wait time P99 exceeds the configured value for 2 minutes, triggering an alert.
    • Timeout rate exceeds 1% for 5 minutes, triggering an alert.
    • Retry requests exceed 10%, triggering an alert, which usually means downstream services have already begun to slow down.

    In addition, timestamps for internal metrics should align with the external status page. Only after timing conventions are unified can outage duration be calculated accurately during a postmortem.

    4. Backoff Retry Example and Acceptance Checklist

    The example below shows client retry logic with exponential backoff, random jitter, a retry cap, and timeout control.

    1. import random
    2. import time
    3. MAX_RETRIES = 3 # Retry at most 3 times, for up to 4 requests total
    4. BASE_DELAY = 0.5 # Initial backoff duration in seconds
    5. MAX_DELAY = 8.0 # Maximum single backoff duration in seconds
    6. REQUEST_TIMEOUT = 30.0 # Single request timeout in seconds
    7. RETRYABLE_STATUS = {429, 503, 504}
    8. def call_with_backoff(request):
    9. for attempt in range(MAX_RETRIES + 1):
    10. try:
    11. resp = send(request, timeout=REQUEST_TIMEOUT)
    12. if resp.status_code in RETRYABLE_STATUS:
    13. raise RetryableError(resp.status_code)
    14. return resp
    15. except (RetryableError, TimeoutError):
    16. if attempt == MAX_RETRIES:
    17. raise
    18. # Exponential backoff with full jitter to avoid many clients retrying at once
    19. delay = min(MAX_DELAY, BASE_DELAY * (2 ** attempt))
    20. time.sleep(random.uniform(0, delay))

    When using this logic, also note the following points.

    • Retry only on 429, 503, 504, and timeouts. Parameter errors (4xx) and similar requests have problems in the request itself, so retrying is meaningless.
    • Set a global retry budget. For example, retry requests should not exceed 10% of original requests; anything beyond that should fail directly.
    • Break the circuit when the consecutive failure rate exceeds a threshold. For example, break for 30 seconds when the failure rate exceeds 50%, then perform a half-open probe.
    • If streaming output has already begun returning content, retrying may cause duplicate output. Such requests need idempotency handling by the client or server, or should not be automatically retried.

    The acceptance checklist is below. Confirm each item before launch.

    • The stress test report covers 1.5 times peak traffic and records the latency curve.
    • All degradation switches have an owner, trigger conditions, and rollback steps, and have been drilled within the last quarter.
    • The multi-active traffic switching drill has been completed, and the recorded actual RTO meets or beats the target.
    • Core metrics such as queueing, latency, timeouts, and retry ratio are connected to dashboards, and alerts are handled by on-call staff.
    • The client has enabled exponential backoff with jitter and set a maximum retry count and global retry budget.
    • The circuit breaker policy is configured, and triggering and recovery have been verified in a test environment.
    • Every change has a canary rollout scope and a rollback plan.
    • Internal outage timing conventions match the external status page and have been written into the postmortem template.

    5. Conclusion

    Repeated outages usually indicate systemic problems in capacity, redundancy, change management, and retry governance. Single-point optimization is rarely enough. The four lines of defense need to be built together and continuously validated through drills and metrics.

    This article is based only on the public information provided in the source and has not independently verified the relevant figures. The parameters and thresholds in this article are examples and should be adjusted based on the team’s stress test results and business baselines before use.