Re: Early connection close, incomplete transfers

2019-02-18 Thread Willy Tarreau
Hi Veiko, On Thu, Feb 14, 2019 at 02:31:42PM +, Veiko Kukk wrote: > > On 2019-02-01 13:30, Veiko Kukk wrote: > > On 2019-02-01 12:34, Aleksandar Lazic wrote: > > > > > Do you have any errors in lighthttpds log? > > > > Yes, it has error messages about not being enable to write to socket. >

Re: Early connection close, incomplete transfers

2019-02-18 Thread Willy Tarreau
On Fri, Feb 15, 2019 at 09:31:35AM +0100, Aleksandar Lazic wrote: > Am 15.02.2019 um 08:47 schrieb Veiko Kukk: > > On 2019-02-14 18:29, Aleksandar Lazic wrote: > >>> Replaced HAproxy with Nginx for testing and with Nginx, not a single > >>> connection > >>> was interrupted, did millions of

Re: Tune HAProxy in front of a large k8s cluster

2019-02-18 Thread Willy Tarreau
Hi Joao, On Mon, Feb 18, 2019 at 09:31:39PM -0300, Joao Morais wrote: > > > > Em 16 de fev de 2019, à(s) 03:16, Willy Tarreau escreveu: > > > > If you have some time to run some extra tests, it would be nice to rebuild > > haproxy with "ARCH_FLAGS=-pg", run it again, stop it using kill -USR1

Re: haproxy reverse proxy to https streaming backend

2019-02-18 Thread Willy Tarreau
Hello Thomas, On Sun, Feb 17, 2019 at 05:55:29PM +0100, Thomas Schmiedl wrote: > Hello Bruno, > > I think the problem is the parsing of the .m3u8-playlist in xupnpd2. The > first entry to the .ts-file is 4 hours behind the actual time. But I > have no c++ experience to change the code. For me

Re: Tune HAProxy in front of a large k8s cluster

2019-02-18 Thread Joao Morais
> Em 16 de fev de 2019, à(s) 03:16, Willy Tarreau escreveu: > > If you have some time to run some extra tests, it would be nice to rebuild > haproxy with "ARCH_FLAGS=-pg", run it again, stop it using kill -USR1 (not > ctrl-C), and run "gprof haproxy gmon.out". It will show the number of calls

Re: Tune HAProxy in front of a large k8s cluster

2019-02-18 Thread Joao Morais
> Em 16 de fev de 2019, à(s) 03:16, Willy Tarreau escreveu: > > If you have some time to run some extra tests, it would be nice to rebuild > haproxy with "ARCH_FLAGS=-pg", run it again, stop it using kill -USR1 (not > ctrl-C), and run "gprof haproxy gmon.out". It will show the number of calls

Re: Tune HAProxy in front of a large k8s cluster

2019-02-18 Thread Joao Morais
> Em 16 de fev de 2019, à(s) 03:16, Willy Tarreau escreveu: > > If you have some time to run some extra tests, it would be nice to rebuild > haproxy with "ARCH_FLAGS=-pg", run it again, stop it using kill -USR1 (not > ctrl-C), and run "gprof haproxy gmon.out". It will show the number of calls

Re: Tune HAProxy in front of a large k8s cluster

2019-02-18 Thread Joao Morais
> Em 16 de fev de 2019, à(s) 03:16, Willy Tarreau escreveu: > > If you have some time to run some extra tests, it would be nice to rebuild > haproxy with "ARCH_FLAGS=-pg", run it again, stop it using kill -USR1 (not > ctrl-C), and run "gprof haproxy gmon.out". It will show the number of calls

Re: Tune HAProxy in front of a large k8s cluster

2019-02-18 Thread Joao Morais
> Em 16 de fev de 2019, à(s) 03:16, Willy Tarreau escreveu: > > If you have some time to run some extra tests, it would be nice to rebuild > haproxy with "ARCH_FLAGS=-pg", run it again, stop it using kill -USR1 (not > ctrl-C), and run "gprof haproxy gmon.out". It will show the number of calls

Re: Tune HAProxy in front of a large k8s cluster

2019-02-18 Thread Joao Morais
> Em 16 de fev de 2019, à(s) 03:16, Willy Tarreau escreveu: > > If you have some time to run some extra tests, it would be nice to rebuild > haproxy with "ARCH_FLAGS=-pg", run it again, stop it using kill -USR1 (not > ctrl-C), and run "gprof haproxy gmon.out". It will show the number of calls

Re: Tune HAProxy in front of a large k8s cluster

2019-02-18 Thread Joao Morais
> Em 16 de fev de 2019, à(s) 03:16, Willy Tarreau escreveu: > > If you have some time to run some extra tests, it would be nice to rebuild > haproxy with "ARCH_FLAGS=-pg", run it again, stop it using kill -USR1 (not > ctrl-C), and run "gprof haproxy gmon.out". It will show the number of calls

Re: %[] in use-server directives

2019-02-18 Thread William Lallemand
Hi Joe, On Mon, Feb 18, 2019 at 05:48:09PM +, Joe K wrote: > https://github.com/haproxy/haproxy/blob/3d95717b58be0902078e0693e383bc32ea3a715a/src/proxy.c#L714 > seems like it's not possible, haproxy seems to be using `strcmp` without > expanding what's inside %[]. I wonder if it would be

Re: %[] in use-server directives

2019-02-18 Thread Joe K
https://github.com/haproxy/haproxy/blob/3d95717b58be0902078e0693e383bc32ea3a715a/src/proxy.c#L714 seems like it's not possible, haproxy seems to be using `strcmp` without expanding what's inside %[]. I wonder if it would be useful to anyone beside me? On Mon, Feb 18, 2019 at 5:25 PM Joe K wrote:

%[] in use-server directives

2019-02-18 Thread Joe K
Hello everyone! I wonder if there is a way to use %[...] syntax in use-server directives. backend be_template server-template websrv 1-100 localhost: check disabled use-server %[req.hdr(host),lower,map_dom(/usr/local/etc/haproxy/domain2server.map,websrv0)] if {