Re: Fwd: Haproxy-1.5.12 High memory usage problem

2017-04-21 Thread Lukas Tribus
Hello lizj3624, we are gonna need the configuration, at least redacted. Especially important are timeouts and maxconn values. Also provide the output of haproxy -vv. Am 21.04.2017 um 08:56 schrieb lizj3624 lizj3624: Why run a period of time, while dealing with a large number of HTTP re

Average response time to detect degraded performance

2017-04-21 Thread pratap k
We can use avg_queue and be_session_rate to estimate if we are getting more traffic than what the backends can handle, to take corrective action such using a secondary cluster or using some lightweight URL endpoints. But, the problem is, these parameters can't be generalized and depends on the

Re: Haproxy 1.5.4 unable to accept new TCP request, backlog full, tens of thousands close_wait connection

2017-04-21 Thread jaseywang
Really appreciate your time debugging this issue, it's really critical for our production env, if you need more details I'll try my best to provide them, thanks a lot! On Fri, Apr 21, 2017 at 10:48 PM, Willy Tarreau wrote: > On Fri, Apr 21, 2017 at 10:45:38PM +0800, jaseywang wrote: > > Hi, @Wi

Re: Haproxy 1.5.4 unable to accept new TCP request, backlog full, tens of thousands close_wait connection

2017-04-21 Thread Willy Tarreau
On Fri, Apr 21, 2017 at 10:45:38PM +0800, jaseywang wrote: > Hi, @Willy, do you receive my updates, seems the mail message size is too > large? I got them but still no time to take a look, but yes I have them so no need to retransmit. Willy

Re: Haproxy 1.5.4 unable to accept new TCP request, backlog full, tens of thousands close_wait connection

2017-04-21 Thread jaseywang
Hi, @Willy, do you receive my updates, seems the mail message size is too large? On Fri, Apr 21, 2017 at 3:18 PM, Willy Tarreau wrote: > On Fri, Apr 21, 2017 at 02:37:52PM +0800, jaseywang wrote: > > > > > > Could you please confirm that most of the CLOSE_WAIT are on the front > side > > > and t

Re: server templates

2017-04-21 Thread Frederic Lecaille
Perhaps you should start stopping polluting Jarno's mailbox ;) On 04/21/2017 04:03 PM, Baptiste wrote: On Fri, Apr 21, 2017 at 3:43 PM, Willy Tarreau mailto:w...@1wt.eu>> wrote: Hey Fred, that's now merged. I've just build my first haproxy config with 1 million servers. It ta

Re: server templates

2017-04-21 Thread Willy Tarreau
On Fri, Apr 21, 2017 at 04:03:02PM +0200, Baptiste wrote: > Looking forward to rebase my DNS patches and mix this feature with the DNS > cache :) > (I don't want your laptop to send 1.000.000 DNS requests to your dns > recurosr every few seconds) You just gave me a good idea of a funny game for th

Re: server templates

2017-04-21 Thread Baptiste
On Fri, Apr 21, 2017 at 3:43 PM, Willy Tarreau wrote: > Hey Fred, > > that's now merged. I've just build my first haproxy config with 1 million > servers. It takes 8 seconds to start on my laptop, consumes 2.7 GB of RAM > and the stats page is 820 MB long :-) > > It's awesome! > > Thanks, > Willy

Re: server templates

2017-04-21 Thread Willy Tarreau
Hey Fred, that's now merged. I've just build my first haproxy config with 1 million servers. It takes 8 seconds to start on my laptop, consumes 2.7 GB of RAM and the stats page is 820 MB long :-) It's awesome! Thanks, Willy

Re: Certificate order

2017-04-21 Thread Sander Hoentjen
On 04/21/2017 07:27 AM, Willy Tarreau wrote: > On Thu, Apr 20, 2017 at 11:33:17PM +0200, Lukas Tribus wrote: >> Hello, >> >> >> Am 20.04.2017 um 15:05 schrieb Sander Hoentjen: >>> A new patch, that puts the order like this: >>> config: >>> crt A crt B >>> >>> [...] >>> If A contains wildcard, and B

Re: server templates

2017-04-21 Thread Frederic Lecaille
On 04/21/2017 09:45 AM, Frederic Lecaille wrote: On 04/21/2017 09:15 AM, Jarno Huuskonen wrote: Hi, On Thu, Apr 20, Frederic Lecaille wrote: +server-template [:] [params*] + Set a template for this backend to initialize servers with shared parameters. + This server names are built from an

Re: server templates

2017-04-21 Thread Frederic Lecaille
On 04/21/2017 09:15 AM, Jarno Huuskonen wrote: Hi, On Thu, Apr 20, Frederic Lecaille wrote: +server-template [:] [params*] + Set a template for this backend to initialize servers with shared parameters. + This server names are built from and parameters. + May be used in sections : defa

Re: server templates

2017-04-21 Thread Frederic Lecaille
On 04/21/2017 09:15 AM, Jarno Huuskonen wrote: Hi, On Thu, Apr 20, Frederic Lecaille wrote: +server-template [:] [params*] + Set a template for this backend to initialize servers with shared parameters. + This server names are built from and parameters. + May be used in sections : defa

Re: Haproxy 1.5.4 unable to accept new TCP request, backlog full, tens of thousands close_wait connection

2017-04-21 Thread Willy Tarreau
On Fri, Apr 21, 2017 at 02:37:52PM +0800, jaseywang wrote: > > > > Could you please confirm that most of the CLOSE_WAIT are on the front side > > and the ESTABLISHED on the backend side ? If that's the case, can you also > > please verify if there are pending data in the send queue for CLOSE_WAIT >

Re: server templates

2017-04-21 Thread Jarno Huuskonen
Hi, On Thu, Apr 20, Frederic Lecaille wrote: > +server-template [:] [params*] > + Set a template for this backend to initialize servers with shared > parameters. > + This server names are built from and parameters. > + May be used in sections : defaults | frontend | listen | backend > +