How do Route 53 health checks and DNS failover work?
AdvancedConceptDNS, CDN and Messaging
Answer
Health checks probe an endpoint (HTTP/HTTPS/TCP) from multiple global checkers at 30 s (or 10 s fast) intervals, mark it unhealthy after consecutive failures (default 3), or aggregate other checks or a CloudWatch alarm (the only way to check private resources). Failover records answer with the secondary when the primary is unhealthy.
Total failover time is detection time plus DNS TTL, so use low TTLs (30–60 s) on failover records.
More on DNS, CDN and Messaging
What are the Route 53 record types and why use Alias instead of CNAME?BeginnerDescribe Route 53 routing policies.IntermediateWhat is a Route 53 private hosted zone?IntermediateHow does DNS TTL relate to failover and migrations?BeginnerWhat are Route 53 Resolver endpoints and rules?AdvancedHow does CloudFront work: distributions, origins and behaviors?Intermediate