AWS - Route53 Failover Policy
"Route 53 failover" refers to a feature within Amazon Route 53, a DNS service, that allows automatic redirection of traffic to a backup server or region if the primary server or region becomes unavailable, essentially ensuring continuous website access even during outages by utilizing health checks to monitor the status of your resources and route users to the healthy endpoint.
For this post, I have 2 webservers running web application on port 80.
First, I am going to create Route53 Private Hosted Zone.
The zone name is "labexample.com". I am making this zone as private, so that it can be accessed with AWS VPC.
Once we have the zone, we need to create Route53 health check, this is a critical piece to monitor the primary server and enabled route53 to failover if the primary server fails.
Next, we will create DNS record under the private hosted zone we created.
Below is the primary record. Look at the value(IP), routing policy, health check ID and fail over record type.
Failover record type, says the above IP is the PRIMARY.
Let's shutdown the primary server.
Now the traffic switch to the failover IP. Once the primary server is back online, the request falls back to the primary server.
Comments
Post a Comment