RHEL5用LVS实现Web负载均衡个人备注

ipvsadm -A -t 10.132.1.6:80 -s rr
ipvsadm -a -t 10.132.1.6:80 -r 10.132.1.4:80 -g
ipvsadm -a -t 10.132.1.6:80 -r 10.132.1.5:80 -g

ipfail
/usr/lib64/heartbeat/ipfail

[root@node2 ha.d]# cat ldirectord.cf
checktimeout=5
checkinterval=50
autoreload=yes
logfile="/var/log/ldirectord.log"
quiescent=yes
virtual=10.132.1.6:80
real=10.132.1.4:80 gate
real=10.132.1.5:80 gate
#real=125.64.8.26:80 ipip 5
fallback=127.0.0.1:80 gate
service=http
scheduler=rr
protocol=tcp
checktype=negotiate
request="cdntest.html"
receive="CDN HA Test Page"
virtualhost=ha.cdn.srt.cn



[root@node2 ha.d]# cat ldirectord.cf
checktimeout=5
checkinterval=50
autoreload=yes
logfile="/var/log/ldirectord.log"
quiescent=yes
virtual=10.132.1.6:80
real=10.132.1.4:80 gate
real=10.132.1.5:80 gate
#real=125.64.8.26:80 ipip 5
fallback=127.0.0.1:80 gate
service=http
scheduler=rr
protocol=tcp
checktype=negotiate
request="cdntest.html"
receive="CDN HA Test Page"
virtualhost=ha.cdn.srt.cn



updatedb

你可能感兴趣的:(Web,LVS,负载均衡,配置,HA)