Best practices for changing Aurora source DB for DMS

0

We have a Redshift instance that is being filled via DMS from an Aurora cluster. Because the DMS requires the binlog to process data through to Redshift we have to have it pointing directly to the writer DB. My question is about best practices if that writer changes instance - either through a failover or even when doing a blue-green deployment change (I presume that the binlog on the new server after a blue-green deployment is not going to match the previous one). In our case, we are upgrading from Aurora MySQL 5.7 to 8.0, and our main DB is not encrypted, so we are creating a new instance to upgrade to MySQL 8.0 that will be replicating from the 5.7 server, but when we go live we need our Redshift cluster to continue to properly consume from the new DB instance.

The only way I can figure to do it is to restart the replication task from scratch, which will take more time than I want to give it. So I wanted to see if there is a best practices for this scenario that will allow the replication task to continue on the new server where it left off from the previous one.

jonb
已提問 4 個月前檢視次數 571 次
2 個答案
0
已接受的答案

Please check this blog https://aws.amazon.com/blogs/database/understand-and-optimize-replication-for-amazon-redshift-with-aws-dms/ https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Task.CDC.html you are correct on restarting DMS task for blue-green deployment isn't ideal thing to do. Leverage DMS CDC feature. This allows DMS to pick up from where it left off on the new instance.

profile pictureAWS
專家
SriniV
已回答 4 個月前
profile picture
專家
已審閱 3 個月前
  • This, this looks like it is exactly what I am looking for.

0

one way i could think of is making sure for the tables involved in the task stop making any dml or ddl changes ( stop the application and make app user with readonly access)

upgrade the cluster or even build a new encrypted cluster and setup a cdc only task without cdc start time or cdc start position.

once the task is running you can enable app user with write access so that we dont lose any changes.

Please note this needs planning and testing may be a dry run using lower environment dev/test so as to minimize downtime

AWS
已回答 4 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南