On Sun, Feb 06, 2011 at 10:30:03PM -0800, carlo flores wrote: > Your last suggestion is what are suits call auto-scaling, and the idea of > doing that with HAProxy is really appealing and would be a big plus for us. > > > As a test tomorrow with 1.4.10/stable idea, let's say a pool of 10 servers > had two servers with zero weight, and a script watching the unix socket set > their weight proportionate to the rest if a) the leastconn queue size was > past some threshold or b) too many servers have gone unavailable. What do > you think?
That's the idea. Though instead of counting the number of missing servers, I'd really suggest checking for an available cumulated weight. After all, servers weight indicate a processing capacity. So let's say that you add X servers until the total weight is at least equal to a predefined threshold. Willy

