On Wed, Feb 17, 2016 at 12:46:17AM -0500, CJ Ess wrote:
> So lets say that I don't want HAProxy to close the connections to my
> backend servers - they can stay active and be available for keepalives -
> but I do want every request from the frontend to go to a different backend
> via round robin. The idea being that it keeps one frontend connection from
> monopolizing a single backend while not forcing me to close the backend
> connection after every request. Is there a way I can do that with any
> version of HAProxy?

Yes with 1.6 and "http-reuse". You may need to specify "http-reuse aggressive"
or "http-reuse always" so that even the first request may reuse a connection.
Be aware however that in 1.6 no orphaned connections may remain, so at some
point each server-side connection has to belong to a client-side one. When
you get enough traffic to care about connection reuse, you never see the
situation where you have zero concurrent connections, so it's not a problem,
however it can be confusing during unit tests!

Willy


Reply via email to