Hello,
Am 09.05.2017 um 02:52 schrieb redundantl y: > The way ab is being executed is inline with our real world use. A > separately hosted application will generate HTML with several (20-30) > elements that will be loaded simultaneously by the end user's > browser. There isn't a delay, the elements aren't loaded sequentially. I understand that, but I still doubt that a browser will open 10 concurrent TCP connections within a millisecond. Also browser ALWAYS keepalive, which you don't consider here (I don't know if you enabled keepalive in haproxy though). I strongly suggest you look at the actual browsers behavior (when keepalive is enabled in haproxy), before you continue investing your time with a problem that may be hypothetical. > So is this behaviour we're seeing with haproxy expected? There's no > additional options we can try to make it create and use a stick-table > entry faster? This is not about stick-table being slow. Its about requests being elaborated concurrently in haproxy, so one cannot depend on the other. To get what you need, haproxy would have to block/queue incoming requests (I guess you could "maxconn 1" in your frontend, but don't you run this in production). > In the mean time, we've changed the load balancing method from round > robin to URI and are seeing the behaviour we desire, it'll just carry > the risk of not having an even distribution of load to the backend > servers. Concurrent requests from ab combined with concurrent request handling in haproxy with roundrobin balancing will lead to this behavior. I don't see how haproxy could behave differently in this configuration. cheers, lukas

