I am trying to get an LVS server to handle a couple clusters of web servers.
DNS points to 2 virtual ip addresses. Is it possible to do this? My
ldirectord.cf on the lvs is :
checktimeout=3
checkinterval=1
fallback=127.0.0.1:80
virtual=63.210.62.158:80
real=63.210.62.156:80 gate
real=63.210.62.157:80 gate
service=http
request="index1.html"
receive="adcritic.com"
scheduler=rr
protocol=tcp
checktype=negotiate
virtual=63.210.62.135:80
real=63.210.62.130:80 gate
real=63.210.62.131:80 gate
real=63.210.62.133:80 gate
service=http
request="index1.html"
receive="Test Page"
scheduler=rr
protocol=tcp
checktype=negotiate
ifcfg-eth0* on lvs is:
DEVICE="eth0"
BOOTPROTO="none"
IPADDR="63.210.62.140"
NETMASK="255.255.255.0"
ONBOOT="yes"
IPXNETNUM_802_2=""
IPXPRIMARY_802_2="no"
IPXACTIVE_802_2="no"
IPXNETNUM_802_3=""
IPXPRIMARY_802_3="no"
IPXACTIVE_802_3="no"
IPXNETNUM_ETHERII=""
IPXPRIMARY_ETHERII="no"
IPXACTIVE_ETHERII="no"
IPXNETNUM_SNAP=""
IPXPRIMARY_SNAP="no"
IPXACTIVE_SNAP="no"
DEVICE=eth0:0
IPADDR=63.210.62.135
NETMASK=255.255.255.255
NETWORK=63.210.0.0
BROADCAST=63.210.0.255
ONBOOT=yes
DEVICE=eth0:1
IPADDR=63.210.62.158
NETMASK=255.255.255.255
NETWORK=63.210.0.0
BROADCAST=63.210.0.255
ONBOOT=yes
And the lo:* on the real servers:
BROADCAST=127.255.255.255
ONBOOT=yes
NAME=loopback
DEVICE=lo:0
IPADDR=63.210.62.135 (or 158 depending on cluster)
NETMASK=255.255.255.255
NETWORK=63.210.0.0
BROADCAST=63.210.0.255
ONBOOT=yes
NAME=loopback
I get traffic to the 158 cluster, but not to the 135 cluster (as seen through
watch "ipvsadm -L -n")
Thanks,
Jeffrey A Schoolcraft
|