AWS DMS migration Premigration assessment possible bug

0

So I have:

  • source: AWS Lightsail DB MYSQL on version 8.0.35
  • target: AWS Aurora MYSQL 3.07.0 (8.0.36)

And one Assesment is constantly failing "Validate if the timeout values are appropriate for a MySQL source or target"

Where on results for it says:

  • Net Read Timeout: 30
  • Net Write Timeout: 60
  • Wait Timeout: 28800
  • Message: "Net read, net write and wait timeouts must be greater than 5 minutes for DMS target database to prevent connection drops while replicating. Please increase the timeouts to at least 300 seconds"

The problem is: I already have set those first 2 timeout's to 600 on parameters group of target db, and also on both source and target endpoints with: {"AfterConnectScript": "SET net_read_timeout=600; SET net_write_timeout=600; SET replica_net_timeout=600; SET slave_net_timeout=600;"}

Also tried a couple of other fields like replica_net_timeout and slave_net_timeout, but that too did not solve the issue so I am stuck.

Appreciate any help or insights, thanks!

Also posted on: https://stackoverflow.com/questions/78697913/aws-dms-migration-premigration-assessment-possible-bug-on-validate-if-the-timeo

3 Answers
1

Hi Lucas,

Please set net_read_timeout, net_write_timeout and wait_timeout to a value greater than 300 seconds in the source and target databases.

To confirm that the values have been set at the database level, please login to the source and target databases using a MySQL client like MySQL Workbench and run the below query to get the values:

show variables like 'net_read_timeout'
show variables like 'net_write_timeout'
show variables like 'wait_timeout'

If the above values are below 300 seconds, then you need to set the parameters at the database level. For Aurora MySQL, please attached a custom DB cluster parameter group to the cluster, set the parameters in this parameter group and reboot the writer instance.

Once the parameters are set to above 300, please create a new pre-migration assessment report.

AWS
SUPPORT ENGINEER
answered a month ago
0
  • That link was indicated inside the troubleshoot of the resource and have not been helpful so far, only thing missing is trying max_allowed_packet, which I thought at first it could not be related. Will update here if that works.

0

Hi everyone, I initially got the error message, then after updating my DB instance and DB Cluster parameter groups for MySQL and Aurora MySQL with the value 3600, the premigration assessment was successful.

Try reboot your DB instances after updating the parameter groups

AWS
Paul_M
answered a month ago