| 
 
 
Hello:
I have a load balancer configured with ldirectord.
I have two web servers configured to serve http.
I want to keep connections persistent to a web server
until that server dies.  If it dies, I want connections
to go to the other web server.
In ldirectord.cf, I set quiescent=no in the global directives
and persistent=15000 in my virtual service.
I also issued these commands on my load balancer:
echo 1 > /proc/sys/net/ipv4/vs/expire_quiescent_template
echo 1 > /proc/sys/net/ipv4/vs/expire_nodest_conn
It works correctly to keep connections persistent to
a web server, but it is not switching users to a
live server when it fails.
Here is what I did to test it:
I have both web servers up and running.
ipvsadm -L -n on the load balancer shows that:
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  204.61.221.44:80 wlc persistent 15000
  -> 204.61.221.39:80             Route   1      1          0
  -> 204.61.221.35:80             Route   1      0          0
Now, I can visit the virtual IP 204.61.221.44 in a web brower
and I get a page from the 204.61.221.39 web server.
If I then shut down the 204.61.221.39 web server, ipvsadm
shows me it is no longer using it:
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  204.61.221.44:80 wlc persistent 15000
  -> 204.61.221.35:80             Route   1      0          0
But, if I do a reload on the web brower, I get a connection reset.
I can go directly to 204.61.221.35 and it works fine.
How do I fix this?
Thanks,
        Neil
--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net/centos
Virtual private server with CentOS 5.5 preinstalled
Unmetered bandwidth = no overage charges 
_______________________________________________
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
 |