Fault Tolerance Practices for LLM Services During Performance Degradation

    This article examines how to keep applications running when an upstream large language model service degrades. Using a real-world incident as a starting point, it explains what status-page labels actually mean, how to run layered self-checks to separate your own issues from platform problems, and which observability signals make failures attributable. It then covers retry discipline with exponential backoff and jitter, timeout budgets, circuit breakers, bulkhead isolation, tiered fallback strategies, data and context protection, user communication, and a post-incident review checklist. The guidance is vendor-neutral and applies to any team building on external AI capabilities.

    1. Reconstructing the Incident: A Typical Performance Degradation

    As of 22:03 Beijing time on November 13, 2026, the official status page of a major LLM platform showed multiple services marked as “degraded performance,” with the team still investigating. The first notice had appeared about an hour earlier, at 21:09.

    The impact spanned several layers: the end-user chat entry point, the model API used for programmatic calls, an AI coding assistant, several connector capabilities (document connectors and spreadsheet connectors), content moderation, and hosted agent runtimes.

    Notably, the status page applied different labels to different components. The chat entry point was marked as a major outage, the model API and coding tool as partial outages, and the collaboration-oriented capabilities as degraded performance. Meanwhile, the console and underlying cloud platform services still showed as operational.

    The root cause, recovery time, and number of affected users had not been disclosed. An earlier authentication-related issue had been marked resolved at 19:58; it was unrelated to this incident and should not be conflated with it.

    The first takeaway for developers is not that “another vendor had an outage.” It is a reminder that the availability of external AI capabilities is itself a variable that must be engineered for.

    2. Reading Status Levels: Different Labels Demand Different Actions

    The status-page taxonomy is not wordplay. Each label maps to a distinct failure mode and a different response priority.

    • Degraded Performance: Requests still return, but latency rises sharply, throughput drops, and timeout rates climb. The damage is subtle, and it can quietly exhaust upstream thread pools and connection pools.
    • Partial Outage: Some requests succeed and some fail, or a specific region or model tier is unavailable. This shows up as non-deterministic errors and is the hardest to diagnose.
    • Major Outage: Core paths are largely unavailable, with error rates approaching 100%.
    • Operational: It only means the component is healthy. It says nothing about the health of your account, your quota, or your network path.

    Key conclusion: a component’s status is not equivalent to “all users and all services are down.” Treating the status page as a binary switch is where many misdiagnoses begin.

    3. Defining the Fault Boundary: First Rule Out “Is It My Problem?”

    Before attributing the issue to the upstream provider, run a layered self-check in a fixed order. This sequence covers the vast majority of misdiagnoses:

    1. Credentials and authentication: Have keys expired, been rotated, or had their permission scope changed? Authentication problems typically surface as 401/403, which look different from the 5xx and timeout signatures of performance degradation.
    2. Quota and rate limiting: Have you hit a rate limit or a usage cap? The typical signals are 429 responses and explicit rate-limit response headers.
    3. Request validity: Is the context length over the limit, are parameter values within the allowed range, and has serialization introduced illegal characters?
    4. Local network and egress: DNS resolution, proxy settings, egress IP policy, and how your corporate firewall handles long-lived connections.
    5. Client timeout configuration: Is the timeout set shorter than the upstream’s normal response time, creating a “false failure”?
    6. Upstream status: Check the status page and official announcements only as the last step.

    The point of the ordering is easy before hard, internal before external. It prevents you from mistaking upstream jitter for a configuration error, and from mistaking your own key problem for a platform outage.

    4. Observability: Make Failures Attributable, Not Guessable

    Without layered observability, every incident is guesswork. Here is the minimum viable set of instrumentation:

    1. Request dimension: request_id, model/capability identifier, estimated input tokens, output token count
    2. Time dimension: queue time, time to first byte, total latency
    3. Result dimension: HTTP status code, error code classification, whether retried, retry count
    4. Resource dimension: connection pool usage, concurrency, thread pool queue length

    The “error code classification” must be granular enough to distinguish four categories: authentication failure, rate limiting, upstream 5xx, and client timeout. Otherwise, alerts cannot point to the correct remediation action.

    For metrics, monitor three quantities together: success rate, P95/P99 latency, and timeout rate. Performance degradation often shows up first in P99 and timeout rate while success rate stays near 100%. A dashboard that only watches success rate will miss these events.

    5. Retries and Backoff: Don’t Amplify an Outage with Retries

    Retries cut both ways. When the upstream is degraded, blind retries create a request flood that can turn “degraded performance” into “complete unavailability.”

    Three rules are mandatory:

    • Retry only idempotent, retryable errors: Timeouts, connection resets, and 5xx are retryable; retrying 4xx parameter and authentication errors is pointless.
    • Exponential backoff plus jitter: Prevent all clients from resending at the same instant.
    • Set a retry budget: Cap the proportion of retries within a given window, and fail fast once the threshold is exceeded.
    1. import random, time
    2. def call_with_backoff(fn, max_attempts=3, base=0.5, cap=8.0):
    3. for attempt in range(max_attempts):
    4. try:
    5. return fn()
    6. except TransientError:
    7. if attempt == max_attempts - 1:
    8. raise
    9. # Exponential backoff with random jitter to avoid a retry storm
    10. delay = min(cap, base * (2 ** attempt)) * (0.5 + random.random())
    11. time.sleep(delay)

    6. Timeouts, Circuit Breakers, and Bulkhead Isolation

    These three patterns must be used together:

    • Timeouts: Set an end-to-end budget for each call, and make downstream timeouts shorter than upstream ones, forming a decreasing timeout chain.
    • Circuit breakers: Track error rate and slow-call ratio over a sliding window. Once a threshold is hit, transition to the open state and fail fast, then move to half-open probing after a cooldown.
    • Bulkhead isolation: Assign a dedicated thread pool or semaphore to AI capability calls so they cannot exhaust global resources and drag down the main business.
    1. # Circuit breaker decision example (pseudo-config)
    2. window: 20s
    3. min_requests: 50
    4. error_rate_threshold: 50%
    5. slow_call_ratio_threshold: 60%
    6. slow_duration_ms: 3000
    7. open_duration: 30s
    8. half_open_probe: 5

    Bulkhead isolation is the most overlooked of the three and delivers the highest payoff: it ensures that “AI capability unavailable” never escalates into “the entire application unavailable.”

    7. Fallback Strategies: Tiered Trade-offs by Business Value

    Fallback is not failure; it is a planned trade-off. Layer it by how critical each capability is:

    • Core paths: Do not allow a hard failure when AI is unavailable; prepare a rules engine or retrieval results as a fallback.
    • Enhancement paths: Switch to a smaller model, shorter context, or lower temperature, trading quality for availability.
    • Offline paths: Enqueue the work for asynchronous processing and consume it after the incident is resolved.

    In practice, control fallback with configuration switches rather than hardcoding, so switching requires no release:

    1. capability.fallback.mode = auto | force_healthy | force_degraded
    2. capability.fallback.timeout_ms = 2500
    3. capability.fallback.queue = async_enabled

    You must also define a clear data consistency policy for the fallback period: which writes may be eventually consistent and which must be strongly consistent, to avoid duplicate generation or state corruption after recovery.

    8. Data and Context Protection

    The most common real loss during performance degradation is losing user input and intermediate output. Recommended practices:

    • For streaming output, continuously persist generated fragments to disk and support resuming from a checkpoint.
    • Introduce idempotency keys for long-running tasks so recovery can deduplicate, avoiding duplicate billing and duplicate writes.
    • Write prompts, parameters, and result snapshots to a logging service to support post-incident review and reproduction.
    • Persist context in a structured form so an interrupted session does not fail to rebuild its context.

    9. User Communication and Status Updates

    For end users, “the service is broken” and “I made a mistake” feel completely different. The product side should:

    • Clearly indicate in the UI that the issue is upstream capability fluctuation, not user input error.
    • Provide an explicit “save draft / retry later” entry point instead of failing silently.
    • Keep the status page and in-app announcements on the same message to avoid inconsistent information that triggers repeat inquiries.
    • Proactively share the impact scope and resolution after recovery.

    10. Post-Incident Review Checklist

    Once the incident is over, close it out with a fixed checklist to prevent recurrence:

    1. Is the timeline complete (first announcement, diagnosis, recovery, review)?
    2. How long did detection and recovery each take, and was the bottleneck in detection or in remediation?
    3. Did fallback trigger automatically as expected, and were there any false triggers?
    4. Did retries amplify traffic, and did the retry budget take effect?
    5. Was there any data loss or duplication, and how was it compensated?
    6. Do capacity and quota need to be re-estimated against peak load?
    7. Have you added dedicated alerts for the “degraded performance” failure mode?

    11. Conclusion

    Treating external AI capabilities as an uncertain third-party dependency to be governed is the core engineering lesson from incidents like this. Layered self-checks define the fault boundary, fine-grained observability supports attribution, backoff retries with circuit breakers and bulkheads contain the blast radius, and tiered fallback plus data protection hold the business line. This combination is independent of any specific vendor, yet in any upstream fluctuation it can compress “unavailable” into “an acceptable degradation in experience.” If you have already deployed on a cloud platform such as Baidu AI Cloud, you can build these mechanisms on top of its general-purpose capabilities like monitoring and alerting, logging, and message queues, making stability a default property of the architecture rather than a remedy applied after an incident.