Re: [PATCH] add a maintenance mode to servers

2010-02-02 Thread Cyril Bonté
Le Lundi 1 Février 2010 23:43:26, Holger Just a écrit : Hi On 2010-02-01 23:32, Cyril Bonté wrote: This would give something like : - UP : the server is UP because the tracked server is UP - DOWN/DOWN : the server is DOWN because the tracked server is DOWN = the line is in red -

Re: [PATCH] add a maintenance mode to servers

2010-02-02 Thread Cyril Bonté
Hi again, Le Mardi 2 Février 2010 21:07:04, Cyril Bonté a écrit : OK, you'll find a small update (smaller than I firstly thought) in attachment. please forget the previous one and find this new one that correctly hide all DOWN and MAINT servers. Thanks ;) -- Cyril Bonté diff -Naur

Re: [PATCH] add a maintenance mode to servers

2010-02-02 Thread Willy Tarreau
Hi Cyril, On Tue, Feb 02, 2010 at 11:00:47PM +0100, Cyril Bonté wrote: Hi again, Le Mardi 2 Février 2010 21:07:04, Cyril Bonté a écrit : OK, you'll find a small update (smaller than I firstly thought) in attachment. please forget the previous one and find this new one that correctly

Re: [PATCH] add a maintenance mode to servers

2010-02-02 Thread Cyril Bonté
Hi Willy, Le Mardi 2 Février 2010 23:39:22, Willy Tarreau a écrit : at first I was hesitating because those DOWN/MAINT can become quite confusing, but after some thinking, the current situation is already confusing. So I think I'll merge this one but if someone comes up with a less

Re: [PATCH] add a maintenance mode to servers

2010-02-02 Thread Cyril Bonté
Le Mardi 2 Février 2010 23:52:36, Cyril Bonté a écrit : Le Mardi 2 Février 2010 23:39:22, Willy Tarreau a écrit : (...) In my opinion the real state is MAINT, and we may complete it with some info indicating that it was propagated from another server. Maybe something such as MAINT(via) or

Re: [PATCH] add a maintenance mode to servers

2010-02-02 Thread Willy Tarreau
On Tue, Feb 02, 2010 at 11:52:36PM +0100, Cyril Bonté wrote: Hi Willy, Le Mardi 2 Février 2010 23:39:22, Willy Tarreau a écrit : at first I was hesitating because those DOWN/MAINT can become quite confusing, but after some thinking, the current situation is already confusing. So I

Re: [PATCH] add a maintenance mode to servers

2010-02-02 Thread Willy Tarreau
On Wed, Feb 03, 2010 at 12:26:28AM +0100, Cyril Bonté wrote: Le Mardi 2 Février 2010 23:52:36, Cyril Bonté a écrit : Le Mardi 2 Février 2010 23:39:22, Willy Tarreau a écrit : (...) In my opinion the real state is MAINT, and we may complete it with some info indicating that it was

Re: [PATCH] add a maintenance mode to servers

2010-02-01 Thread Cyril Bonté
Hi, Le Lundi 1 Février 2010 12:13:23, Holger Just a écrit : Hi, On 2010-01-31 11:33 PM, Willy Tarreau wrote: I'm hesitating whether we should report the tracking servers the same color, because it's not an error if they appear down, it's an expected condition which should not

[PATCH] add a maintenance mode to servers

2010-01-31 Thread Cyril Bonté
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

Re: [PATCH] add a maintenance mode to servers

2010-01-31 Thread David Birdsong
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

Re: [PATCH] add a maintenance mode to servers

2010-01-31 Thread Willy Tarreau
Hi Cyril, On Sun, Jan 31, 2010 at 07:54:55PM +0100, Cyril Bonté 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

Re: [PATCH] add a maintenance mode to servers

2010-01-31 Thread Cyril Bonté
Le Dimanche 31 Janvier 2010 20:32:45, Willy Tarreau a écrit : OK. Is the server subject to the slowstart timer once it leaves maintenance mode ? Yes, the call to set_server_up() will set the SRV_WARMINGUP flag. If some servers were tracking it, they'll go UP until the server leave the

Re: [PATCH] add a maintenance mode to servers

2010-01-31 Thread Willy Tarreau
On Sun, Jan 31, 2010 at 10:34:03PM +0100, Cyril Bonté wrote: OK, I didn't see it like this. I thought it was better to have the same behaviour as if those servers were not checked at all, and that users have the possibility to disable the tracking servers by hand. In fact not because the