51工具盒子

依楼听风雨
笑看云卷云舒,淡观潮起潮落

Mysql开启多线程主从复制

Mysql5.7+版本

Enhanced Multi-Threaded Slave配置

# slave
slave-parallel-type=LOGICAL_CLOCK
slave-parallel-workers=16
master_info_repository=TABLE
relay_log_info_repository=TABLE
relay_log_recovery=ON

mysql> show tables like 'replication%'; +---------------------------------------------+ | Tables_in_performance_schema (replication%) | +---------------------------------------------+ | replication_applier_configuration | | replication_applier_status | | replication_applier_status_by_coordinator | | replication_applier_status_by_worker | | replication_connection_configuration | | replication_connection_status | | replication_group_member_stats | | replication_group_members | +---------------------------------------------+ 8 rows in set (0.00 sec)

标签: tables,多线程,mysql

赞(5)
未经允许不得转载:工具盒子 » Mysql开启多线程主从复制