2台Image Server 请求比较多,InActConn高峰的时候在12万左右。
如下:
[root@localhost log]# ipvsadm -l
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP 172.16.1.200:http rr
-> 172.16.1.43:http Route 1 30447 91142
-> 172.16.1.48:http Route 1 30539 90906
ipvsadm中有timeout的设置,默认为900 120 300
[root@localhost log]# ipvsadm -L --timeout
Timeout (tcp tcpfin udp): 900 120 300
修改为 120 60 60
[root@localhost log]# ipvsadm --set 120 60 120
[root@localhost log]# ipvsadm -L --timeout
Timeout (tcp tcpfin udp): 120 60 120
修改后
[root@localhost log]# ipvsadm -l
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP 172.16.1.200:http rr
-> 172.16.1.43:http Route 1 16074 47912
-> 172.16.1.48:http Route 1 15937 47858
有明显的下降
阅读(3026) | 评论(0) | 转发(0) |