一体化监控管理平台解决方案,一体化监控管理平台的应用范围
900
2023-02-13
HAproxy监测工具(HaTop)
1.什么是HaTop
2.安装部署
在安装之前需要开启haproxy的sock
修改
/etc/haproxy/haproxy.cfg文件中的global部分,添加
1 | stats socket/tmp/haproxy.sock |
下载安装包
安装
1 2 3 4 5 | unzip master.zip cd hatop-master/ install -m 755 bin/hatop /usr/local/bin install -m 644 man/hatop.1 /usr/local/share/man/man1 gzip /usr/local/share/man/man1/hatop.1 |
以上可以直接复制黏贴就可以实现了,具体的参数在hatop-master/README 可以了解到
3.HaTop使用
1 | hatop -s /tmp/haproxy.sock |
按q键退出,运行界面分为5大块 (界面切换分别按 1 2 3 4 5 来选择)
很多参数在上面的hatop-master/README 文件中可以了解的,界面也很清晰的告诉我们多少个机器是OK的
In STATUS mode--------------::
ACT server is active (server), number of active servers (backend) 存货机器BCK server is backup (server), number of backup servers (backend) 备份机器QCUR current queued requests 当前队列请求QMAX max queued requests 最大队列请求SCUR current sessions 当前会话SMAX max sessions 最大会话SLIM sessions limit 会话限制STOT total sessions 总会话数
In TRAFFIC mode---------------::
LBTOT total number of times a server was selected 每个服务器被选中的次数RATE number of sessions per second over last elapsed second 过去一秒的会话运行次数RLIM limit on new sessions per second 在每秒新建会话限制RMAX max number of new sessions per second 每秒最大连接数BIN bytes in (IEEE 1541-2002)BOUT bytes out (IEEE 1541-2002)
In HTTP mode------------::
In ERRORS mode--------------::
CF number of failed checksCD number of UP->DOWN transitionsCL last status changeECONN connection errorsEREQ request errorsERSP response errorsDREQ denied requestsDRSP denied responsesDOWN total downtime
Health check status reference=============================::
UNK unknownINI initializingSOCKERR socket errorL4OK check passed on layer 4, no upper layers testing enabledL4TMOUT layer 1-4 timeoutL4CON layer 1-4 connection problem, for example"Connection refused" (tcp rst) or "No route to host" (icmp)L6OK check passed on layer 6L6TOUT layer 6 (SSL) timeoutL6RSP layer 6 invalid response - protocol errorL7OK check passed on layer 7L7OKC check conditionally passed on layer 7, for example 404 withdisable-on-404L7TOUT layer 7 (HTTP/SMTP) timeoutL7RSP layer 7 invalid response - protocol errorL7STS layer 7 response error, for example HTTP 5xx
1 |
可以通过给该命令行查询一些服务器信息,可以敲“help”命令查询命令
发表评论
评论列表