Overview and best practices of multithreaded replication in Amazon RDS for MySQL, Amazon RDS for MariaDB, and Amazon Aurora MySQL
Database Blog
This article provides a comprehensive overview of Multithreaded Replication (MTR) in Amazon RDS for MySQL, MariaDB, and Amazon Aurora MySQL, focusing on its architecture, configuration, and best practices.
- MTR enhances binlog replication performance by using multiple worker threads to apply transactions in parallel
- Two primary dependency tracking methods are used: COMMIT ORDER and WRITESET
- Key configuration parameters include:
- binlog_transaction_dependency_tracking (recommended: WRITESET)
- replica_parallel_workers (default: 4 in newer versions)
- replica_preserve_commit_order (ensures transaction order consistency)
- Recommended best practices:
- Use tables with primary or unique keys
- Avoid large transactions
- Monitor and tune worker thread settings
The article emphasizes the importance of carefully configuring MTR to optimize replication performance while maintaining data consistency across source and replica databases.
The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.
Related articles
2025
2024
2025
2024
The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.