LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] Blocking LVS probles with iptables

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [lvs-users] Blocking LVS probles with iptables
From: Hallvard Breien Furuseth <h.b.furuseth@xxxxxxxxxxx>
Date: Mon, 20 Nov 2017 17:15:37 +0100
On 20/11/17 15:55, Michael Schwartzkopff wrote:
> Am 20.11.2017 um 15:38 schrieb Hallvard Breien Furuseth:
>> I want a realserver to temporarily tell the load balancer to not
>> send new connections, but to keep old connections.  This seems to
>> work, is it OK?
> 
> Why you just set its weight to zero?


Then I'd have to mail the people running the load balancer.
Or am I missing some existing protocol which lets me do this?

Anyway, it seems simpler and cleaner if the realserver's state vs.
the load balancer is kept fully on the realserver - if iptables is a
clean solution, anyway:-) E.g. in the shutdown script, to disturb
clients as little as possible when taking a realserver down:

1. Block LVS probes temporarily.
2. Wait at least until the load balancer has noticed this, so new
    clients won't get failed connections to this server, and short-
    lived clients get a chance to finish without losing connections.
3. Shutdown / reboot / whatever.

-- 
Hallvard

_______________________________________________
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>