On Thu, Mar 15, 2012 at 12:03:02PM +0200, Michele Mazzucco wrote: > Hello Willy, > > when the 'enable' command fails, it ignores ALL the servers in the list, > e.g., see line 2 and line 4 of the logs below. The command is exactly the > same, however it fails at the first attempt.
I have rechecked using a simple config with 5 servers of which I disable then enable 3, and I never observe this problem. > For testing purposes, I have now added a small sleep (40 ms) between the > enable/disable command and the "check". It looks like things are working as > expected now. It would make it seem like this is related to a buffering issue anywhere in the chain then. > Please note, however, that this is not due to the fact that I am using 2 > separate sockets -- the spurious behavior occurs even if a single socket > (open in interactive mode) is employed. Here's what I've tried : $ printf "disable server echo/www3;disable server echo/www4;disable server echo/www5;show stat;enable server echo/www3;enable server echo/www4;enable server echo/www5;show stat\n"|socat stdio /tmp/sock1 I always have the 3 serves marked down on the first "show stat" and always have the 3 marked up again on the secong "show stat". I don't know how to try to reproduce what you observe :-/ Could you please run "strace -s 1000" on either haproxy (if it's not in prod) or the client ? Maybe we'll observe the timing to reproduce to get the issue. Willy

