I am trying to implement the two node ha/load balanced topology. I've been
successful with the ha part, the servers will fail over, but I've been
unable to get load balancing to work.
I've got two identical http servers running Red Hat 7.3 and Ultramonkey
2.0. The kernels are stock Red Hat 2.4.18-19.7.xsmp kernels. I'd like to
stick with the stock kernel. I'm trying to use the iptables method for the
virtual ip address.
Here are some of my configs:
iptables:
iptables -t nat -A PREROUTING -p tcp -d 10.1.57.100 --dport 80 -j REDIRECT
--to-port 80
ldirectord.cf:
checktimeout=3
checkinterval=10
autoreload=yes
virtual=10.1.57.100:80
real=10.1.57.3:80 gate
real=10.1.57.4:80 gate
fallback=127.0.0.1:80
service=http
request=".testpage"
receive="test page"
scheduler=rr
protocol=tcp
haresources:
(ultux3)
ultux3 IPaddr::10.1.57.100/24 ldirectord::ldirectord.cf
(ultux4)
ultux4 IPaddr::10.1.57.100/24 ldirectord::ldirectord.cf
Any suggestions?
Thanks!
|