DNS failover
Health checks decide which DNS answer to return, for example Amazon Route 53 sends traffic from an unhealthy resource to a healthy one. Cached answers delay the switch.
Monitor
Protect
Manage
By role
Security
Renewals
Monitoring
Failover is the switch of traffic or workload from a failed or unhealthy system to a standby system so the service keeps running. It can be triggered automatically by health checks or manually by an operator.
| Pattern | How it works | Trade-off |
|---|---|---|
| Active-passive | One site serves traffic. The standby takes over when the primary fails | Cheaper, but the switch takes time and must be tested |
| Active-active | Several sites serve traffic at once | Most complex and costly. AWS notes there is no failover step, only loss of a site |
Per the AWS disaster recovery whitepaper.
Health checks decide which DNS answer to return, for example Amazon Route 53 sends traffic from an unhealthy resource to a healthy one. Cached answers delay the switch.
A load balancer stops sending requests to targets that fail their health checks and uses the rest.
The same IP address is announced from several locations, and routing sends traffic to a working one.
AWS advises caution with fully automatic failover because a false alarm costs you availability and data. Many teams keep the steps automated but trigger them by hand, so the switch is like pressing a button.
Failover moves service to the standby after a failure. Failback returns it to the original primary once that system is repaired and in sync. Failback needs its own plan, because data written on the standby must be copied back first.
DNS failover changes the DNS answer for a name when a health check shows the primary endpoint is unhealthy, so new lookups reach the standby. Resolvers that cached the old answer keep using it until the record TTL expires, which delays recovery.
Not by default. AWS states that recovery time is greater than zero even with best practices. Active-active designs get closest to zero because other sites already serve traffic when one is lost.
Aepto monitors expiry, DNS, SSL and uptime for every domain you own and alerts you when something changes. Free for 3 domains.