All of lore.kernel.org
 help / color / mirror / Atom feed
From: Graeme Fowler <graeme@graemef.net>
To: lvs-devel@vger.kernel.org
Subject: Re: Configuring keepalived + ipvs with persistence: doesn't balance to other node if initial persistent node fails.
Date: Wed, 11 Dec 2013 16:08:25 +0000	[thread overview]
Message-ID: <52A88DF9.5060306@graemef.net> (raw)
In-Reply-To: <CAO2+3OzZ-XK7X0vto7sgh4VULGT7FTep5ot_pqPqb1mB=gO6rQ@mail.gmail.com>

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

  reply	other threads:[~2013-12-11 16:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-11 15:26 Configuring keepalived + ipvs with persistence: doesn't balance to other node if initial persistent node fails Jose Luis Godoy
2013-12-11 16:08 ` Graeme Fowler [this message]
2013-12-11 16:11 ` Ryan O'Hara

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52A88DF9.5060306@graemef.net \
    --to=graeme@graemef.net \
    --cc=lvs-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.