Lessons from a Multi-Hour LLM Service Outage: Building Stability in the High-Concurrency Ingress Layer
This article analyzes a multi-hour outage on a large model platform that was traced to the web and mobile chat entry layer rather than the inference cluster. It breaks down how the failure evolved across traffic spikes, session handling, retry amplification, and recovery-phase overload, then explains why adding compute capacity does little to help. You will find practical hardening guidance for the ingress, session, and scheduling layers, capacity planning based on a shockwave model for new model releases, and the observability and incident-response practices needed to compress recovery from hours to minutes.
1. Framing the Incident: A “Waiter” Failure, Not a “Chef” Failure
A large model platform recently experienced an external service disruption lasting more than ten hours. According to the public status page timeline, the failure did not happen all at once. Instead, it followed a “recover, relapse, recover again” pattern: web and mobile entry points broke in the evening, briefly recovered late at night, then entered a second round of performance degradation, and was not marked resolved until the next morning.
The detail most worth attention from an engineering standpoint is the officially stated scope of impact. It was not a vague “site-wide outage” but a specific reference to the Web Chat Service, meaning the chat entry layer for web and mobile. This is highly informative. If the model inference cluster is the kitchen and the chefs, then what failed here was the waiter stage. The kitchen was still running, and inference capability at the API level was not systematically invalidated, but the entire path from a user opening the page to seeing an answer was broken.
This distinction is critical for stability engineering. When model inference resources are under strain, the typical symptoms are rising time-to-first-token, longer queue times, mid-generation truncation, or a uniform “system busy” message during peak hours. Entry and session layer failures look completely different: failed login validation, pages that load for a long time, sessions that cannot be established, immediate disconnection on refresh, and renewed interruption after recovery. The root causes, observability metrics, and remediation approaches for these two classes of failure barely overlap. Discussing them together only causes the postmortem to lose focus.
Since the official disclosure did not include deeper root cause details, we cannot assert whether a content delivery network, web application firewall, cache cluster, relational database, or ingress gateway failed first. From a phenomenological perspective, however, we can reconstruct a fairly typical failure evolution path.
2. How the Failure Evolved: The Model Is Never the First to Break Under Pressure
The formation of this kind of incident follows a highly similar process that can be broken into four stages.
The first stage is a sudden shift in traffic structure. Within a certain time window, new session creation, historical session restoration, page refreshes, and login validation all amplified simultaneously. What got pushed to high utilization first was not GPU inference resources but the front-end services responsible for traffic distribution and identity validation. These services are typically stateless or weakly stateful, handle extremely high QPS, and have small per-request cost but enormous aggregate volume. Once their capacity headroom is insufficient, queuing and timeouts appear quickly.
The second stage is requests entering the session layer. The system needs to read context, validate session ownership, and maintain long-connection heartbeats. If the cache or database that session state depends on experiences hotspots, connection pool exhaustion, or accumulating slow queries, requests will block at scale. What users see is “read but no reply”: the message was sent, but the answer never arrives.
The third stage is retry amplification. Clients and some intermediate layers have automatic retries enabled by default, resending on timeout. When the entry point is already saturated, retries effectively multiply valid traffic by a factor greater than 1, forming a positive feedback loop. This is one of the core mechanisms that stretched a brief failure into more than ten hours.
The fourth stage is the secondary shock during recovery. Once the service is marked recovered, backlogged requests, offline session catch-up pulls, and concentrated user revisits form a spike within minutes, breaking through the system again just as it began to stabilize. The “failure again after recovery” behavior in the original timeline essentially matches this pattern.
The conclusion is that stability bottlenecks are often not in compute but in the layer that handles access. Scaling compute is nearly useless for this class of failure.
3. Ingress, Session, and Scheduling Layers: Breakdown and Hardening
3.1 Ingress Layer
The entry gateway needs four capabilities at the same time: connection and concurrency control, a degradation switch for identity validation, timeout budgets for request bodies and streaming responses, and priority-based queuing. The engineering recommendation is to set independent quotas for different call sources so that abnormal traffic from a single entry point cannot consume all available capacity.
An illustrative ingress rate-limiting and priority configuration (pseudocode, expressing policy structure only):
ingress_policy:global_qps ceiling: adaptive # dynamically converges based on backend healthpriority_classes:- name: interactive_chatweight: 60timeout_ms: 800- name: session_resumeweight: 25timeout_ms: 1500- name: anonymous_probeweight: 5timeout_ms: 300retry:max_attempts: 1 # suppress retry stormsbackoff: jitteredload_shedding:trigger: queue_depth > thresholdaction: reject_fast # fast failure beats slow accumulation
The key principle is that fast failure beats slow accumulation. Explicitly rejecting a request within 300 milliseconds is friendlier to the system than letting it hang for 30 seconds before timing out, and it is easier for clients to handle correctly.
3.2 Session Layer
The core risks of the session layer are state hotspots and connection leaks. Hardening directions include decoupling context reads and writes from the live connection path, deploying long connections separately from business requests, setting a hard cap on connection count and reclaiming half-open connections, and applying sharding plus multi-level local caching to session storage so that every interaction does not penetrate to the underlying store.
A dedicated channel must also be designed for “historical session restoration.” Restoration requests can tolerate second-level latency and should not compete for the same capacity as real-time conversation.
3.3 Scheduling Layer
The scheduling layer must answer this question: when an availability zone or a model version slows down, can traffic automatically route around it? The key points are that health probes must be based on real business metrics (time-to-first-token, error rate, queue depth) rather than port liveness alone; circuit breaker thresholds must be linked to capacity watermarks; and canary rollout and rollback must be one-click operations, because during an incident the speed of human action is the speed of system recovery.
4. Capacity Planning: Treat a New Model Release as a Shockwave Event
A new model version release does not bring linear traffic growth but a pulse-shaped shock: media exposure, social sharing, batch registrations, and trial surges can stack up within hours. Capacity planning should follow a shockwave model rather than an average model.
There are four actionable practices. First, reserve headroom based on a peak multiplier, and measure the ingress layer and the inference layer separately, because their bottlenecks appear in a different order. Second, run full-path load tests; the test must cover the entire path through ingress, authentication, session, scheduling, and inference. Testing only the inference cluster yields overly optimistic conclusions. Third, establish queuing and reservation mechanisms to spread instantaneous pulses across a timeline, trading predictable hour-level latency for overall availability. Fourth, split the release into canary batches, observing core metrics for stability before increasing volume for each batch.
5. Observability and Incident Response: Compressing Ten Hours into Minutes
Long outages are usually not technically unsolvable but rather too slow to diagnose. The observability system should cover at least three layers of metrics: concurrency, rejection rate, and queue time at the ingress layer; connection success rate, context read latency, and connection pool usage at the session layer; and queue length and time-to-first-token at the inference layer. All three need to be correlated by the same request identifier to form end-to-end tracing.
Incident response plans must answer four questions: who has the authority to enable degradation within minutes, which non-core capabilities degradation specifically turns off, how announcements and the status page are kept in sync, and at what pace traffic is ramped up during recovery. Drills matter more than documents. It is recommended to run fault injection once per quarter, actively taking down one shard of session storage or one group of ingress gateway instances to verify whether automatic rerouting actually works.
Implementing this system in the cloud typically involves combining load balancing and a traffic entry point, a container platform to host elastic replicas, a message queue to smooth peaks and fill valleys, a cache service to handle session hotspots, and logging plus monitoring and alerting for end-to-end observability. General cloud architecture practices from cloud providers such as Baidu AI Cloud can be used to align capacity and disaster recovery design.
6. Conclusion: Platform Capability Is the Long-Term Moat
An ingress layer failure deserves serious attention because what it exposes is not a model capability problem but a platform engineering maturity problem. Model performance determines whether users are willing to stay for a first visit; platform stability determines whether they stay. For a new version release, directing part of the scaling budget toward ingress governance, session architecture, rate limiting and degradation, and observability, trading controlled queuing and canary rollout for overall availability, is the right way to turn a shockwave into a growth opportunity.
