I would like to set up VS-NAT for load-balancing 2
real web servers
here is the details:
load balancer IP:
eth0 203.84.123.123
eth1 172.16.0.1
2 real servers IP:
172.16.0.2
172.16.0.3
Here is what I type in load balancer:
echo 1 >
/proc/sys/net/ipv4/ip_forward
ipchains -A forward -j MASQ -s 172.16.0.0/24 -d
0.0.0.0/0
ipvsadm -A -t 203.84.123.123:80 -s rr
ipvsadm -a -t 203.84.123.123:80 -r 172.16.0.2:80
-m
ipvsadm -a -t 203.84.123.123:80 -r 172.16.0.3:80
-m
When I use lynx outside to test, it shows me the
web site in round robin style.
But when I use Netscape or IE, it does not. And the
response is very very slow.
I've tried to delete cache once in every
trial.
Any body has the same
experience?
|