在主库上执行大量的吸入操作,模拟延时,因为之前的基准测试,导致从库出现长时间的复制延时,在执行stop slave的时候没有响应。
Master_SSL_Key:
Seconds_Behind_Master: 85719
mysql> set global slave_parallel_type=logical_clock;
ERROR 3017 (HY000): This operation cannot be performed with a running slave sql thread; run STOP SLAVE SQL_THREAD first
mysql> stop slave;--卡住
但是日志中已经提示了是停止的状态,实际上复制已经无法继续进行了,只能重置从库
[Note] Slave SQL thread for channel '' exiting, replication stopped in log 'mysql-bin.000498' at position 391736019
在重启后设置了多线程的复制,在日志中提示
Coordinator has waited 431 times hitting slave_pending_jobs_size_max; current event size = 8187.
并且查看复制的状态,显示的延时为0,这个不对,并且sql的运行状态是Waiting for Slave Workers to free pending events
Seconds_Behind_Master: 0
Master_SSL_Verify_Server_Cert: No
Last_IO_Errno: 0
Last_IO_Error:
Last_SQL_Errno: 0
Last_SQL_Error:
Replicate_Ignore_Server_Ids:
Master_Server_Id:
mysql 5.7多线程复制的测试
最新推荐文章于 2023-08-02 09:39:57 发布