LVS
lvs-devel
Google
 
Web LinuxVirtualServer.org

Re: Configuring keepalived + ipvs with persistence: doesn't balance to o

To: lvs-devel@xxxxxxxxxxxxxxx
Subject: Re: Configuring keepalived + ipvs with persistence: doesn't balance to other node if initial persistent node fails.
From: Graeme Fowler <graeme@xxxxxxxxxxx>
Date: Wed, 11 Dec 2013 16:08:25 +0000
On 11/12/2013 15:26, Jose Luis Godoy wrote:
real_server 192.168.58.201 443 {
     weight 1
     inhibit_on_failure

Remove inhibit_on_failure.

That keeps the server in the pool but with weight 0, meaning no *new* connections go to it. Existing persistent connections remain.

Alternatively, if you don't want to do that, set the sysctl net.ipv4.vs.expire_quiescent_template to 1, and keep inhibit_on_failure.

Both options are in effect synonyms, meaning in both cases that the persistence templates are removed for the VS in question when either it is removed from the pool (removing inhibit_on_failure) or quiesced (weight set to 0).

Graeme
--
To unsubscribe from this list: send the line "unsubscribe lvs-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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