LLM Service Outage Recovery and Resilience Engineering
Recovering an LLM service requires more than restarting failed instances. This article explains how to build an incident timeline, diagnose failures across gateways, scheduling, inference, and dependencies, contain overload, and verify recovery under realistic traffic. It also covers capacity headroom, safe feature rollouts, and operational practices that keep new capabilities from undermining core service availability.
Treat an Outage as a Systems Problem, Not a Publicity Event
Online large language model (LLM) services support conversations, retrieval-augmented generation (RAG), agent orchestration, and batch inference. What users experience as an inaccessible website, an unresponsive application, or slower answers usually reflects instability in the ingress, inference, state, or dependency layer.
Public discussion can easily tie an outage to speculation about the next model release. But troubleshooting and capacity management do not depend on unreleased capabilities. The safer approach is to restore service-level objectives (SLOs) first and evaluate the product roadmap separately. Separating expectations from availability prevents every disruption from being interpreted as a failure of product strategy.
A typical incident may begin with website and client failures in the evening, followed by an initial fix within a few hours. Performance then deteriorates again during a quieter period or as traffic returns, with stability restored only the next morning. This pattern—recovery followed by recurrence—suggests that the initial intervention addressed symptoms rather than structural capacity or dependency constraints.
The following approach focuses on reusable engineering practices, without assuming a particular model brand or accelerator.
Separate Facts from Hypotheses with an Incident Timeline
A post-incident review should start with an objective timeline, followed by hypotheses. At a minimum, record:
- When the issue was first detected and how: synthetic probes, error-rate alerts, or user reports.
- The scope of impact: affected entry points, regions, tenants, and whether only streaming responses were affected.
- Temporary mitigations and rollback points: when rate limiting, degradation, traffic shifts, or nonessential feature shutdowns occurred.
- The interval between the first recovery announcement and renewed degradation.
- Final recovery criteria: error rate, time to first token, end-to-end response latency, and queue depth returning to baseline together.
Declaring recovery after someone manually opens the website can miss tail latency and retry storms. Recovery criteria should be automatically evaluable. For example, availability should remain above the agreed threshold for several consecutive probe cycles, while P95 latency should no longer show a sustained upward trend.
Diagnose by Layer: Ingress, Scheduling, Inference, and State
LLM request paths are long. Do not begin by speculating about model weights. Narrow the fault domain from the outside in.
Ingress and gateways. Certificate issues, DNS failures, connection limits, and exhausted WebSocket or server-sent events (SSE) connections can all cause widespread unavailability. Start with new-connection success rates and active connection counts. Check whether ingress file descriptors or load-balancer session tables have reached their limits.
Queues and scheduling. Inference requests typically pass through queues. If queue depth keeps growing while GPU or NPU utilization remains low, batching policies, concurrency limits, or upstream timeouts may be misaligned. If accelerator utilization is saturated and queues are also growing, there is a genuine capacity shortage. Rate limiting is more effective than repeatedly restarting instances.
Inference runtime. Longer contexts, more tool-call rounds, and a sudden increase in multimodal inputs change per-request memory requirements and latency. Increasing prompt-template size or the default context window without adjusting batch size can trigger out-of-memory (OOM) failures or severe slowdowns at peak load. The resulting service may appear intermittently healthy.
State and dependencies. Session storage, vector retrieval, object storage, authentication, and logging pipelines can all become hidden critical-path dependencies. Logging that fills a disk, or retrieval timeouts that block inference synchronously, can slow the entire service. Dependency calls need independent timeouts and bulkhead isolation so that one slow dependency cannot exhaust worker threads.
The following illustrative health check expresses the principle; it is not an interface provided by a particular cloud vendor:
healthy =error_rate_5m < SLO_errorAND ttft_p95 < SLO_ttftAND queue_wait_p95 < SLO_queueAND downstream_timeout_rate < budget
If any condition fails, the service should not be declared fully recovered.
Contain the Incident First: Rate Limit, Degrade, and Isolate
Before the root cause is clear, the priority is to reduce the blast radius and preserve core conversational functionality.
Apply rate limits by tenant and entry point. Prioritize interactive requests, with separate quotas for batch jobs, evaluation traffic, and retrying clients. Unlimited client retries can turn a brief failure into sustained overload. Gateways should return explicit backoff signals.
Degrade expensive features. Temporarily disable paths such as video understanding, very long contexts, and multistep agents while retaining short-text conversations. Degradation should be an explicit, user-visible product state, not an unexplained slowdown.
Isolate deployment-related changes. If the incident closely follows a configuration or model-routing change, roll back routing and default parameters before considering a container image rollback. Model weight files are large; blindly replacing them across the fleet can be slower and riskier than reverting configuration.
Protect the control plane. Monitoring, deployment, and secret-management services should not compete with inference workloads for the same saturated resources. Otherwise, troubleshooting channels can fail alongside the service.
After these measures are in place, validate with traffic replay or a canary deployment rather than immediately restoring unrestricted traffic.
Why an Apparently Fixed Service Fails Again Hours Later
Recurrence usually points to one of four gaps.
- Failed instances were cleared, but queues and retries were not. When instances recover, queued requests and client retries arrive together, creating a second surge. Before reopening traffic, discard expired requests or lengthen retry backoff.
- Capacity was planned around average traffic. A fix may appear successful during a quiet evening, then fail when daytime or promotional traffic returns. Acceptance testing should use peak demand and burst factors rather than averages.
- Long-tail inputs were not covered. A small number of very long contexts, large files, or multimodal requests can stall an entire batch. Separate requests into pools by input size so large and small requests do not share the same scheduling queue.
- Observability missed user-facing degradation. Checking whether processes are alive, without tracking time to first token, queue wait, and dependency timeouts, can mistake a running process for a recovered service.
Incident closure should therefore include a controlled load test. In an isolated environment or a limited-traffic canary, run a request distribution close to the pre-incident peak for a sustained period and confirm that queues no longer grow continuously.
Capacity and Cost: Efficient Architectures Still Need Headroom
Sparse activation architectures, including mixture-of-experts models, are widely used to balance parameter scale against per-inference cost. Lower activation cost, however, does not mean a cluster can safely operate without spare capacity.
Online services still need buffers for daily traffic cycles, retry amplification, temporary capacity reductions during rolling deployments, and rescheduling after an accelerator failure. Headroom should be guided by the error budget rather than by a theoretical minimum-cost target.
Cost and reliability should be tracked together: cost per token, P95 latency, and rejection rate under saturation. Optimizing only for cost while keeping utilization near its limit turns every campaign or default-parameter change into an availability risk.
Manage Capability Development Separately from Availability
Longer contexts, native multimodal support, tool use, and retrieval are common directions for model development. They also substantially change memory consumption, bandwidth demand, and tail latency.
These capabilities can belong on the roadmap, but their release criteria should be independent of promotional milestones:
- Enable default context changes and modality settings in stages, starting with tenants that have explicit quotas.
- Give each new path independent timeouts, concurrency limits, and circuit breakers so it does not share a failure domain with basic conversation.
- Review both quality metrics and capacity models before enabling a capability broadly.
For users and customer teams, the more useful questions are not how dramatic the next model improvement might be, but whether the current service has clear error budgets, degradation policies, and data export options.
When a vendor or team carries outsized symbolic importance, every outage can attract disproportionate attention. Engineering still needs to focus on fundamentals: software releases have defects, capacity has physical limits, and elevated expectations cannot replace redundancy or operational exercises.
A Minimum Operational Checklist for Platforms
Whether the service runs on a self-managed cluster or a general-purpose container platform with logging, monitoring, and alerting, these vendor-neutral practices apply:
- Keep status updates factual. Public status pages should describe the scope of impact and recovery progress. They should not present unreleased capabilities as either the cause of an outage or compensation for it.
- Track user-facing metrics. Monitor availability, time to first token, end-to-end latency, queue wait, dependency timeouts, and rate-limit events. Classify alerts by user impact rather than machine liveness.
- Run quarterly game days. Combine inference overload with slow dependencies to test whether rate limiting and degradation activate without manual intervention.
- Bound client retries. Use capped exponential backoff and distinguish retryable failures from invalid-request errors to prevent retry storms.
- Make changes easy to reverse. Deployment checklists should include default context settings, routing weights, batch size, and feature flags, with one-step rollback.
Organizations already using general-purpose cloud infrastructure, such as Baidu AI Cloud, should operate LLM services like other critical online systems. Object storage can hold static assets and archived logs, message queues can absorb traffic bursts, container platforms can support rolling deployments, and monitoring alerts can connect to on-call workflows.
These are infrastructure capabilities, not substitutes for application-level timeouts, isolation, or capacity models.
Conclusion
For an outage lasting on the order of twelve hours, the most useful additions to the runbook are the timeline, recurrence conditions, and closure criteria—not the surrounding sentiment.
Diagnose ingress, queues, inference, and dependencies separately. Use rate limiting and degradation to contain the incident, verify recovery under load before announcing it, and isolate new capabilities from the failure domain of basic conversation.
Debate about whether the next model will raise the capability ceiling can continue. Reliable access to the capabilities users already have should not depend on luck.
