jjfjjj 发表于 2019-1-5 10:15:28

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

# 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



# 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



页: [1]
查看完整版本: RHEL5用LVS实现Web负载均衡个人备注