1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
| 编辑haproxy.cfg 加上下面参数 listen admin_stats stats enable bind *:9999 mode http option httplog log global maxconn 10 stats refresh 30s stats uri /admin stats realm haproxy stats auth admin:admin stats hide-version stats admin if TRUE
保存退出后 重起service haproxy restart 然后访问 http:
页面详细参数解释 Queue Cur: current queued requests Max:max queued requests Limit: Session rate(每秒的连接回话)列表: scur: current sessions smax: max sessions slim: sessions limit
Sessions Total:
Cur: Max: Limit: Lbtot: total number of times a server was selected Bytes In: Out:
Denied Req: denied requests
Resp:denied responses Errors Req:request errors Conn:connection errors Resp: response errors (among which srv_abrt)
Warnings Retr: retries (warning) Redis:redispatches (warning) Server列表: Status:状态,包括up(后端机活动)和down(后端机挂掉)两种状态 LastChk: 持续检查后端服务器的时间 Wght: (weight) : 权重 Act: server is active (server), number of active servers (backend) Bck: server is backup (server), number of backup servers (backend) Down: Downtime: downtime: total downtime (in seconds) Throttle: warm up status
|