On Wed, Apr 11, 2012 at 09:50:07AM +0100, Jonathan Matthews wrote: > On 11 April 2012 08:03, Marcello Coutinho <[email protected]> wrote: > > thanks Willy, > > > > I'll test this changing this option. > > > > If it keep sending traffic to offline hosts, how can I work around/fix this? > > It will be some code to fix or something that I can't workaround? > > Willy implied that you might not see this behaviour with "nbproc 1", > which is the recommended setting.
And I'm pretty sure this is the case. Quite frankly, there are gray areas in the code, but the server selection mechanisms used in LB and persistence are quite sure and robust. Once you get the log saying that the server has been marked down, this server is taken out of the pool so it will not be selected anymore for LB. We had one bug until recently where a server marked down but with remaining connections active could pick new requests from the backend's queue (which does not involve LB). This has been fixed. You may see some requests come out of the server's queue when it's marked down if "option redispatch" is not set, but no new request will be distributed there. Regards, Willy

