跳转至

LVS + Keepalived 生产环境参考


2014-04-10 by dongnan

环境

操作系统

head -n1 /etc/issue 
Red Hat Enterprise Linux Server release 6.2 (Santiago)

集群服务器

  • 2DirectorLB + HA (lvs + keepalived)。
  • 4RealServerweb 服务。

负载模式

  • LVS 使用 VS/DR IP负载均衡模式,调度算法为wrrRealServer权重相同。

集群状态

运行时间

uptime

12:03:55 up 414 days,  2:14,  1 user,  load average: 0.20, 0.10, 0.02

连接数

ipvsadm -lnc | wc -l
120970

其它

--timeout 超时时间:

ipvsadm -Ln --timeout

Timeout (tcp tcpfin udp): 900 120 300

--connection / -c 当前的连接:

ipvsadm -lnc | head -n10

IPVS connection entries
pro expire state       source             virtual            destination
TCP 13:58  ESTABLISHED 202.93.37.85:58916 172.27.233.45:80   172.27.233.43:80
TCP 13:24  ESTABLISHED 106.76.101.131:17647 172.27.233.45:80   172.27.233.44:80
TCP 13:23  ESTABLISHED 178.154.104.119:47901 172.27.233.45:80   172.27.233.43:80
TCP 00:47  NONE        178.150.132.114:0  172.27.233.45:80   172.27.233.44:80
TCP 11:08  ESTABLISHED 69.171.248.3:42969 172.27.233.45:80   172.27.233.43:80
TCP 09:02  ESTABLISHED 109.166.139.167:29872 172.27.233.45:80   172.27.233.44:80
TCP 06:48  ESTABLISHED 69.171.233.118:46402 172.27.233.45:80   172.27.233.43:80
TCP 00:49  NONE        88.212.37.201:0    172.27.233.45:80   172.27.233.44:80



回到页面顶部