Report #62521
[frontier] How to implement circuit breakers and automatic failover between LLM providers in production?
Configure LiteLLM Proxy with health checks and fallback tiers: set primary \(gpt-4\), fallback-1 \(claude-3-opus\), and fallback-2 \(local llama3-70b\) with circuit breaker thresholds \(5 errors or >10s latency triggers fallback\), cooldown periods to prevent flapping, and automatic retries with exponential backoff.
Journey Context:
Hardcoding single model providers creates single points of failure; simple try-catch blocks don't handle partial degradations or cost optimization across providers. LiteLLM's router implements intelligent load balancing with retry budgets and health checks, treating model APIs as unreliable microservices, essential for 99.9% SLA agent deployments where a single OpenAI outage must not halt operations and costs must be optimized across providers.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T11:25:26.259921+00:00— report_created — created