Gapless

Disaster Recovery

How the assistant survives major failures such as a cloud region outage, a model provider outage, or data corruption, with recovery strategies, a written plan, and regular drills.

Disaster recovery covers failures beyond normal faults: a whole cloud region down, a primary model provider unavailable for hours, a corrupted index, or a destructive mistake in production data. Reliability handles everyday failures. Backups and recovery covers restoring individual stores. This page ties them into a plan.

Scenarios

ScenarioImpact without a planStrategy
Primary model provider outage, hoursAssistant unusableFallback providers, pre-tested with current prompts
Model provider region outageUnusable for tenants routed thereFallback to another region within residency rules
Cloud region outageEverything in that region downWarm standby in a second region
Search index corruption or lossNo retrieval, hallucination risk if unhandledSnapshot restore, degraded mode
Database corruption or bad migrationData lossPoint-in-time restore
Accidental deletion (human or bug)Data lossPoint-in-time restore, object versioning, deletion protection
Compromised credentials or accountData exposure, destructionBackups in a separate account, key rotation, incident response
Source system connector outageStale answersServe from index, show freshness, catch up after

Recovery targets

Set targets per scenario with the business. Example:

ScenarioRTORPO
Model provider outage5 minutes (automatic fallback)None
Cloud region outage1 to 4 hours15 minutes
Index loss4 hours to degraded-but-working, 24 hours to fully current24 hours, then catch-up sync
Database corruption1 hour5 minutes

Tighter targets cost more: hot standby regions double infrastructure cost. Pick targets that match what the assistant is worth to the business, and write them down. See Backups and recovery for per-store targets.

Model provider outage

This is the most likely major failure, and the easiest to prepare for.

  • Every model route has a fallback chain across providers or regions. See Model selection.
  • Fallback models are evaluated with current prompts on every prompt change, not just when they were first set up.
  • Quota on fallback providers must cover full production load, not a trickle. Confirm limits with the provider in advance. A fallback that gets rate limited at 10% of your traffic is not a fallback.
  • Residency rules apply to fallbacks. A tenant that requires EU processing needs EU fallbacks.
  • Embeddings cannot fall back to a different model. If the embedding provider is down, queries cannot be embedded. Options: a second deployment of the same embedding model in another region, keyword-only retrieval as a degraded mode, or a self-hosted copy of the embedding model if its license allows.

Cloud region outage

Warm standby is a common balance:

  • Database: cross-region replica with asynchronous replication. Promote on failover.
  • Object storage: cross-region replication.
  • Index: snapshots copied to the standby region, plus connector catch-up after failover. Restoring a large index takes time, so this is often the longest step.
  • App and workers: deployed in standby at minimum scale, scaled up on failover. Infrastructure as code makes the standby identical.
  • Secrets and config: replicated, or available in both regions.
  • DNS or global load balancing to switch traffic.

Data residency limits where the standby can be. A tenant whose data must stay in the EU needs an EU standby region.

Degraded modes

Decide in advance how the assistant behaves when parts are unavailable, so it degrades safely rather than failing badly.

Component downDegraded behavior
Primary modelFallback model, with a subtle note if quality may differ
All generation modelsShow a maintenance banner. Allow browsing past conversations
Re-rankerHybrid search results without re-ranking
Search indexDo not answer company questions without sources. Answer from user uploads only, or general help, with a clear notice
Guardrail servicePer guardrail fail-open or fail-closed setting. See Reliability
Tool service or target systemRead-only answers. Tool actions disabled with a clear message
ConnectorServe from index with freshness dates visible

The most dangerous degraded mode is the one nobody designed: an assistant that silently answers company questions without retrieval will invent policies.

The recovery plan

Write a disaster recovery plan that someone who did not build the system can follow:

  • Scenarios, with detection signals and the decision criteria for declaring a disaster.
  • Roles: who decides on failover, who executes, who communicates.
  • Step-by-step procedures for each scenario, with commands and links.
  • Communication templates for customers and internal stakeholders.
  • Contact details for cloud and model provider support, with account and contract identifiers.
  • How to fail back to the primary region afterward.

Store it where it is available during an outage of your primary systems: not only in a wiki hosted in the region that just failed.

Drills

DrillFrequencySuccess criteria
Force fallback for each model route in production for a short windowMonthlyAnswers continue, quality within agreed margin, no residency violations
Restore database to a point in time in a test environmentMonthlyRestored within RTO, integrity checks pass
Restore index from snapshot and catch upQuarterlyRetrieval evaluation passes, deletions replayed
Full region failover to standbyYearly, or as contracts requireService restored within RTO, data loss within RPO
Tabletop exercise for a data exposure incidentTwice a yearTeam follows the plan, gaps recorded

Record each drill's measured times and the problems found. Fix the problems. A drill that finds nothing is either perfect or not realistic enough.

Checklist

  • Recovery targets are written down per scenario and agreed with the business.
  • Fallback models cover full load, respect residency, and are evaluated with current prompts.
  • Embedding availability has its own fallback or degraded mode.
  • A standby region exists, with database replication, storage replication, and index snapshots.
  • Degraded modes are designed and tested for each component.
  • The recovery plan is written, accessible during outages, and owned.
  • Drills run on schedule with measured results and tracked fixes.

On this page