Check Your Routes After a Provider Outage

Follow the requests that failed over, find the ones that did not, and choose a routing change from the evidence your own traffic recorded.

Start with the requests, not the final status

Open Usage for the affected endpoint and time. A successful response can hide a failed primary call: open successful requests as well as errors. This is a hypothetical investigation, not an account of a particular outage.

  • Keep the request id and route version: the request page identifies the version that actually served it. Compare that version on the endpoint's Versions page before changing today's draft. Retained requests can also be downloaded from Usage as CSV; prompts and replies are never stored.
  • Which requests failed over?: the route taken names the branch that answered, for example fallback#2 → Backup (backup-model). A final 200 means the caller got an answer; the upstream-call ledger tells you whether earlier calls failed. A final error can also have tried the backup: inspect every call.
  • Keep the limits of the evidence: request retention applies to traces and upstream calls too. A capture marker of missing or before_coverage is not proof that no provider was called; only recorded gives the recorded calls.

Read the route trace beside the call ledger

On the request page, read the route taken, route events and numbered upstream calls together. The control API exposes the same evidence at GET /requests/gen-....

  • Follow each turn: selective fallbacks record fallback_moved_on or fallback_stopped, naming the node, child and failure category. A route ending fallback chain stopped after #1 (server_error not selected) had no fallback selected for that failure kind, even if a backup was drawn. Check the policy on the version that served it.
  • Read every call: calls are numbered in dispatch order and identify the output or decider node, provider snapshot, model, start and end, outcome, upstream status and error class. A 503 from the primary followed by an answered backup proves failover; one failed call plus a stopped event explains why the backup was not asked.
  • Understand absent calls: an open breaker has a trace entry but no upstream call for the output it guarded. Gateway refusals before routing, route deadlines, call limits and upstream budgets cannot be fixed just by adding a backup. A stream that has begun cannot fall back after a later failure; inspect stream_end as well as the initial HTTP status.
  • Use the canvas for counts: Refresh counts shows passes, answered and failed at each node; a cancelled hedge leg is counted separately. Counts aggregate passes, including retries, and the editor combines versions for matching node ids. Use a version's counts and individual requests to investigate; canvas counts alone do not identify an outage interval.

Compare the 15-minute, 1-hour and 24-hour health windows

Open Health for the affected provider record and model. These windows describe your own production calls, including deciders, by when they ended; they are not a provider-wide status feed or active recovery probe.

  • Read the classes before the percentage: provider_error includes 5xx. Unreadable replies, empty replies, gateway timeouts and incomplete streams also count as provider failures. Rate limits, refused keys, other client errors, your output's own timeout, cancellations and gateway faults are listed but excluded from the failure share and its eligible denominator.
  • Recovery takes evidence: successful calls after failures show this traffic recovering. Older failures remain in longer windows until they age out. The failure share includes a 95 % interval; a small sample is uncertain. No attempts is no evidence, not zero failures, and windows predating ledger coverage are marked.
  • Check latency separately: duration p50/p95 covers answered calls; first-token p50/p95 covers calls with a first token. Neither makes failed attempts disappear. A healthy backup's answers do not erase a failing primary's rows.

A primary fails, then recovers

Consider a selective fallback from Primary to Backup that selects server_error. Both are configured provider accounts; the following is a controlled example with buffered requests.

  • During the failure: Primary returns 503. The caller receives Backup's answer, the trace says fallback#2 and records fallback_moved_on for server_error, and the ledger contains a failed Primary call followed by an answered Backup call.
  • After recovery: the next request gets Primary's answer. Its route says fallback#1, its ledger has one answered call, and Backup is not called. In each health window containing both requests, Primary has one provider_error and one answered attempt (a 50 % failure share over two eligible attempts); Backup has one answered attempt. This is evidence about these calls, not proof all traffic has recovered.
  • When the policy does not cover it: if only rate_limited was selected, the same 503 stops at Primary, with fallback_stopped and server_error not selected in the trace. There is one failed upstream call and no Backup call. Select the category deliberately and publish and deploy the changed route before expecting different behavior.

Choose a change that addresses what failed

Edit the route, publish a version and deploy it. Send a controlled request, then inspect its request page and Health again. Keep the prior version available for rollback.

  • A selective fallback category: select server_error for 5xx or unreachable for connection failures and timeouts when a second destination can help. Include circuit_open if an open breaker should move to a backup. Do not blindly retry invalid requests or refused credentials on another account; inspect the actual category first.
  • A circuit breaker: guard the failing output to stop repeatedly calling it after consecutive qualifying failures. Place it under a fallback with a backup. The endpoint page shows closed, open or testing state; after cool-down one test request is admitted, and its answer closes the breaker. An open breaker alone cannot produce a backup answer.
  • A hedge: for slow buffered requests, race a backup after a delay instead of waiting for the primary to fail. Choose a delay from observed latency and consider the extra provider cost: the losing call is cancelled, but the provider may still charge. Streams use the hedge as an in-turn fallback, with no race.
  • A second provider account: add and test a working credential on Providers, then connect an output using it as the backup. A second key does not guarantee independent capacity or availability, and a different model may have different capabilities. Check those requirements before deploying the route.

Ready to get started?

Create Your API Key