Hello all, Maybe i misunderstood how the agent-check works. Actually when i have a weight other than "100%" the server switches to "DRAIN" state.
In my current setup i just have a unique server working. echo 'show stat' | socat /var/run/haproxy/socket1 stdio | grep ^bk_global bk_global,cache1,0,0,0,0,,0,0,0,,0,,0,0,0,0,UP,1,1,0,0,0,864,0,,1,1,1,,0,,2,0,,0,L4OK,,0,0,0,0,0,0,0,0,,,,0,0,,,,,-1,,,0,0,0,0, bk_global,cache2,0,0,0,0,,0,0,0,,0,,0,0,0,0,DOWN,1,1,0,1,1,859,859,,1,1,2,,0,,2,0,,0,L4CON,,2998,0,0,0,0,0,0,0,,,,0,0,,,,,-1,No route to host,No route to host,0,0,0,0, bk_global,BACKEND,0,0,0,0,6557,0,0,0,0,0,,0,0,0,0,UP,1,1,0,,0,864,0,,1,1,0,,0,,1,0,,0,,,,0,0,0,0,0,0,,,,,0,0,0,0,0,0,-1,,,0,0,0,0, The agent-check report "100%" telnet 10.104.9.81 4242 Trying 10.104.9.81... Connected to 10.104.9.81. Escape character is '^]'. 100% Connection closed by foreign host. When i force the value to "90%", telnet 10.104.9.81 4242 Trying 10.104.9.81... Connected to 10.104.9.81. Escape character is '^]'. 90% Connection closed by foreign host. The status of the first server change to "DRAIN" echo 'show stat' | socat /var/run/haproxy/socket1 stdio | grep ^bk_global bk_global,cache1,0,0,0,0,,0,0,0,,0,,0,0,0,0,DRAIN,0,1,0,0,0,1020,0,,1,1,1,,0,,2,0,,0,L4OK,,0,0,0,0,0,0,0,0,,,,0,0,,,,,-1,,,0,0,0,0, bk_global,cache2,0,0,0,0,,0,0,0,,0,,0,0,0,0,DOWN,1,1,0,1,1,1015,1015,,1,1,2,,0,,2,0,,0,L4CON,,2999,0,0,0,0,0,0,0,,,,0,0,,,,,-1,No route to host,No route to host,0,0,0,0, bk_global,BACKEND,0,0,0,0,6557,0,0,0,0,0,,0,0,0,0,DOWN,0,0,0,,0,1020,1020,,1,1,0,,0,,1,0,,0,,,,0,0,0,0,0,0,,,,,0,0,0,0,0,0,-1,,,0,0,0,0, Is this the expected behaviour ? Regards, Smana

