实时统计
stat 命令可用于验证 TCP 优化是否正确应用:
命令:
> stat lb vserver vsrv-wireless
Virtual Server Summary
vsvrIP port Protocol State Health actSvcs
vsrv...eless * 0 TCP UP 100 1
inactSvcs
vsrv...eless 0
Virtual Server Statistics
Rate (/s) Total
Vserver hits 0 10
Requests 0 0
Responses 0 0
Request bytes 0 1580
Response bytes 0 532594360
Total Packets rcvd 0 216463
Total Packets sent 0 369898
Current client connections -- 0
Current Client Est connections -- 0
Current server connections -- 0
Requests in surge queue -- 0
Requests in vserver's surgeQ -- 0
Requests in service's surgeQs -- 0
Spill Over Threshold -- 0
Spill Over Hits -- 0
Labeled Connection -- 0
Push Labeled Connection -- 0
Deferred Request 0 0
Invalid Request/Response -- 0
Invalid Request/Response Dropped -- 0
Bound Service(s) Summary
IP port Type State Hits Hits/s
svc-internet 192.168.2.2 0 TCP UP 10 0/s
Req Req/s Rsp Rsp/s Throughp ClntConn SurgeQ
svc-internet 0 0/s 0 0/s 0 0 0
SvrConn ReuseP MaxConn ActvTran SvrTTFB Load
svc-internet 0 0 0 0 0 0
对于操作系统,总计数器应该不断增加。此外,费率计数器应为非零。
注意
前面的输出来自一个可操作但空闲的实验室系统,解释了零速率。
实时统计
已复制!
失败!