On Fri, Apr 22, 2016 at 02:48:43PM +0200, Baptiste wrote:
> > Basically, I want the client<>haProxy side to use keep alive, but
> > haProxy<>server side to close every connection and open a new one for each
> > request.
> >
> > Is it then correct to use http-server-close?
> 
> You are correct.  Set it up in your defaults section or in both the
> frontend and the backend.
> 
> > Also, has anybody had any issues with http-server-close in high traffic
> > environments? Like lingering connections, connections not closed properly
> > etc.
> 
> This feature has been available for many years and it is very stable
> for many years too :)
> You can use without any issue.

And it used to be the only way to have keep-alive in 1.4 and most users
continue to use it even on 1.5 or 1.6 since it preserves server resources.
It's much better than keep-alive for small to moderate loads when the
servers are very close to the LB since you don't care about the time it
takes to set up a TCP connection.

Cheers,
Willy


Reply via email to