Mycat-web 是Mycat 可视化运维的管理和监控平台,弥补了Mycat 在监控上的空白。
帮助 Mycat 分担统计任务和配置管理任务。
Mycat-web 引入了 ZooKeeper 作为配置中心,可以管理多个节点。
Mycat-web 主要管理和监控 Mycat 的流量、连接、活动线程和内存等,具备IP 白名单、邮件告警等模块,还可以统计SQL 并分析慢 SQL 和高频SQL 等。为优化 SQL 提供依据。
Mycat的官网:http://www.mycat.org.cn/
tar -xzvf Mycat-web-1.0-SNAPSHOT-20170102153329-linux.tar.gz
cp -r mycat-web /usr/local
cd /usr/local/mycat-web/
./start.sh &
netstat -ant | grep 8082
# 关闭防火墙
systemctl stop firewalld
# 启动mysqld【host128、host129】
systemctl start mysqld
systemctl status mysqld
# 启动mycat【host128、host129】
mycat console
# 启动haproxy【host130、host131】
systemctl start haproxy
systemctl status haproxy
# 启动Keepalived【host130、host131】
systemctl start keepalived
systemctl status keepalived
# 启动ZooKeeper【host128、host129、host130】
zkServer.sh start
zkServer.sh status
http://192.168.147.128:8082/mycat/
在Mycat-web 上可以进行Mycat 性能监控,例如:内存分享、流量分析、连接分析、活动线程分析等等。