Some outages take out a whole region. An active-passive design keeps a second region running at reduced scale with data replicated continuously. DNS records with health checks send users to the primary; when checks fail, DNS answers with the standby, which scales up to take the load. The key numbers are the recovery time objective (how long the switch takes) and the recovery point objective (how much data can be lost).
- Detect
- Analyze
- Resolve
When to use it
- Services where a regional outage is unacceptable
- Regulatory requirements for disaster recovery
- Recovery time objectives measured in minutes
When to avoid it
- Teams that cannot test failover regularly: an untested standby is not a standby
How traffic flows
- DNS health checks probe a deep health endpoint in the primary region every 10 seconds from several locations.
- The database replicates asynchronously to the standby region; replication lag sets the real recovery point.
- When the primary fails its checks, DNS answers with the standby. Low TTLs keep the switch to about a minute.
- Runbooks promote the replica to writer and scale the standby app tier to full size.
Configuration examples
resource "aws_route53_health_check" "primary" {
fqdn = "usw2.api.example.com"
type = "HTTPS"
resource_path = "/healthz/deep"
request_interval = 10
failure_threshold = 3
regions = ["us-west-1", "us-east-1", "eu-west-1"]
}
resource "aws_route53_record" "api_primary" {
zone_id = aws_route53_zone.main.zone_id
name = "api.example.com"
type = "A"
set_identifier = "primary"
health_check_id = aws_route53_health_check.primary.id
failover_routing_policy { type = "PRIMARY" }
alias {
name = aws_lb.usw2.dns_name
zone_id = aws_lb.usw2.zone_id
evaluate_target_health = true
}
}
resource "aws_route53_record" "api_secondary" {
zone_id = aws_route53_zone.main.zone_id
name = "api.example.com"
type = "A"
set_identifier = "secondary"
failover_routing_policy { type = "SECONDARY" }
alias {
name = aws_lb.use1.dns_name
zone_id = aws_lb.use1.zone_id
evaluate_target_health = true
}
}Strategy RTO RPO Relative cost
Backup & restore hours hours $
Pilot light 10–30 min seconds–minutes $$
Warm standby minutes seconds $$$
Active-active near zero near zero $$$$Examples are starting points. Review provider limits, names and versions for your environment before applying.
What to monitor
| Signal | Why it matters |
|---|---|
| Replication lag | This is your actual recovery point, not the one in the design document. |
| Health check status from each probe location | Disagreement between probes points at a network problem, not the region. |
| Standby capacity and quotas | A standby that cannot scale because of a quota limit fails at the worst moment. |
| Date of last failover test | If it is older than a quarter, the plan is a guess. |
Common failure modes
Standby drifted from primary
Configuration changes were applied to one region only.
Sentinel compares both regions continuously and reports drift.
Quota limits in the standby region
Scaling to full size fails during the event.
Tune checks standby quotas against peak primary load each week.