Premigration Assesment test on DMS Task

0

We did premigration test on our Data Migration Task, it shows 2 errors as below

  1. Validate if wal_level is set to logical on the source database I searched for the help on this, and got info like if we set rds.logical_replication to 1, then wal_level will set automatically to logical, unfortunately it is not changing to logical it remains same as replica.

  2. Check if the source database is configured for PGLOGICAL even this parameter group we changed to pglogical as below shared_preload_libraries=pglogical

Suresh
asked a month ago252 views
1 Answer
1

Hi Suresh,

  1. To turn on logical replication in RDS for PostgreSQL, modify a custom parameter group to set rds.logical_replication to 1 and attach it to the DB instance. Update the parameter group to set rds.logical_replication to 1 if a custom parameter group is attached to a DB instance. The rds.logical_replication parameter is a static parameter that requires a DB instance reboot to take effect. When the DB instance reboots, the wal_level parameter is set to logical [1]. Please ensure that the source database has been rebooted after the parameter was changed.

    You can verify the values for wal_level and rds.logical_replication by running the below query in the source database:

  postgres=> SELECT name,setting FROM pg_settings WHERE name IN ('wal_level','rds.logical_replication');
  1. The shared_preload_libraries parameter is also a static parameter. After pglogical has been added to the shared_preload_libraries, please reboot the RDS instance for the parameter to take effect.

    Please note that the pre-migration assessment "Check if the source database is configured for PGLOGICAL" verifies if the shared_preload_libraries value is set to pglogical to support PGLOGICAL for CDC. Note that you can ignore this assessment if you are planning to use test decoding for logical replication [2].

References:

[1] https://repost.aws/knowledge-center/rds-postgresql-use-logical-replication

[2] https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.AssessmentReport.PG.html#CHAP_Tasks.AssessmentReport.PG.pglogical

AWS
SUPPORT ENGINEER
answered a month ago
profile pictureAWS
EXPERT
iBehr
reviewed a month ago