Hi,
> We have experimented a bit with the latest haproxies and keep-alive. We
> rely on haproxy to set good maxconn values for our servers so they can
> operate at full speed without becoming overloaded.
>
> When using multiple servers in a backend, "prefer-last-server" is
> required to get keep-alive working, but the sessions seem to be a bit
> too sticky - haproxy perfers putting the request on a server _queue_
> instead of assigning it to a server that still has some capacity left.
>
> So we found that the average serving time increased with keep-alive.
>
> Suggested patch attached -- NOT TESTED PROPERLY!! -- but shows the
> spirit of something...
Commit 2481d167efd ("BUG/MEDIUM: backend: prefer-last-server breaks
redispatch") probably fixes your problem as well:
http://haproxy.1wt.eu/git?p=haproxy.git;a=commit;h=2481d167efd15708417a1ba68b2de35468a67358
Regards,
Lukas