LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] question about failover with SH (source header) stickyness a

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: [lvs-users] question about failover with SH (source header) stickyness and failover
From: Michiel van Es <mve@xxxxxxxxxxxxxxxxx>
Date: Mon, 10 May 2010 16:13:53 +0200
Hello,

I am trying to create the following scenario:

Always let the client go sticky to 1 of the 2 servers.
If that sticky server fails, then failover to the other server.

I am using 1 LVS server with DR to load balance between the 2 servers.
I use ldirectord as check service to monitor the real servers.
I've got the following ldirectord.cf:

checktimeout=5
checkinterval=5
autoreload=yes
logfile="/var/log/ldirectord.log"
quiescent=yes
virtual=194.145.200.87:25
       real=194.145.200.17:25 gate
       real=194.145.200.171:25 gate
       service=smtp
       scheduler=sh
       protocol=tcp
       netmask = 255.255.255.255

virtual=194.145.200.87:27
       real=194.145.200.17:27 gate
       real=194.145.200.171:27 gate
       service=smtp
       scheduler=sh
       protocol=tcp

virtual=194.145.200.87:80
       real=194.145.200.17:80 gate
       real=194.145.200.171:80 gate
       service=http
       scheduler=sh
       protocol=tcp
       request="/src/login.php"

virtual=194.145.200.87:443
       real=194.145.200.17:443 gate
       real=194.145.200.171:443 gate
       service=https
       scheduler=sh
       protocol=tcp
       request="/src/login.php"

virtual=194.145.200.87:993
       real=194.145.200.17:993 gate
       real=194.145.200.171:993 gate
       service=imaps
       scheduler=sh
       protocol=tcp

virtual=194.145.200.87:5222
       real=194.145.200.17:5222 gate
       real=194.145.200.171:5222 gate
#      service=simpletcp
       scheduler=sh
       protocol=tcp


The problem is that when I connect to server1 and stop , for example, 
smtp (qmail) on server1, I am not automatically redistrubuted to server2.
Do I miss some failover setup in my ldirectord.cf file?

Kind regards,

Michiel

_______________________________________________
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

<Prev in Thread] Current Thread [Next in Thread>