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.

2012-03-15 08:13:55,191 Disabling reserves
2012-03-15 08:13:55,191 disable server www/i-95f89df1 ; disable server 
www/i-8bf89def ; disable server www/i-97f89df3
....


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
2012-03-15 08:14:18,113 Expected 5 active serves, have 2, calling 
change_state() again
2012-03-15 08:14:18,113 enable server www/i-95f89df1 ; enable server 
www/i-8bf89def ; enable server www/i-97f89df3
...
012-03-15 08:14:53,963 Enabling reserves
2012-03-15 08:14:53,963 enable server www/i-95f89df1 ; enable server 
www/i-8bf89def ; enable server www/i-97f89df3
2012-03-15 08:14:53,964 Expected 5 active serves, have 2, calling 
change_state() again
2012-03-15 08:14:53,964 enable server www/i-95f89df1 ; enable server 
www/i-8bf89def ; enable server www/i-97f89df3
.....
2012-03-15 08:14:54,971 Disabling reserves
2012-03-15 08:14:54,972 disable server www/i-95f89df1 ; disable server 
www/i-8bf89def ; disable server www/i-97f89df3
....
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
...
2012-03-15 08:15:46,297 Disabling reserves
2012-03-15 08:15:46,297 disable server www/i-95f89df1 ; disable server 
www/i-8bf89def ; disable server www/i-97f89df3


Michele



On Mar 15, 2012, at 8:46 AM, Willy Tarreau wrote:

> Hi Michele,
> 
> On Wed, Mar 14, 2012 at 01:07:51PM +0200, Michele Mazzucco wrote:
>> Hello Willy,
>> 
>> I have tried to follow your advice, but it didn't solve the matter -- it
>> looks like the problem is not the web interface.
>> After executing the code above, I use a different socket to retrieve the
>> stats and check that the number of active servers corresponds to the expected
>> one.
>> This is the log 
>> 
>> 
>> 2012-03-14 10:50:56,568 Enabling reserves
>> 2012-03-14 10:50:56,568 enable server www/i-932dbef7
>> <-- command sent over the socket
>> 2012-03-14 10:50:56,569 Expected 5 active serves, have 4, calling 
>> change_state() again
>> 2012-03-14 10:50:56,569 enable server www/i-932dbef7
>> <--- command sent over the socket
>> ... server enabled
> 
> Just to be sure, is it the disabling of servers which causes trouble or
> enabling them back ?
> 
> I'm asking because we (very) recently fixed an issues related to servers
> leaving maintenance mode which was introduced by fixing another issue with
> server tracking, but the regression did not affect any 1.4 releases.
> However, since both fixes have been backported into 1.4.20, it is possible
> there was another corner case we did not identify and which is solved now.
> 
> Just in case, would you please check if 1.4.20 still behaves the same ?
> Maybe we're trying to troubleshoot an already fixed issue.
> 
> Regards,
> Willy
> 


Reply via email to