High load average under 1.8 with multiple draining processes

2018-01-11 Thread Samuel Reed
We've recently upgraded to HAProxy 1.8.3, which we run with `nbthread 4` (we used to run nbproc 4 with older releases). This has generally been good, especially for stick tables & stats. We terminate SSL and proxy a large number of long-running TCP connections (websockets). When configuration

Re: cannot bind socket - Need help with config file

2018-01-11 Thread Lukas Tribus
Hello, On 11 January 2018 at 16:36, Jonathan Matthews wrote: > On 11 January 2018 at 00:03, Imam Toufique wrote: >> So, I have everything in the listen section commented out: >> >> frontend main >>bind :2200 >>default_backend sftp >>

Re: [PATCH]: hathread / atomic code for clang too

2018-01-11 Thread Willy TARREAU
On Thu, Jan 11, 2018 at 04:39:54PM +, David CARLIER wrote: > :-) I forgot to mention can be backported to 1.8 as well. Cheers ! I already did, just forgot to push. Thanks, Willy

Re: [PATCH]: hathread / atomic code for clang too

2018-01-11 Thread David CARLIER
:-) I forgot to mention can be backported to 1.8 as well. Cheers ! On 11 January 2018 at 14:30, Willy TARREAU wrote: > On Thu, Jan 11, 2018 at 02:26:06PM +, David CARLIER wrote: > > Hi here a tiny fix proposal for the previous commit. > > Hi David. That's funny, I

Re: cannot bind socket - Need help with config file

2018-01-11 Thread Jonathan Matthews
On 11 January 2018 at 00:03, Imam Toufique wrote: > So, I have everything in the listen section commented out: > > frontend main >bind :2200 >default_backend sftp >timeout client 5d > > > #listen stats > # bind *:2200 > # mode tcp > # maxconn 2000 > #

Re: [PATCH]: hathread / atomic code for clang too

2018-01-11 Thread Willy TARREAU
On Thu, Jan 11, 2018 at 02:26:06PM +, David CARLIER wrote: > Hi here a tiny fix proposal for the previous commit. Hi David. That's funny, I wondered if Clang would advertise itself as gcc, possibly an old one, just to annoy us, and it seems it does :-) Thanks for the fix! Willy

[PATCH]: hathread / atomic code for clang too

2018-01-11 Thread David CARLIER
Hi here a tiny fix proposal for the previous commit. Hope it is good. Kind regards. From c1f299b45e56c77fc51b2e773272195ddaee46a7 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Thu, 11 Jan 2018 14:20:43 + Subject: [PATCH] BUILD/MINOR: ancient gcc versions atomic fix

Re: Print header lua script

2018-01-11 Thread Aleksandar Lazic
Hi. I have written a blog post how to use this lua scirpt in a dockerized haproxy. https://www.me2digital.com/blog/2018/01/show-headers-in-haproxy/ I appreciate any feedback ;-) Best regards Aleks -- Originalnachricht -- Von: "Aleksandar Lazic" An:

Re: How to parse custom PROXY protocol v2 header for custom routing in HAProxy configuration?

2018-01-11 Thread Aleksandar Lazic
Hi. -- Originalnachricht -- Von: "Adam Sherwood" An: haproxy@formilux.org Gesendet: 10.01.2018 23:40:25 Betreff: How to parse custom PROXY protocol v2 header for custom routing in HAProxy configuration? I have written this up as a StackOverflow question here:

Segfault on haproxy 1.7.10 with state file and slowstart

2018-01-11 Thread Raghu Udiyar
Hello, Haproxy 1.7.10 segfaults when the srv_admin_state is set to SRV_ADMF_CMAINT (0x04) for a backend server, and that backend has the `slowstart` option set. The following configuration reproduces it : - # haproxy.cfg (replace below) global maxconn 3