What happens after failover in RDS

0

Say I am using an RDS multi az instance. And primary instance failed for some reason and failover to the standby instance. So now the standby acts as primary.

In this situation, is the failed one brought back, or was any new instance created to work as stand-by for the new primary?

vignesh
질문됨 2년 전6405회 조회
1개 답변
1
수락된 답변

Yes, upon RDS Multi-AZ failover the failed primary instance is brought back up as the new standby instance to reinstate the high-availability of your database.

To elucidate the above mentioned:

The failover process is typically completed within 60-120 seconds where the standby instance is promoted as the new primary instance allowing you to resume your DB activities in the shortest amount of time.

While in the background, the failed primary instance is diagnosed by the RDS internal health monitoring system and remediation actions are taken based on the detected fault. The remediation action may involve simply rebooting the faulty instance to even replacement of the hardware depending on the detected fault. Once the old primary node is recovered, it is brough back up as the new Standby instance ensuring your DBs high-availability.

The recovery time of the failed node may vary upon the type of fault and the recovery process applied. Also, recovery time largely depends on the DB workload at the time of crash as RDS would perform data recovery and roll-back any uncommitted transactions eliminating any data inconsistencies across the nodes while providing you a single-box experience.

References:

Amazon RDS Under the hood – Multi-AZ: https://aws.amazon.com/blogs/database/amazon-rds-under-the-hood-multi-az/

Failover process in RDS: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.MultiAZSingleStandby.html#Concepts.MultiAZ.Failover

AWS
지원 엔지니어
답변함 2년 전
profile pictureAWS
전문가
Chris_G
검토됨 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠