Re: Backend connections leak

2019-10-01 Thread Willy Tarreau
Hello Marco, On Tue, Oct 01, 2019 at 10:46:31AM +0200, Marco Colli wrote: > However the problem is that **a few hundreds connections remain open from > HAProxy to the Puma web servers forever**. That slow down HAProxy. > > When we restart HAProxy then everything works fine again and the number

Re: Backend connections leak

2019-10-01 Thread Marco Colli
> > With "forever" you mean longer then 1m ? Yes, unfortunately forever means forever, not just 1 minute. I have already tried to wait several minutes (e.g. more than 10 min) and the number of backend connections reported by Datadog remains the same (e.g. ~200). When I restart HAProxy then the

Re: Backend connections leak

2019-10-01 Thread Aleksandar Lazic
Am 01.10.19 um 11:18 schrieb Marco Colli: > Here's my configuration: > > $ haproxy -vv  > HA-Proxy version 2.0.7-1ppa1~bionic 2019/09/28 - https://haproxy.org/ [snipp] > $ cat /etc/haproxy/haproxy.cfg > global > log /dev/loglocal0 > log /dev/loglocal1 notice > chroot /var/lib/haproxy > stats

Re: Backend connections leak

2019-10-01 Thread Marco Colli
Here's my configuration: $ haproxy -vv HA-Proxy version 2.0.7-1ppa1~bionic 2019/09/28 - https://haproxy.org/ Build options : TARGET = linux-glibc CPU = generic CC = gcc CFLAGS = -O2 -g -O2 -fdebug-prefix-map=/build/haproxy-TXZjzi/haproxy-2.0.7=. -fstack-protector-strong

Re: Backend connections leak

2019-10-01 Thread Aleksandar Lazic
Hi. Am 01.10.19 um 10:46 schrieb Marco Colli: > Hello! > > I use HAProxy to load balance HTTP(S) traffic to some web servers. Web servers > then connect to a database. I have noticed that when we restart the database > some errors occur (and that is normal during the restart).  > > However the