- Newest
- Most votes
- Most comments
For your PostgreSQL RDS non-Aurora setup with a Primary (Multi-AZ) and a Replica (Single-AZ), you don't need to back up both the Primary and the Replica for DR testing purposes. Here's why:
-
In a Multi-AZ deployment, Amazon RDS automatically maintains a synchronous standby replica in a different Availability Zone. This standby replica is not the same as your read replica.
-
When you perform a reboot with failover on the Primary instance, RDS will automatically switch to the standby replica in the other Availability Zone. This process doesn't require a separate backup of the Primary.
-
The read replica you have is primarily for read scaling and is not directly involved in the Multi-AZ failover process.
-
Automated backups and manual snapshots of your RDS instance capture the data from the Primary instance, which includes all the information needed to restore or create new instances.
For your DR test:
-
You only need to take a snapshot of the Primary instance. This snapshot will contain all the necessary data.
-
Perform the reboot with failover on the Primary instance to test the Multi-AZ functionality.
-
If needed, you can recreate the read replica from the Primary after the failover.
You don't need to back up the read replica separately, as it's not part of the core High Availability setup. If you lose the read replica during the DR test, you can always recreate it from the Primary.
Remember, the Multi-AZ feature is designed to handle failover automatically, so your focus should be on testing this functionality rather than backing up individual components. Your approach of taking a snapshot before the test is a good practice to ensure you have a recent backup in case anything goes wrong during the test.
Sources
Backup and restore design - SQL Server to Aurora PostgreSQL Migration Playbook
Backing up and restoring an Amazon Aurora DB cluster - Amazon Aurora
Overview of backing up and restoring an Aurora DB cluster - Amazon Aurora
Relevant content
- asked 5 years ago
- Accepted Answer
- asked 3 years ago
- Accepted Answerasked 3 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 3 months ago