I tried promoting a read replica to a separate RDS instance. It took nearly 10 minutes to complete and during that time. As far as I can think, it should just break the replication process, sync for the time lag. But I saw the db instance getting rebooted also in case of EC2 RDS. Can someone please clearly explain to me the whole process?
According to http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ReadRepl.html rebooting is part of the process:
The following steps show the general process for promoting a read replica to a Single-AZ DB instance.
Stop any transactions from being written to the read replica source DB instance, and then wait for all updates to be made to the read replica. Database updates occur on the read replica after they have occurred on the source DB instance, and this replication "lag" can vary significantly. Use the Replica Lag metric to determine when all updates have been made to the read replica.
To be able to make changes to the read replica, you must the set the read_only parameter to 0 in the DB parameter group for the read replica.
Perform all needed DDL operations, such as creating indexes, on the read replica. Actions taken on the read replica do not affect the performance of the source DB instance.
Promote the read replica by using the Promote Read Replica option on the RDS console, the CLI command rds-promote-read-replica, or the PromoteReadReplica API operation.
Note The promotion process takes a few minutes to complete. When you promote a read replica, replication is stopped and the read replica is rebooted. When the reboot is complete, the read replica is available as a Single-AZ DB instance.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With