If there is workload on the replication source, the checksum will see a lot of differences due to the asynchronous nature of replication.
pt-table-checksum uses replication in STATEMENT base but I prefer to not use that binlog row format.
However to lower the differences, maybe you could try to use WAIT_FOR_EXECUTED_GTID_SET() (see https://dev.mysql.com/doc/refman/8.0/en/gtid-functions.html#function_wait-for-executed-gtid-set)
This will allow the checksum on the replica to wait for some missing transactions to be applied.
Of course GTID must be enabled.
后续会做
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
We expect to add this feature in future versions.
Thank you for your attention and suggestions.
登录 后才可以发表评论