LVS测试

来源:互联网 发布:js修改div属性 编辑:程序博客网 时间:2024/06/07 00:26

使用webbench对LVS进行请求

 webbench -c 1000 -t 60 http://192.168.1.182/

Webbench - Simple Web Benchmark 1.5Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.Benchmarking: GET http://192.168.1.182/1000 clients, running 60 sec.Speed=27578 pages/min, 248858 bytes/sec.Requests: 18055 susceed, 9523 failed.

ipvsadm统计结果

[root@localhost ipvsadm]#  ipvsadm -L --statsIP Virtual Server version 1.2.1 (size=4096)Prot LocalAddress:Port               Conns   InPkts  OutPkts  InBytes OutBytes  -> RemoteAddress:PortTCP  192.168.1.182:http              28578   109361        0  7204881        0  -> 192.168.1.191:http               9526    50190        0  3336528        0  -> 192.168.1.189:http               9526    49644        0  3296733        0  -> 192.168.1.171:http               9526     9527        0   571620        0

请求到LVS后数据包未丢失,CPU服务器负载无变动。

后端应用服务器负载增加,请求有失败现象。

原创粉丝点击