A regional failover sends users to an alternate location after the primary becomes unavailable. It is not just a DNS switch: the standby needs compatible application code, current enough data, credentials, capacity, and a rule for which location may accept writes. Recovery point and recovery time objectives set the acceptable data gap and interruption window.
Multi-region failover: define write ownership before moving traffic
Operational decision
A shipping-label service targets a 13-minute recovery point and a 61-minute restoration time. Keep an alternate region provisioned with enough capacity for essential operations, then measure replication lag and test promotion under controlled conditions. The runbook outline below makes write ownership explicit. Before changing traffic, fence the old writer so two regions cannot accept conflicting label numbers. Verify that the standby can read its secrets and that its image digest is compatible with the replicated schema. Route a small synthetic request first, then representative user traffic. If the primary returns after failover, do not automatically reverse traffic; reconcile data and decide how it will become a standby. Record observed data loss and elapsed time during a drill, including operator decision delay rather than only infrastructure startup.
Shipping-label failover drill
RPO target: 13 minutes
RTO target: 61 minutes
1. Verify primary fault and replication lag.
2. Fence primary writes; appoint one write owner.
3. Promote standby data and validate schema/image compatibility.
4. Run a synthetic create-and-read transaction.
5. Shift traffic in stages and measure user errors.
6. Keep the former primary isolated pending reconciliation.Cost and verification
A warm standby consumes compute, storage, and replication bandwidth before any incident occurs. A cold restore costs less day to day but may miss a short RTO. Replication can copy bad data or deletion, so independent backups remain necessary. DNS or global routing changes can be delayed by caching. Test the service's complete path, including payment, email, or label providers that may be region-bound. A drill that only promotes a database has not verified that users can complete a transaction.
Common Mistakes
- Do not switch writes before fencing the old primary.
- Do not assume replication replaces point-in-time backups.
- Do not measure RTO from the moment the standby is ready while excluding detection and decision time.
Connected lessons
- DevOps: delivery, infrastructure, and reliable operations
- Backups and disaster recovery: prove the restore path
- Incident response: contain impact, then learn
- DNS, TLS, and reverse-proxy failure boundaries
Advanced follow-up
Advanced follow-up
Advanced follow-up
Advanced follow-up
Advanced follow-up
- Compute commitments: separate billing coverage from machine availability
- Cross-zone data paths: measure bytes before changing placement
