Hello all,
I am setting up a LVS-NAT cluster for a bunch of webservers.
I am using persistence with the expire_nodest_conn setting in my sysctl.conf
If I open a connection to the webserver VIP and then kill the webserver that
served me (trac-test2),
I would expect to get served by its brother (trac-test1).
Instead, I get the following:
Firefox can't establish a connection to the server at 10.100.77.250. (that's
the VIP)
Even by hand I am getting nowhere:
H:\>telnet 10.100.77.250 80
Connecting To 10.100.77.250...Could not open connection to the host, on port
80:
Connect failed
/var/log/messages reports:
Dec 18 16:56:12 lvs-test1 nanny[5261]: shutting down 192.168.201.22:80 due
to connection failure
[@lvs-test1 ~]$ sudo /sbin/ipvsadm
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP trac-test-pub.rdc.local:http wlc persistent 300
-> trac-test2.rdc.local:http Masq 0 0 1
-> trac-test1.rdc.local:http Masq 500 0 0
[@lvs-test1 ~]$ sudo /sbin/ipvsadm -l -c
IPVS connection entries
pro expire state source virtual destination
TCP 03:49 NONE nuw08451.company.local:0 trac-test-pub.rdc.local:http
trac-test2.rdc.local:http
Am I forgetting something?
My LVS.cf:
[@lvs-test1 ~]$ cat /etc/sysconfig/ha/lvs.cf
serial_no = 62
primary = 10.100.77.4
primary_private = 192.168.201.11
service = lvs
backup_active = 1
backup = 10.100.76.87
backup_private = 192.168.201.12
heartbeat = 1
heartbeat_port = 539
keepalive = 2
deadtime = 15
network = nat
nat_router = 192.168.201.15 eth0:1
nat_nmask = 255.255.255.0
debug_level = NONE
monitor_links = 1
virtual Trac {
active = 1
address = 10.100.77.250 eth1:1
vip_nmask = 255.255.240.0
port = 80
persistent = 300
send = "GET / HTTP/1.0\r\n\r\n"
expect = "HTTP"
use_regex = 0
load_monitor = none
scheduler = wlc
protocol = tcp
timeout = 6
reentry = 15
quiesce_server = 1
server Trac-test1 {
address = 192.168.201.21
active = 1
weight = 500
}
server Trac-Test2 {
address = 192.168.201.22
active = 1
weight = 500
}
}
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
|