This is really cool.

I recently wrote a script to do a 'slow down' that writes decreasing
percentages to the stats socket over a configurable time window.

It would be really cool to be able to use the slow start logic
internal to haproxy combined with this command to implement all of
what I described above in haproxy.  I could toss my code then.

On Sun, Jan 31, 2010 at 10:54 AM, Cyril Bonté <[email protected]> wrote:
> Hi willy,
> this is a first attempt to add a maintenance mode on servers, using the stat 
> socket (in admin level).
>
> It can be done with the following command :
> set maintenance <backend>/<server> on (or off to leave the maintenance mode).
>
> In this mode, no more checks will be performed on the server and it will be 
> marked as a special DOWN state (MAINT).
> If some servers were tracking it, they'll go UP until the server leave the 
> maintenance mode.
> The stats page and the CSV export also display this special state.
>
> This can be used to disable the server in haproxy before doing some 
> operations on this server itself.
> This is a good complement to the "http-check disable-on-404" keyword and 
> works in TCP mode.
>
> Tell me if it looks OK for you or if it needs some more work.
> Thanks ;)
>
> --
> Cyril Bonté
>

Reply via email to