DocumentDB global cluster secondary region failure

0

If a secondary region goes down while using the global cluster with documentdb, will documentdb failover to other running regions automatically?

I know if the primary one goes down, we need to implement an automated solution to promote a secondary region to the primary and convert the standalone promoted region to a global cluster but if a secondary region goes down, do we need to do some manual/automation to recover or if the requests are directed automatically to other running regions?

Also, if we are performing only reads from the primary region and if it goes down, do we still need to implement the automation process for failover or will it redirect the reads to a secondary region?

1 Answer
1
Accepted Answer

Hello @awsPy,

If a secondary region goes down while using the global cluster with documentdb, will documentdb failover to other running regions automatically?

If a secondary region goes down while using the Amazon DocumentDB global cluster, DocumentDB will automatically failover to a running secondary cluster in another region. The failover process is designed to be fault-tolerant and minimize downtime.

Also, if we are performing only reads from the primary region and if it goes down, do we still need to implement the automation process for failover or will it redirect the reads to a secondary region?

Here's what happens if the primary region goes down while you're performing both reads and writes to an Amazon DocumentDB global cluster:

1. When the primary region goes down, DocumentDB will automatically fail over to a secondary region. This failover process typically takes less than 30 seconds.
2. During the failover, any writes that were in-flight to the primary region will be buffered and replayed to the new primary region once the failover is complete. This ensures that no writes are lost during the failover process.
3. Reads will be automatically redirected to the new primary region in the secondary AWS Region, ensuring high availability for both read and write operations.
4. After the failover is complete, your application can resume normal read and write operations to the new primary region. The global cluster will ensure that any data written to the secondary region during the failover is eventually replicated back to the primary region once it is restored.
AWS
phirani
answered 14 days ago
profile picture
EXPERT
reviewed 13 days ago
  • Thank you so much! This is what I had assumed and was looking for!

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions