LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] ldirectord - Real server maintenance discarded by check

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] ldirectord - Real server maintenance discarded by check
From: "Timur I. Bakeyev" <timur@xxxxxxxxxx>
Date: Tue, 14 Jan 2014 15:00:40 +0100
On Tue, Jan 14, 2014 at 12:26 PM, Jeremy Clerc <jclerc@xxxxxxxxxxxx> wrote:

> Hello everyone,
>
> I have a question about ldirectord, we have a maintenance procedure where
> we set the real server weight to 0 so connections finish correctly, then we
> stop apache on the real server, sleep to let it close all its fcgi, then
> start the server, and finally put the weight back to 1.
>
> The problem is when we start the server, ldirectord makes his check, sees
> the server is up and so add it back with a weight of 1, 1s later it rereads
> its configuration and see that the server should have a weight of 0, so it
> changes the weight back to 0.
>
> During this short time period the server takes few thousands request and
> is not ready for it, it seems like a bug about the check system.
>

I was looking for the similar, but opposite functionality - on failover
when other director host takes traffic, in the beginning  the weight of the
servers is 0 until they've been checked by the 'checkcommand'. So despite
using conntrack to keep connections live we get timeouts, as no traffic is
forwarded to the real servers.

So, it would be nice also to have ability to declare initial weight for the
connections with RS with positive weight until otherwise is proven by
checkcommand.

With best regards,
Timur Bakeyev.
_______________________________________________
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>