- Newest
- Most votes
- Most comments
Based on the logs you've provided and the issue you're describing, there are a few potential reasons why your AWS Database Migration Service (DMS) task is not replicating changes (deltas) after the initial full load from DocumentDB to OpenSearch:
-
Change Streams: Ensure that change streams are enabled on your DocumentDB cluster. DMS uses the operations log (oplog) to capture changes during ongoing replication. If change streams are not enabled, DMS won't be able to capture and replicate changes.
-
Oplog Retention: Check if the oplog in DocumentDB is large enough to retain changes for the duration between DMS reads. If DocumentDB flushes out the records from the oplog before DMS reads them, your tasks will fail to replicate changes. It's recommended to size the oplog to retain changes for at least 24 hours.
-
Task Configuration: Verify that your DMS task is configured for both full load and CDC (Change Data Capture). Make sure the "Migration type" is set to "Migrate existing data and replicate ongoing changes" in your task settings.
-
Replication Instance Storage: Check if your replication instance has sufficient storage. If the replication instance storage reaches 90% of capacity, CDC ongoing changes can be paused. This could explain why you're seeing "No records received to load or apply on target" in your logs.
-
Network Connectivity: Ensure there are no network issues between your DMS replication instance and the DocumentDB source.
-
Permissions: Verify that the user account used for the DMS source endpoint has the necessary permissions to read the oplog and capture changes.
To troubleshoot:
- Check the DMS task status and metrics in the AWS console for any errors or warnings.
- Verify that changes are actually occurring in your source DocumentDB after the full load.
- Consider increasing the log verbosity of your DMS task to get more detailed information.
- If the issue persists, you may need to recreate the task or consider scaling up your replication instance if resource constraints are the problem.
If none of these solve the issue, you may need to contact AWS support for further assistance.
Sources
Using Amazon DocumentDB (with MongoDB compatibility) as a source for AWS DMS - AWS Database Migration Service
Resolve CDC task paused issue in AWS DMS | AWS re:Post
Upgrading your Amazon DocumentDB cluster using AWS Database Migration Service - Amazon DocumentDB
it was indeed change streams missing: https://docs.aws.amazon.com/documentdb/latest/developerguide/change_streams.html
answered 2 years ago
Relevant content
asked 4 years ago
