Re: haproxy doesn't reuse server connections

2018-07-28 Thread Alessandro Gherardi
Thank you both for your reply.  Well, you've not configured any persistence option nor any load balancing algorithm My application is totally stateless, so persistence is not a good option IMO. I added "balance leastconn" and still saw haproxy closing server connections. But looking

Re: haproxy doesn't reuse server connections

2018-07-27 Thread Baptiste
In other words, you may want to enable "option prefer-last-server". But in such case, you won't load-balance anymore (all requests should go to the same server. Baptiste On Fri, Jul 27, 2018 at 7:09 PM, Cyril Bonté wrote: > Hi Alessandro, > > > Le 27/07/2018 à 17:50, Alessandro Gherardi a

Re: haproxy doesn't reuse server connections

2018-07-27 Thread Cyril Bonté
Hi Alessandro, Le 27/07/2018 à 17:50, Alessandro Gherardi a écrit : Hi, I'm running haproxy 1.8.12 on Ubuntu 14.04. For some reason, haproxy does not reuse connections to backend servers. For testing purposes, I'm sending the same HTTP request multiple times over the same TCP connection.

haproxy doesn't reuse server connections

2018-07-27 Thread Alessandro Gherardi
Hi,I'm running haproxy 1.8.12 on Ubuntu 14.04. For some reason, haproxy does not reuse connections to backend servers. For testing purposes, I'm sending the same HTTP request multiple times over the same TCP connection. The servers do not respond with Connection: close and do not close the