LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

RE: taking a realserver offline

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: taking a realserver offline
From: "Peter Mueller" <pmueller@xxxxxxxxxxxx>
Date: Fri, 1 Oct 2004 16:08:12 -0700
> Is it possible to take a realserver offline in such a way 
> that existing connections are immediately redirected to 
> another realserver? We've had the need to do this before and 
> don't know what else to do beyond either (1) setting the 
> weight to "0" and iterating through a process of 
> disconnecting "inactive" users/sessions and hoping that they 
> don't reconnect within the 5 minute persistence_timeout, or 
> (2) removing the host-specific entry from keepalived.conf 
> (brutally disconnecting everyone).

Put a 0 weight on the server in LVS and reset the service (e.g. apache).
Apache/ et al will send a RST for you.

Regards,

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