Hi Laurent,

On Thu, Sep 27, 2012 at 11:02:08AM +0200, Laurent DOLOSOR wrote:
> Hello,
> 
> Tested on HAProxy 1.4.22.
> 
> I have several backends that point to the same physicals servers (on 
> different ports). When I do a maintenance on one of the servers, I have 
> to check backends one by one and disable them as often as I have backend.
>
> Is it possible to add a "global select" who permit to 
> enable/disable/soft start/soft stop all checked servers on the interface ?

It's not certain, we need to check what the requests look like, as I'm not
certain we loop on multiple backends on the stats request. Also we don't
want to have to deal with too large requests on large configs (some people
have more than 500 backends in their configs).

> Also, when a server is soft stopped, is it possible it have another 
> green (lighter green ?) in order to see it easily ?

Good point, I already got hit too by this lack of difference. I don't know
what color we can use however, as I have noticed that some of them already
appear very similar on many low-contrast LCDs. Or maybe instead use a stronger
green, which is closer to the brown of the maintenance mode and will easily
catch the eye ?

Do you think you could do it yourself ? It's in src/dumpstats.c, you need
to add a new color after "active3" (eg: "active3stop") and add the check
here to use this style when displaying an active server in state 3 which
has a zero weight :

    chunk_printf(&msg,
                 /* name */
                 "<tr class=\"%s%d\">",
                 (sv->state & SRV_BACKUP) ? "backup" : "active", sv_state);

If you do this, please check that your patch applies to 1.5-dev and I'll
merge it in both versions.

Regards,
Willy


Reply via email to