OneProxy具有主从延迟检测功能,检测方式有两种。

  1、通过MySQL本身提供的延迟信息,即在从库中执行show slave status; 查看Seconds_Behind_Master值;

  2、通过更新一个特定的表的时间戳来判断,类似pt-toolkits中的pt-heartbeat。

 

第一种配置方法为在启动脚本上加上

 –repadmin-username=<user> –repadmin-password=<encrypted password> \

再重启

 

第二种配置方法为在启动脚本上加上

–proxy-replication-check  –repadmin-username=<user> –repadmin-password=<encrypted password>\

再重启

相关文章:

  • 2021-11-22
  • 2021-04-08
  • 2022-12-23
  • 2021-12-07
  • 2022-01-16
  • 2021-05-26
猜你喜欢
  • 2021-09-02
  • 2022-12-23
  • 2022-12-23
  • 2021-09-13
  • 2021-09-20
  • 2021-05-02
  • 2021-11-22
相关资源
相似解决方案