A SysOps Administrator is managing a write-heavy PostgreSQL database on Amazon RDS. The database is currently deployed as a standard Multi-AZ DB instance. During a recent Availability Zone outage, the database failed over to the standby instance, but the application experienced approximately 80 seconds of downtime. The administrator needs to migrate the database to a configuration that reduces the failover time to under 35 seconds while still allowing the standby instances to serve read traffic. Which database configuration and architectural transition should the administrator implement to meet these requirements?
- Migrate the database to an Amazon RDS Multi-AZ DB cluster. This configuration uses semi-synchronous replication to two readable standby instances in different Availability Zones, reducing failover time because the standby instances are already running and do not require database crash recovery.Cevap
- BCreate an Amazon RDS Read Replica in a different Availability Zone and configure an Amazon Route 53 failover routing policy to automatically promote the replica and route write traffic to it during an outage.
- CConfigure an Amazon Route 53 latency-based routing policy to split write traffic between the primary DB instance and a read replica, enabling automatic failover if the primary instance becomes unhealthy.
- DModify the existing Multi-AZ DB instance to run in an active-active configuration across two Availability Zones, and configure a Network Load Balancer to route traffic to the active instance.
Cevap
Migrate the database to an Amazon RDS Multi-AZ DB cluster. This configuration uses semi-synchronous replication to two readable standby instances in different Availability Zones, reducing failover time because the standby instances are already running and do not require database crash recovery.
Migrating to an Amazon RDS Multi-AZ DB cluster is the correct solution. Unlike standard Multi-AZ DB instances which have a passive standby that requires database recovery during failover, a Multi-AZ DB cluster maintains two active reader instances in different Availability Zones. Because these instances are already running and serving read traffic, failover is faster (typically under 35 seconds) and requires no database recovery stage.
Adım Adım Çözüm
Anahtar Kavram
Amazon RDS Multi-AZ DB Cluster Architecture and Failover Dynamics