Skip to content

Serverless aurora v1 5.7 mysql migration to provisioned aurora mysql 5.7 using DMS with migrate type Full load, ongoing replication is not working

0

Hi, I want to migrate from Serverless aurora 5.7 mysql to provisioned aurora mysql 5.7 using DMS service, however it is failing with below error. I also try to enable log_bin by configuring binlog_format value to ROW but still not working. I also want that replication remain enabled means if any record is inserted into source it should be replicated into provisioned aurora mysql so that we can have zero downtime.

Please if anyone can guide me then i'll be much thankful.

2024-03-04T12:15:15 [SOURCE_CAPTURE ]E: Error Code [10001] : Binary Logging must be enabled for MySQL server [1020418] (mysql_endpoint_capture.c:424)

2024-03-04T12:15:15 [SOURCE_CAPTURE ]E: Errors in MySQL server validation. Follow all prerequisites for 'MySQL as a source in DMS' from https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MySQL.html or'MySQL as a target in DMS' from https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.MySQL.html [1020418] (mysql_endpoint_imp.c:767)

1 Answer
1
  1. Aurora Serverless v1 does not support binary log replication, which is required for your DMS migration. You will need to convert your Aurora Serverless v1 cluster to a provisioned cluster.

  2. The conversion process from Aurora Serverless v1 to provisioned will involve a short downtime, typically around 2 minutes, as Aurora performs a switchover from the reader to the writer instance. It's recommended to perform this conversion during a period of low activity, as long-running transactions can lengthen the switchover process.

  3. To perform the conversion, you can use the AWS CLI with the following command:

aws rds modify-db-cluster \
    --db-cluster-identifier sample-cluster \
    --engine-mode provisioned \
    --allow-engine-mode-change \
    --db-cluster-instance-class db.r5.xlarge

This will not change your current endpoint URL.

  1. Once your cluster is provisioned, you can then upgrade from Aurora MySQL 5.7 to Aurora MySQL 8.0, and then upgrade to Aurora Serverless v2. This process will involve longer downtime, and you can mitigate it by performing a Blue/Green deployment, as outlined in the documentation: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/blue-green-deployments-overview.html

  2. The provisioned Aurora MySQL 5.7 instance does support binary log replication, which means you can use DMS to replicate the data from the provisioned instance to an Aurora Serverless v2 cluster.

  3. Alternatively, you can also consider the Blue/Green deployment approach to migrate directly from the provisioned Aurora MySQL 8.0 instance to an Aurora Serverless v2 cluster, as described in the documentation: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2-administration.html#aurora-serverless-v2-converting-from-provisioned

I hope the above information is helpful!

AWS
answered 3 months ago

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.