How to re-sync back after MySQL read replica is promoted

0

We have a cross-region MySQL RDS replication and I believe if we promote the replica server it becomes a standalone master server. Now how to bring back the sync between them again, Instead of creating new read replicas for the new master, is there any other possibilities? Can we use mysql.rds_set_external_master to sync back? any supporting document would be much appreciated.

Sravan
질문됨 10달 전220회 조회
2개 답변
0

Hi, the proper Recovery Failure using Read Replicas is detailled in section "Implement Failure Recovery" of https://aws.amazon.com/blogs/aws/amazon-rds-for-mysql-promote-read-replica/ and in final sections of https://aws.amazon.com/blogs/database/implementing-a-disaster-recovery-strategy-with-amazon-rds/

I also highly recommend the reading of this foundational wp "Disaster recovery options in the cloud": https://docs.aws.amazon.com/pdfs/whitepapers/latest/disaster-recovery-workloads-on-aws/disaster-recovery-workloads-on-aws.pdf#disaster-recovery-options-in-the-cloud

All AWS-recommended DR models are in there

Best,

Didier

profile pictureAWS
전문가
답변함 10달 전
  • The document just shows how to promote the read replica but I'm looking at how to re-establish the sync back with old master.

0

Once you promote a read replica it is no longer related to the old source instance.

AWS
중재자
philaws
답변함 10달 전
  • Yes, but can we have the sync back again? Before promoting the read replica note the binary_log_file_name, and binary_log_file_location of the master and then once the read replica becomes a standalone master, can we re-establish the replication sync using the mysql.rds_set_external_master stored proc?

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

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

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

관련 콘텐츠