LVS健康性检查
ldirectord
监控和控制LVS守护进程,可管理LVS规则
包名
ldirectord-3.9.6-0rc1.1.1.x86_64.rpm
下载地址
http://download.opensuse.org/repositories/network:/ha-clustering:/Stable/CentOS_CentOS-7/x86_64/
配置ldirectord
vim /etc/ha.d/ldirectord.cf
#记录日志
logfile="/var/log/ldirectord.log"
#logfile="local0"
#指定VIP和RIP地址
virtual=10.0.0.100:80
real=192.168.160.140:80 gate
real=192.168.160.150:80 gate
#sorry server
fallback=127.0.0.1:80 gate
service=http
scheduler=rr
#persistent=600
#netmask=255.255.255.255
protocol=tcp
checktype=negotiate
checkport=80
request="index.html"
#receive="Test Page"
virtualhost=www.x.y.z
启动服务后会自动生成ipvsadm