- Newest
- Most votes
- Most comments
This issue appears to be related to the AWS DMS task caching transactions on the replication instance, which is indicated by the high CDCChangesDiskTarget value (~974,000) and the SORTER message in your logs.
When a target endpoint can't keep up with the volume of changes that AWS DMS writes to it, the task caches the changes on the replication instance. If the cache grows larger than an internal threshold, the task stops reading further changes from the source. DMS does this to prevent the replication instance from running out of storage or getting stuck while reading a large volume of pending events.
The INTERNAL (54) error and the message about swap files indicate that DMS has paused reading from the source because the target can't keep up with processing the changes. Despite having sufficient memory available, the system is likely experiencing a bottleneck at the target endpoint.
To troubleshoot this issue:
- Check if there are any indexing issues on the target database that might be slowing down writes.
- Look for potential database locking on the target that could be blocking DMS write transactions.
- Consider moving tables with numerous transactions or long-running DML operations to a separate task.
- You might need to further increase the
MemoryLimitTotalandMemoryKeepTimesettings. - Evaluate if batch apply can be used more effectively for your transactions.
The low CPU utilization (0.06%) suggests that the task is indeed waiting on something else, likely the target database's ability to process the changes. This is consistent with a target latency issue where DMS is reading data from the source smoothly but encountering a bottleneck when writing to the target.
To resolve this, you may need to investigate the target database's performance, optimize indexes, or consider scaling up the target database resources to handle the write load more efficiently.
Sources
Troubleshooting target latency issues - AWS Database Migration Service
Troubleshooting latency issues - AWS Database Migration Service
Relevant content
asked 4 years ago
