Hot standby
Two Regions, layer by layer
Each step of the scroll changes the drawing. Every statement names the AWS page it comes from.
What a second Region is made of, what happens to each part when the first one is impaired, and where AWS says so. Scroll to take it apart.
Drag to turnCtrl + scroll to zoomClick a partDrag to turnTwo fingers to move and zoomTap a part
Hot standby
Each step of the scroll changes the drawing. Every statement names the AWS page it comes from.
Step 1 of 11
Both Regions run the whole workload. Only Region A takes traffic.
“Hot standby uses an active/passive configuration where users are only directed to a single region and DR regions do not take traffic.”AWS: Disaster recovery options in the cloud
Step 2 of 11
Region B already runs enough capacity for the whole load, so recovery does not depend on Auto Scaling.
“You can choose to provision sufficient capacity such that the recovery Region can handle the full production load as deployed. This statically stable configuration is called hot standby”AWS: Disaster recovery options in the cloud
Step 3 of 11
Writes go to Region A only. Changes are copied to Region B asynchronously; Aurora Global Database replicates “with typical latency of under a second”.
“With active/passive strategies, writes occur only to the primary Region.”AWS: Disaster recovery options in the cloud
Step 4 of 11
Route 53 reads the health of each Region's load balancer from its targets: Evaluate target health is set on both records. AWS advises against creating health checks for the load balancers themselves.
“If you're routing traffic to any AWS resources that you can create alias records for, don't create health checks for those resources. When you create the alias records, you set Evaluate Target Health to Yes instead.”AWS: Active-active and active-passive failover
Step 5 of 11
A service disruption impairs Region A: its servers stop answering, its Aurora writer is not available, and replication to Region B stops. Nothing has moved yet: the name still points at Region A.
This step is the scenario, not a statement from AWS.
Step 6 of 11
The time to notice, to tell the right people and to declare a disaster all counts inside the recovery time objective.
“It is critical to factor in incident detection, notification, escalation, discovery and declaration into your planning and objectives”AWS: Detection
Step 7 of 11
Health checks or alarms could start a failover by themselves. A failover on a false alarm costs availability and data for nothing, so it is often started by hand, with every step after that automated.
“Manually initiated failover is therefore often used. In this case, you should still automate the steps for failover, so that the manual initiation is like the push of a button.”AWS: Disaster recovery options in the cloud
Step 8 of 11
A person starts an ARC Region switch plan, in its ungraceful mode for an unplanned event. Region switch runs the steps of the failover as one operation. No step has to scale Region B: it is already full size.
“For cross-Region failover, use ARC Region Switch to orchestrate the full failover as a single data plane operation with pre-flight checks.”AWS Well-Architected: REL11-BP04
Step 9 of 11
The plan's Aurora Global Database step runs a failover: the Aurora cluster in Region B is promoted and starts taking writes. Writes not yet copied can be lost.
“Failover (data loss) performs a failover that might cause data loss.”AWS: Amazon Aurora Global Database execution block
Step 10 of 11
The plan's ARC routing control step turns Region A's routing control off and Region B's on. Region A's record still reads unhealthy, and Region B's now reads healthy: its routing control is on and its load balancer healthy. Route 53 answers with Region B, and requests go to its load balancer.
“This step enables you to change the state of one or more ARC routing controls to redirect your application traffic to a destination AWS Region.”AWS: ARC routing control execution block
Step 11 of 11
Replication may not protect against deleted or corrupted data, so backups are still needed, and should be tested regularly.
“Backup and recovery are still required and should be tested regularly.”AWS: Disaster recovery options in the cloud
Tap one, or tap it on the model
Answers the name, and decides which Region the answer points to.
Runs the failover as one plan, and switches the traffic from one Region to the other.
Route 53 reads each load balancer's health from its targets, and answers with a healthy record when there is one.
The front door of each Region.
Amazon EC2 Auto Scaling groups, spread across Availability Zones in each Region.
The writer in Region A, a copy in Region B that can be promoted.
What protects data that was deleted or corrupted and then copied.