I'm a rookie of using lvs.
my cluster is configured as following:(using piranha-0.4.12)
|--------|
| | 192.168.193.224 eth1:1 (vip)
|DIRECTOR| 192.168.193.223 eth1:0
| | --------------------------
| | 192.168.194.112 eth0:0
--------- 192.168.194.254 eth0:1 (route)
|
|
|-------------------|
| |
|------| |-----|
|rs1 | |rs2 |
------- -------
192.168.194.111 192.168.194.124
I have done:
echo "1">/proc/sys/net/ipv4/ip_forward
echo "1">/proc/sys/net/ipv4/ip_always_defrag
ipchains -A forward -j MASQ -s 192.168.194.0/24 -d 0.0.0.0/0
From real servers,I can ping outer servers.
But when I access http://192.168.193.224,it appears :the page is not
availabe.
issue ipvsadm on director, the result is :
IP Virtual Server version 0.9.7 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
After I excute the commands manualy:
ipvsadm -A -t 192.168.193.224 -s wlc
ipvsadm -a -t 192.168.193.224:80 -r 192.168.194.111 -m
it appears:
IP Virtual Server version 0.9.7 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP C0A8C1E0:0050 wlc
-> 00000000:0100 Masq 0 0 0
What's the trouble?
Any suggestion will be appreciate!
|