Hey everyone -
Has anyone had any luck configuring ldirectord?
My VIP is 192.168.0.40
My two RIPs are 192.168.1.1 and 192.168.1.3
Here is my configuration file for ldirectord:
checktimeout=10
checkinterval=10
autoreload=yes
logfile="/var/log/ldirectord.log"
# A sample virual with a fallback that will override the gobal setting
virtual=192.168.0.40:80
real=web1:80 gate 5
real=web2:80 gate 5
service=http
request="index.html"
receive="Test Page"
scheduler=lc
protocol=tcp
Everytime I run ldirectord I get the following in the log:
Changed virtual server: 192.168.0.40:80
Changed real server: 192.168.1.1:80 (1 x 192.168.0.40:80)
Changed real server: 192.168.1.3:80 (2 x 192.168.0.40:80)
Quiescent real server: 192.168.1.1:80 (2 x 192.168.0.40:80)
Quiescent real server: 192.168.1.3:80 (1 x 192.168.0.40:80)
And ipvsadm changes the weights on my real servers from 1 to 0:
IP Virtual Server version 0.8.2 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP lvs:http lc
-> web2:http Route 0 0 0
-> web1:http Route 0 0 0
Thanks,
Matt
|