RDS Postgres Multi AZ force failover

Sudha Subramaniam
2 min readNov 7, 2023

--

I have recently done Multi AZ failover for RDS Postgres. we can use cli command aws rds reboot-db-instance to test this failover

When enabling Multi AZ, AWS automatically creates a primary database (DB) instance and synchronous replica in a different AZ (stand by instance).

aws rds reboot-db-instance — db-instance-identifier DB_INSTANCE_IDENTIFIER — force-failover

we can get the evidence for failover under Logs & Events Tab of RDS console and Events will have data about failover also look for the AZ under Networking section of connectivity and security Tab

After failover

The RPO with an Amazon RDS Multi-AZ instance failover is zero because of the synchronous replication to the standby db instance. The amount of time it takes for failover is usually 1–2 minutes. Long recovery times due to rollback of uncommitted transactions or roll-forward of in-memory committed transactions, limits on instance class’s IO throughput, lazy loading from Amazon S3 to Amazon EBS volumes, and the amount of transactions logs that must be copied can all prolong failover time.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response