Why LLM Online Services Frequently Crash: Thoughts on High Availability and Stability
Recent frequent outages in large language model (LLM) online services have raised concerns about system resilience. This article analyzes the gap between instantaneous success rates and overall availability metrics, explores the unique challenges of building highly available LLM inference services—such as GPU resource constraints and streaming connection complexities—and provides actionable recommendations for both service providers and developers to enhance fault tolerance and stability.
1. Incident Review: Why Outages Strike at the Worst Times
Recently, a major LLM online service experienced consecutive anomalies over two days, prompting significant user feedback:
- The first incident occurred on a weekday afternoon, with intermittent issues lasting over four hours. For about an hour and a half, the service was practically unusable, manifesting as page load failures, dropped connections, and a sharp drop in API availability.
- The second incident happened around 9:00 PM that night, with multiple primary model APIs experiencing severe request processing anomalies for over half an hour.
Data shows that in the past 30 days, the service experienced dozens of incidents, averaging more than one per day. On the worst day, overall availability dipped below 70%, accompanied by search request error rates exceeding 20%, login channel anomalies, and significantly increased response latency. Although recovery was generally fast—with a median recovery time of just over 10 minutes—the overall 30-day availability remained around 96%.
2. 99.9% vs. 96.43%: How to Read Availability Metrics
Many users see a “request success rate of 99.9%+” and assume the service is fine, while viewing an “overall availability of 96.43%” as unacceptable. Both reactions highlight different facets of the same issue.
1. Instantaneous Success Rate is a “Point” Metric
A 99.9% request success rate over the last 24 hours indicates the system is currently healthy but says nothing about the past 30 days. Server-side monitoring typically uses rolling windows; metrics rebound quickly after a fix, easily diluting historical degradation.
2. Overall Availability is a “Surface” Metric, but Less Sensitive to Users
While 96.43% sounds close to 99%, it translates to over 25 hours of cumulative downtime in 30 days. More critically, outages are not evenly distributed in time. When anomalies cluster during weekday afternoons or evening overtime hours, the perceived loss for users is far greater than the numbers suggest.
3. Median Recovery Time Masks Frequency Issues
A median recovery time of 13 minutes is indeed excellent, but frequency dictates user experience. If every outage only lasts 10 minutes but occurs two or three times a day, user workflows are still repeatedly interrupted. For a tool used for serious work, an excellent MTTR (Mean Time To Recovery) is merely a passing grade; increasing MTBF (Mean Time Between Failures) is the true test.
3. Why LLM Services Are Particularly Prone to Stability Issues
Compared to traditional web services, building high availability for LLM inference services is inherently harder for several reasons:
1. Rigid and Expensive Inference Resource Consumption
Model inference relies on high-performance computing, and the cycle and cost of elastically scaling GPU resources are much higher than standard stateless services. During traffic spikes, it is difficult to rapidly replenish capacity, while maintaining capacity redundancy implies high idle costs. This means inference clusters often run at high watermarks with very little buffer against fluctuations.
2. Long Connections and Long Requests Amplify Fault Impact
LLM interactions are mostly streaming long connections, with single requests lasting tens of seconds or even minutes. If an inference node fails, it isn’t just one request affected—a batch of ongoing sessions drops simultaneously. Retry storms further impact upstream services, causing a cascading avalanche.
3. Multi-Model and Multi-Version Coexistence Increases Complexity
A single platform often simultaneously runs base conversational models, code models, vision models, and deep research models, each with distinct dependency chains and deployment topologies. A configuration change or dependency fluctuation in any component might manifest merely as a “partial outage for a specific model,” making troubleshooting far more difficult than in monolithic applications.
4. Long Upstream Dependency Chains
Peripheral dependencies like search augmentation, knowledge base retrieval, authentication, and SMS channels can present as “service unavailable” to users if any link fails. The aforementioned spikes in search request errors and SMS login anomalies are essentially typical dependency chain failures.
4. Implications for Service Providers: Stability as a First-Class Citizen
From an engineering perspective, supporting a tool meant for serious production requires continuous investment in at least the following areas:
- Tiered Capacity Planning: Establish traffic baselines based on business hours (e.g., weekdays 14:00–18:00, 21:00–23:00). Pre-warm and scale up before peaks to avoid running on the edge of a capacity cliff during peak demand.
- Fault Isolation and Degradation: Use request queues, rate limiting, and multi-tenant isolation to prevent a single model or tenant’s anomaly from escalating into a global failure. Support automatic degradation for non-core paths (like search augmentation).
- Observability: Implement full-link tracing across the gateway, scheduler, and inference layers to shorten root cause analysis time. Differentiate between “partial model anomaly” and “overall unavailability” to keep status page information accurate and trustworthy.
- Change Management: Most online incidents stem from changes. Avoiding peak hours for releases, adopting canary/gradual rollouts, and possessing quick rollback capabilities can significantly reduce outage frequency.
5. Advice for Developers and Enterprise Users: Don’t Put All Eggs in One Basket
1. Evaluate Services Beyond Model Capabilities
When selecting a provider, look past benchmark scores. Focus on historical availability, status page transparency, SLA commitments and compensation clauses, and whether they offer same-city or cross-region redundant deployment capabilities.
2. Implement Client-Side Fault Tolerance
For business systems integrating LLM APIs, it is recommended to implement timeout control, exponential backoff retries, circuit breakers, and multi-channel switching on the client side. Example code:
import timedef call_with_retry(fn, max_retries=3, base_delay=1.0):for attempt in range(max_retries):try:return fn()except TransientError:if attempt == max_retries - 1:raisetime.sleep(base_delay * (2 ** attempt)) # Exponential backoff
3. Prepare Degradation Paths for Critical Business
Tasks like coding or batch processing that can be interrupted and retried carry relatively manageable risks. However, real-time, customer-facing business should design degradation plans, such as local cache fallbacks or switching to backup service channels.
6. Conclusion
The fact that LLM services can support large-scale, high-intensity daily production use is remarkable progress in itself. But precisely because users treat them as primary production tools, the weight of stability must supersede flashy features. Fast recovery is commendable, but “having fewer incidents” is always more important than “fixing it fast”—a lesson all online services must master to reach true maturity.
