# LLM failover checklist: what to verify before the first outage

URL: https://infro.io/blog/llm-failover-checklist-what-to-verify-before-the-first-outage
Author: INFRO Editorial (https://infro.io/blog/editorial)
Publisher: INFRO
Published: 2026-11-28
Last modified: 2026-11-28
Last reviewed: 2026-11-28 (next review due 2026-12-28)
Topic: Routing and reliability
Format: Checklist

> LLM failover is ready when five things pass: the fallback has quota for the whole load, it fails independently of the primary, it accepts your prompts and schemas, its spend is capped, and a failover pages a person. Run each as a test, not a review of config.

Key takeaways:
- A fallback is only as good as its quota: size it for 100% of primary traffic, not for the trickle it sees today.
- Two keys or two regions only count as separate if the provider's quota and failure scope are actually separate; Azure Global Standard, for one, pools quota across regions in a subscription.
- Failover moves a request before the first token; a stream that dies halfway is your client's problem, so test it.
- A fallback model can break schemas, tool calls and context limits quietly, so replay real prompts against it before launch.
- Your own budget refusals do not fail over, so a cap set for the primary's price can turn an outage into a second outage.
- The last check is human: force a failover and confirm a named person gets the alert.

## How to use this list

Most failover setups are verified by reading the config: a primary, a fallback, a retry count. That proves the chain exists, not that it works. Every check below is written as a pass/fail test you can run in a staging environment, with the evidence to keep.

Two terms. *Connection failover* tries the same model on another of your accounts or hosts. *Model fallback* tries a different model from an ordered list. INFRO documents both, and both act only before the first token of the response.[1] OpenRouter's `models` parameter is the equivalent cross-model mechanism, and by default any error can trigger the next model.[2] The checks apply to either.

## 1. Fallback quota headroom

A fallback receives your whole load at the worst moment, usually just after the primary's other customers have also moved. If its quota is sized for a trickle, the failover turns one outage into a 429 storm.

Your provider accounts keep their own model, token and request quotas, and a gateway does not add a shared pool of capacity.[3] So the headroom has to exist on the account you named as fallback.

- [ ] Peak tokens per minute and requests per minute of the primary path are measured from the last 30 days, not estimated.
- [ ] The fallback's quota for that exact model and deployment type is at least that peak, with margin.
- [ ] The quota is read from the provider's console or API today, not from a page written last quarter.
- [ ] Any pending quota request has a decision, not a promise. Azure, for example, reviews quota requests and approval is not guaranteed.[4]
- [ ] Automatic quota-tier changes are understood. Azure raises tiers with usage and lets you opt out of auto-upgrades, which matters if you manage spend through quota.[4]

> **Example: Illustrative sizing**
> These numbers are made up to show the arithmetic. Say the primary peaks at 400,000 tokens per minute and 300 requests per minute. A fallback account limited to 250,000 tokens per minute fails this check even though the chain "works" at 10% of traffic. Pass means the fallback's limit exceeds 400,000 tokens per minute and 300 requests per minute with room for a retry burst.

If full headroom is too expensive to hold, decide which traffic survives and encode it. Routing rules can send requests to different targets by metadata, feature, prompt size, streaming or time of day.[5] The related post on [which requests should survive a quota shortage](https://infro.io/blog/provider-quota-is-short-which-ai-requests-should-survive) covers that choice.

## 2. Key and region separation

Failover only helps if the fallback does not fail for the same reason as the primary. Check what is actually shared.

| Looks separate | Can still share | How to test |
| --- | --- | --- |
| Two deployments in two Azure regions | One quota pool. Global Standard deployments of the same model and version share a pool across all regions in a subscription.[4] | Load the primary to its limit, then send fallback traffic and watch for 429 |
| Two keys on one provider account | Account-level limits and the same billing relationship | Check whether the 429 text names the account or the key |
| Two API hosts for one key | The key's rate limit | Block the first host in staging and confirm the second serves |
| Two models from one vendor | The vendor's outage, if the whole API is down | Fail the vendor entirely, not one model |

Azure's Data Zone Standard pools quota per data zone, such as US or EU, instead.[4] So a "second region" inside one subscription may give you latency diversity and no quota diversity.

- [ ] The chain contains at least one target on a different provider account, or a different vendor, from the primary.
- [ ] Each target's credential is distinct and stored once, and the fallback key is not also the primary's key in another project.
- [ ] Standby keys exist for each provider and are tried only on failure. INFRO documents that standby keys, keys that just answered 429 and keys that cannot serve the model are tried last.[1]
- [ ] Environments are separated: a staging key must not reach production connections. INFRO gateway keys each belong to exactly one environment.

If data location is a constraint, a fallback in another region may be out of bounds. Treat residency as a filter on the chain, and verify it per target rather than assuming it.

## 3. Prompt and schema compatibility

The most common failover surprise is a fallback that is up but rejects or mangles the request. Providers differ on optional parameters. INFRO's docs say a 400 or 422 from a provider before the first token also moves to the next connection for that reason,[1] so a parameter the fallback refuses is silently skipped to the next target, and when none accepts it, the user sees the error.

OpenRouter exposes the same concern as `require_parameters`, which restricts routing to providers that support every parameter in the request, and its model fallbacks can trigger on context-length errors.[6][2]

Replay a sample of real production requests against each fallback and check these:

- [ ] **Context window.** The longest prompt in the sample fits the fallback's window plus `max_tokens`.
- [ ] **Structured output.** Responses parse against your JSON schema at a rate you accept. Count parse failures per target.
- [ ] **Tool calling.** Tool definitions are accepted and the arguments validate against your function schemas.
- [ ] **Streaming.** The stream format your client expects is unchanged.
- [ ] **System prompt behaviour.** Instructions that depend on one model's habits still hold.
- [ ] **Retired models.** No target is a model with a shutdown date inside your launch quarter.

```python
import json
from openai import OpenAI

client = OpenAI(base_url="https://api.infro.io/v1", api_key="INFRO_STAGING_KEY")

def parses(text: str) -> bool:
    try:
        obj = json.loads(text)
        return isinstance(obj.get("category"), str)
    except (ValueError, AttributeError):
        return False

failures = 0
for case in json.load(open("sampled_requests.json")):
    r = client.chat.completions.create(
        model="fallback-model-id",   # the fallback itself, called directly
        messages=case["messages"],
        response_format={"type": "json_object"},
    )
    failures += not parses(r.choices[0].message.content)

print("schema failures:", failures)
```

Call the fallback directly in this test. Testing it only through the chain tells you the primary answered. Quality equivalence is a separate question, covered in [testing fallback equivalence](https://infro.io/blog/is-your-fallback-model-good-enough-test-fallback-equivalence).

## 4. Budget caps on the fallback path

Failover changes what a request costs. The fallback may have a higher per-token rate, and a model that was not warm may lose prompt-cache hits. The post on [what failover does to your bill](https://infro.io/blog/what-does-failover-do-to-your-bill-price-gaps-and-cold-caches) covers the mechanics. Here the question is whether your caps still behave.

One detail matters. INFRO's own refusals, including a 402 for a budget, are decided before any provider is called and return immediately without failover.[1] A cap that is too tight for the fallback's price does not route around itself; it refuses requests. Caps exist per organization, project, member and key.

- [ ] Estimate the cost of one hour of full-load traffic on the fallback, using your negotiated rates where you have them, and compare it with the tightest cap on the path.
- [ ] The cap on the key serving production leaves room for that hour. If it does not, you know which side you are choosing: refusals or spend.
- [ ] The behaviour on a 402 is tested in your client: it shows a message and does not retry in a loop.
- [ ] Alert thresholds sit below the hard cap, so someone hears about a failover before it hits the ceiling.
- [ ] If the fallback is on a pay-as-you-go account, a provider-side spending limit is set and recorded, because a gateway cap does not protect traffic that bypasses the gateway.
- [ ] Retries and fallbacks are bounded. OpenRouter prices a request at the model that finally answered, so the cost depends on which target served it.[2]

> **Example: Illustrative cap check**
> Made-up figures: the primary costs one unit per million tokens and the fallback four. A daily cap sized at 120% of normal primary spend is exhausted in a few hours of full-load fallback traffic at the fallback's rate, and every later request gets a 402. Pass means the cap or the alert plan is written down against the fallback rate, not the primary's.

## 5. Alerting and observability

Failover is designed to be invisible to the client. That also makes it invisible to you unless you ask for the signal. A chain can sit on its fallback for a week, spending at a different rate, with every response succeeding.

Each response from INFRO names the model, provider and connection that served the request and the estimated provider cost.[1] Use that as the data source for these checks:

- [ ] A dashboard or query shows the share of requests served by each target, per route, by hour.
- [ ] An alert fires when the fallback's share crosses a threshold you chose, routed to a channel a person watches. INFRO's alert channels include email, Slack, Teams, PagerDuty and signed webhooks.
- [ ] An alert fires on failing connections, separately from errors the client sees.
- [ ] Latency per target is recorded, so a slow fallback shows up before users complain.
- [ ] Spend per target is visible next to the cap, so the budget check above has live data.
- [ ] Silent changes are watched: more fallbacks, a new error mix and slower responses are the kind of no-error change worth a finding, and INFRO's traffic-change findings cover them from request metadata. They do not judge answer quality, so keep your own scored samples.

The alert only counts when a human receives it. Force a failover in staging and time how long it takes the on-call person to see it.

## 6. The forced-failover test

Run this last, in staging, with the same route configuration as production.

1. Block the primary at the network layer, or point its connection at a bad host.
2. Send the replayed sample from section 3 at production-like concurrency.
3. Confirm every request succeeds, the served model is the fallback, and time to first token rose by an amount you accept.
4. Start a long stream, kill the primary mid-response, and confirm your client handles a truncated stream. Failover happens before the first token, so a stream that dies after it is not retried by the gateway.[1]
5. Let spend run until an alert threshold trips and confirm the alert arrives.
6. Restore the primary and confirm traffic returns to it without a manual step.

For route-based chains, a priority route walks targets in order, while a weighted route chooses the first attempt by weight and still falls through the rest if it fails; a weight-0 target is a standby that never takes a first attempt.[5] Confirm you configured the one you meant. The broader drill method is in [failover drills](https://infro.io/blog/llm-failover-drills).

Fallbacks by model name are cross-model and opt-in. In INFRO that is a `fallbacks` array of up to five catalog model IDs, and it is ignored when `model` names a route, because the route's own targets apply.[1] A common mistake is adding `fallbacks` to a request that already calls a route and assuming it took effect.

```python
r = client.chat.completions.create(
    model="gpt-6-sol",                      # a model name, not a route
    messages=[{"role": "user", "content": "ping"}],
    extra_body={"fallbacks": ["claude-sonnet-5-5"]},  # illustrative ids
)
print(r.model)  # confirm which model actually answered
```

## Scorecard

| Check | Pass condition | Evidence to keep |
| --- | --- | --- |
| Quota headroom | Fallback limit above primary peak, read today | Console screenshot or API output with date |
| Separation | One target on a different account or vendor, independent quota | Test run with primary saturated |
| Compatibility | Replay sample parses and fits context on every target | Failure count per target |
| Budget | Cap holds one full-load hour at the fallback rate, or the refusal is chosen | Written calculation, 402 test |
| Alerting | Forced failover reaches a named person | Alert timestamp |
| Drill | Primary blocked, all requests served, recovery automatic | Run log |

Any "no" is a launch decision for someone with authority to accept the risk, written down. A fallback you have not tested is a hope.

## Questions

### What is LLM failover?

Sending a request to a second connection or model when the first one times out, returns a 5xx or is rate-limited. Same-model failover uses another account or host for the same model. Cross-model fallback uses a different model from an ordered list, as both INFRO and OpenRouter document.[1][2]

### How often should I re-run this checklist?

Re-run the quota, schema and budget checks whenever the primary or fallback model changes, a provider quota tier changes, or a price changes. Re-run the alert test on a schedule, because alert routing breaks silently when people leave.

### Should a fallback use a cheaper model?

Not as a rule. The fallback must pass your quality tests first. Price matters mainly for the budget check: if the fallback costs more per token than the primary, a cap sized for the primary can refuse traffic during the outage.

## Sources

1. Failover & fallbacks — INFRO docs. https://infro.io/docs/features/fallbacks (accessed 2026-11-28)
2. Model Fallbacks — OpenRouter docs. https://openrouter.ai/docs/guides/routing/model-fallbacks (accessed 2026-11-28)
3. Rate & spend limits — INFRO docs. https://infro.io/docs/api/limits (accessed 2026-11-28)
4. Azure OpenAI in Microsoft Foundry Models quotas and limits — Microsoft Learn. https://learn.microsoft.com/en-us/azure/ai-services/openai/quotas-limits (accessed 2026-11-28)
5. Routes — INFRO docs. https://infro.io/docs/routes (accessed 2026-11-28)
6. Provider Routing — OpenRouter docs. https://openrouter.ai/docs/features/provider-routing (accessed 2026-11-28)
