Hi Willy,

I apologize if I wasn't clear. The comment in my previous email means that the 
servers were enabled, as expected.
In other words, disabling servers seems to work fine ALL the times, while 
enabling servers works from time to time only.

In the scenario described by those logs (see my previous email), 2 servers are 
always enabled, while 3 are enabled/disabled at runtime.

The following log

2012-03-15 08:14:18,112 Enabling reserves
2012-03-15 08:14:18,113 enable server www/i-95f89df1 ; enable server 
www/i-8bf89def ; enable server www/i-97f89df3      <--- line 2
2012-03-15 08:14:18,113 Expected 5 active serves, have 2, calling 
change_state() again                                                          
<--- line 3
2012-03-15 08:14:18,113 enable server www/i-95f89df1 ; enable server 
www/i-8bf89def ; enable server www/i-97f89df3      <--- line 4


means that 3 servers were supposed to be enabled after line 2 (e.g., 5 servers 
in total), but were not (only the 2 'always on' servers are enabled).
Hence, the command was issued again in line 4. This time the command succeeded.


Here, instead:

2012-03-15 08:15:45,289 Enabling reserves
2012-03-15 08:15:45,290 enable server www/i-95f89df1 ; enable server 
www/i-8bf89def ; enable server www/i-97f89df3      <---- enabling works fine

the command succeeded at the first attempt.


I should mention that line 3 above uses a (different) socket which is open in 
interactive mode. There, the updated state is retrieved by means of 'show stat'.


Does it make any sense now?

Thanks,
Michele

On Mar 15, 2012, at 11:25 AM, Willy Tarreau wrote:

> Hi Michele,
> 
> On Thu, Mar 15, 2012 at 10:16:36AM +0200, Michele Mazzucco wrote:
>> Hello Willy,
>> 
>> I have just upgraded HAProxy from 1.4.18 to 1.4.20 and it looks like the
>> problem occurs when enabling servers only.
> 
> Then you got me lost. Could you please detail exactly what you observe after
> you send the commands ? at some point you wrote "enabling works fine" below,
> so I suspect that other times it does not work fine, probably meaning that
> some of the servers are still down. Could you please then indicate which one
> is up and which one is down after each command ?
> 
> Thanks,
> Willy
> 


Reply via email to