pt-heartbeat监控延时

测试国内主机到国外主机mysql的延时

主机

perl /usr/bin/pt-heartbeat -uroot --ask-pass  -D uk --create-table --update  --daemonize

当运行脚本,无法检测到进程时,应删掉其在tmp下产生的临时文件,重新运行即可

备机

pt-heartbeat --user=root --ask-pass --monitor --interval=1 --master-server-id=1 -D uk

http://douya.blog.51cto.com/6173221/1735386

http://www.cnblogs.com/chenmh/p/5509851.html

原文地址:https://www.cnblogs.com/HarveyBing/p/6136259.html