Anatomy of a pilot light

A second Region that keeps the data and leaves the servers switched off: what it is made of, what has to be switched on when the first one is impaired, and where AWS says so. Scroll to take it apart.

Scale model of two AWS Regions as stacked layers: load balancers, a fleet of servers and a database in the first, load balancers and a database in the second, with only the outlines of its servers' places, requests coming down from above onto the first Region's load balancer, Route 53 and the ARC routing control on a plate above them with a dashed line of DNS queries to its name servers, a thin line from the name servers to each Region's load balancer, dashed for the second, and a dashed line of replication between the two databases
All anatomiesBack to all anatomies

Drag to turnCtrl + scroll to zoomClick a partDrag to turnTwo fingers to move and zoomTap a part

Pilot light

Two Regions, one without servers

Each step of the scroll changes the drawing. Every statement names the AWS page it comes from.

Step 1 of 11

Data on, servers off

Region B keeps a copy of the data and of the core infrastructure. Its application servers are switched off. All traffic goes to Region A.

“With the pilot light approach, you replicate your data from one Region to another and provision a copy of your core workload infrastructure.”
AWS: Disaster recovery options in the cloud

Step 2 of 11

Switched off: best not deployed

AWS's best practice for a switched-off server is not to deploy it at all, and to have everything ready to deploy it when it is needed.

“A best practice for ‘switched off’ is to not deploy the resource, and then create the configuration and capabilities to deploy it (‘switch on’) when needed.”
AWS: Disaster recovery options in the cloud

Step 3 of 11

The data keeps moving

Writes go to Region A only. They are copied continuously to live databases in Region B, alongside point-in-time backups.

“For pilot light, continuous data replication to live databases and data stores in the DR region is the best approach for low RPO (when used in addition to the point-in-time backups discussed previously).”
AWS: Disaster recovery options in the cloud

Step 4 of 11

Every change, both Regions

Every change is made in both Regions, the code and configuration at the same time. Automation and infrastructure as code, such as AWS CloudFormation, deploy it: full size in Region A, switched off in Region B.

“This step can be simplified by automating your deployments and using infrastructure as code (IaC) to deploy infrastructure across multiple accounts and Regions (full infrastructure deployment to the primary Region and scaled down/switched-off infrastructure deployment to DR regions).”
AWS: Disaster recovery options in the cloud

Step 5 of 11

Region A is impaired

A service disruption impairs Region A: its servers stop answering, its Aurora writer is not available, and replication to Region B stops. Region B has a copy of the data, but no servers to answer with.

This step is the scenario, not a statement from AWS.

Step 6 of 11

A person decides

Health checks or alarms could start a failover by themselves. A failover on a false alarm still costs some availability and data, 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 7 of 11

Switch on

In Region B the servers are turned on, and any further infrastructure that is needed is deployed. They still have to be scaled up, which is all a warm standby would have to do.

“The pilot light approach requires you to ‘turn on’ servers, possibly deploy additional (non-core) infrastructure, and scale up, whereas warm standby only requires you to scale up (everything is already deployed and running).”
AWS: Disaster recovery options in the cloud

Step 8 of 11

Quotas must allow it

Auto Scaling brings Region B to full production capability. Its service quotas must be set high enough not to limit the scaling.

“Ensure that service quotas in your DR Region are set high enough so as to not limit you from scaling up to production capacity.”
AWS: Disaster recovery options in the cloud

Step 9 of 11

The copy becomes the primary

In an unplanned failover, the Aurora cluster in Region B is promoted and starts taking writes. Writes not yet copied can be lost.

“The RPO for this approach is typically a non-zero value measured in seconds.”
AWS: Switchover or failover in Aurora Global Database

Step 10 of 11

Traffic moves

With ARC, Route 53 health checks act as on/off switches, turned through a data plane API. A script turns them, and Route 53 answers with Region B, so requests go to its load balancer.

“Your script toggles these switches (the Route 53 health checks) telling Route 53 to send traffic to the recovery Region instead of the primary Region.”
AWS: Disaster recovery options in the cloud

Step 11 of 11

What a copy cannot save

Replication may not protect against corrupted or destroyed data. The replicated data can be backed up in Region B, to create point-in-time backups there.

“Continuous data replication protects you against some types of disaster, but it may not protect you against data corruption or destruction unless your strategy also includes versioning of stored data or options for point-in-time recovery.”
AWS: Disaster recovery options in the cloud

The parts

Tap one, or tap it on the model

The parts

Amazon Route 53

Answers the name, and decides which Region the answer points to.

AWS: Active-active and active-passive failover

ARC routing control

The switch. It moves traffic from one Region to the other.

  • On-off switches. “Routing controls are simple on-off switches that enable you to switch your client traffic from one Regional replica to another.”
  • Health checks that are switches. “With ARC, you can create Route 53 health checks that do not actually check health, but instead act as on/off switches that you have full control over.” AWS: Disaster recovery options in the cloud
  • Spread across Regions. “Each cluster in ARC is a data plane of endpoints in five AWS Regions.”
  • Scripted, not clicked. States are changed “by using the AWS CLI or API actions (recommended)”.
  • Not a health check. “It's important to note that routing controls are not themselves health checks that monitor the underlying health of endpoints.” AWS: About routing control
AWS: Routing control in ARC

Evaluate target health

Route 53 reads each load balancer's health from its targets, and answers with a healthy record when there is one.

  • Yes, for a load balancer. Setting Evaluate target health to Yes “allows Route 53 to route traffic away from unhealthy resources.” AWS: Values specific for simple alias records
  • When it reads unhealthy. “If any target group contains only unhealthy targets, the load balancer is considered unhealthy, and Route 53 routes queries to other resources.”
  • Without servers. Until Region B's servers are switched on, its load balancer has no targets. “A target group that has no registered targets is considered unhealthy.”
  • No checks on the load balancers. “If you're routing traffic to any AWS resources that you can create alias records for, don't create health checks for those resources.” AWS: Active-active and active-passive failover
  • With the routing control. Each record also carries its routing control's health check. “If you associate a health check with an alias record and also select Yes for Evaluate Target Health, both must evaluate to true.”
  • If it were automatic. For automated failover, AWS asks for health checks that look like real use: “Design health checks that are representative of user experience and based on Key Performance Indicators.” Here a person starts the failover. AWS: Detection
AWS: Values specific for failover alias records

Elastic Load Balancing

The front door of each Region, created before an event.

  • Spreads the load. “Elastic Load Balancing automatically distributes your incoming traffic across multiple targets, such as EC2 instances, containers, and IP addresses, in one or more Availability Zones.”
  • Grows by itself. “Elastic Load Balancing scales your load balancer capacity automatically in response to changes in incoming traffic.”
  • Built before the event. “Create functions, load balancers, API gateways, and tables before an event, as part of failover rehearsal.” AWS Well-Architected: REL11-BP04
AWS: What is Elastic Load Balancing?

The fleet, switched off

Amazon EC2 Auto Scaling groups. In Region B the servers are switched off, used only in testing or in a failover.

  • Scaled out on failover. “Use Auto Scaling to scale out your DR Region to full production capability, as part of a pilot light or warm standby strategies.”
  • Images in both Regions. An Image Builder pipeline can copy the AMIs to both Regions. “This helps to ensure that these golden AMIs have everything you need to re-deploy or scale-out your workload in a new region, in case of a disaster event.”
  • A control plane step. “Because Auto Scaling is a control plane activity, taking a dependency on it will lower the resiliency of your overall recovery strategy.”
  • Dormant until needed. In a pilot light the data is replicated and always on, while the compute does not run: “compute stays dormant until needed”. AWS Well-Architected: REL13-BP02
  • A managed pilot light. “Elastic Disaster Recovery uses the Pilot Light strategy, maintaining a copy of data and ‘switched-off’ resources in an Amazon Virtual Private Cloud (Amazon VPC) used as a staging area.”
AWS: Disaster recovery options in the cloud

Aurora Global Database

The writer in Region A, a live copy in Region B that can be promoted.

  • The lag. “After any write operation, Aurora replicates data to the secondary AWS Regions using dedicated infrastructure, with latency typically under a second.” AWS: Using Amazon Aurora Global Database
  • An outage in Region A. In an unexpected outage of its primary Region, “your primary Aurora DB cluster and its writer node aren't available, and the replication between the primary and secondary DB clusters stops.”
  • Unplanned: failover. “The RPO for this approach is typically a non-zero value measured in seconds.”
  • How long. “Typically, the chosen secondary cluster assumes the primary role within a few minutes.”
  • When Region A is back. Aurora names two failover methods for an unplanned outage. After a managed failover, the one AWS recommends for disaster recovery, “As soon as that old primary Region is healthy and available again, Aurora automatically adds it back to the global cluster as a secondary Region.” After a manual failover, the global database is created again.
  • Other engines. Promoting an RDS read replica: “For DB instances other than Aurora, the process takes a few minutes to complete and rebooting is part of the process.” AWS: Disaster recovery options in the cloud
AWS: Switchover or failover in Aurora Global Database

Backups

What protects data that was deleted or corrupted and then copied.

  • In the second Region. “You can back up the replicated data in the disaster Region to create point-in-time backups in that same Region.” AWS: Disaster recovery options in the cloud
  • Every strategy. “Every strategy therefore needs point-in-time backups or versioning in addition to replication, so you can recover to a moment before the data was damaged.”
  • Across Regions. “Use AWS Backup to schedule and monitor cross-Region backups.”
AWS Well-Architected: REL13-BP02