Re: Wrong http_err_rate on standby peer

2016-07-20 Thread Frederic Lecaille
Hi Kay, On 07/20/2016 11:27 AM, Willy Tarreau wrote: Hi Kay, On Wed, Jul 20, 2016 at 11:17:57AM +0200, Kay Fuchs wrote: Hi! 2016-07-19 11:26 GMT+02:00 Kay Fuchs : i'm using a stick-table with HAProxy 1.6.7 on an active/standby configuration like this: stick-table type

BUG/MINOR: peers: Fix a peer stick-tables synchronization issue.

2016-10-12 Thread Frederic Lecaille
Everything is in the attached patch file. Please note that this patch has already been reviewed by Emeric Brun who is the peers protocol maintener. Regards. Fred. >From d1e7b23187db580fe2445e80ff1abefecfcf2241 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?=

Re: All "server" settings supported on "default-server" lines

2017-03-23 Thread Frederic Lecaille
On 03/21/2017 07:54 PM, Frederic Lecaille wrote: Hello HAProxy ML, I am starting this new thread to publish a serie of patches to make all "server" settings be supported on "default-server" lines. This is a preliminary work for "server templates" feature. New bo

Re: All "server" settings supported on "default-server" lines

2017-03-23 Thread Frederic Lecaille
On 03/23/2017 12:03 PM, Frederic Lecaille wrote: On 03/21/2017 07:54 PM, Frederic Lecaille wrote: [snipped] At this time, as "id" remains as unique setting supported by "server", the patch attached to this mail now produces these error messages: [ALERT] 081/1114

Re: All "server" settings supported on "default-server" lines

2017-03-21 Thread Frederic Lecaille
>From 53fab6a57658648320de84b4c0aa3a0d94a104d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Thu, 9 Mar 2017 14:01:02 +0100 Subject: [PATCH 01/31] MINOR: server: irrelevant error message with 'default-server' config file keyword.

Re: All "server" settings supported on "default-server" lines

2017-03-21 Thread Frederic Lecaille
>From 39d6ba95c1c1cf2b33d916c15c40f8d6f223e60b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Mon, 13 Mar 2017 13:41:16 +0100 Subject: [PATCH 14/31] MINOR: server: Make 'default-server' support 'verify' keyword. X-Bogosity: Ham,

Re: All "server" settings supported on "default-server" lines

2017-03-21 Thread Frederic Lecaille
>From 984c811ffcf50df6e400ff7e4f774d96e401924a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Mon, 13 Mar 2017 13:10:59 +0100 Subject: [PATCH 13/31] CLEANUP: server: code alignement. X-Bogosity: Ham, tests=bogofilter,

Re: All "server" settings supported on "default-server" lines

2017-03-21 Thread Frederic Lecaille
>From 70b9d6c0246b1c3e28ded68f1617497aed1dd2d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Mon, 13 Mar 2017 12:08:01 +0100 Subject: [PATCH 12/31] MINOR: server: Make 'default-server' support 'send-proxy-v2-ssl*' keywords.

Re: All "server" settings supported on "default-server" lines

2017-03-21 Thread Frederic Lecaille
>From 83766d4697f3af4626506a6af8b186028b565fe8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Fri, 10 Mar 2017 15:50:49 +0100 Subject: [PATCH 05/31] MINOR: server: Make 'default-server' support 'non-stick' keyword. X-Bogosity: Ham,

Re: All "server" settings supported on "default-server" lines

2017-03-21 Thread Frederic Lecaille
>From c39ce3eba31d37c2e790426c8127d131d6ec9072 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Fri, 10 Mar 2017 15:36:14 +0100 Subject: [PATCH 04/31] CLEANUP: server: code alignement. X-Bogosity: Ham, tests=bogofilter,

Re: All "server" settings supported on "default-server" lines

2017-03-21 Thread Frederic Lecaille
>From bed0db831d2cd504f3d66df21fd53c92dc4be52a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Mon, 13 Mar 2017 11:02:01 +0100 Subject: [PATCH 09/31] CLEANUP: server: code alignement. X-Bogosity: Ham, tests=bogofilter,

Re: All "server" settings supported on "default-server" lines

2017-03-21 Thread Frederic Lecaille
>From e6118524a2aaee921971a6be9020b75775507b52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Mon, 13 Mar 2017 11:54:17 +0100 Subject: [PATCH 11/31] MINOR: server: Make 'default-server' support 'ssl' keyword. X-Bogosity: Ham,

Re: All "server" settings supported on "default-server" lines

2017-03-21 Thread Frederic Lecaille
>From 1e0bb327696daf9f2b39beff1f981767fd047cc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Mon, 13 Mar 2017 11:32:20 +0100 Subject: [PATCH 10/31] MINOR: server: Make 'default-server' support 'no-ssl*' and 'no-tlsv*' keywo rds.

Re: All "server" settings supported on "default-server" lines

2017-03-21 Thread Frederic Lecaille
>From 94220ddfed21228e15f09dd73a5357f0245c13ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Mon, 13 Mar 2017 10:54:52 +0100 Subject: [PATCH 08/31] MINOR: server: Make 'default-server' support 'force-sslv3' and 'force-tlsv1[0-2]'

Re: All "server" settings supported on "default-server" lines

2017-03-21 Thread Frederic Lecaille
>From 324ec06ee477cce5f9b2ba7b031e87d62c333826 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Wed, 15 Mar 2017 16:20:02 +0100 Subject: [PATCH 23/31] MINOR: server: Make 'default-server' support 'ciphers' keyword. X-Bogosity: Ham,

Re: All "server" settings supported on "default-server" lines

2017-03-21 Thread Frederic Lecaille
>From e47f6ab5d8a8fb61888b165adf6f7e12f07c10b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Thu, 16 Mar 2017 17:17:36 +0100 Subject: [PATCH 25/31] MINOR: server: Make 'default-server' support 'namespace' keyword. X-Bogosity: Ham,

All "server" settings supported on "default-server" lines

2017-03-21 Thread Frederic Lecaille
Hello HAProxy ML, I am starting this new thread to publish a serie of patches to make all "server" settings be supported on "default-server" lines. This is a preliminary work for "server templates" feature. New boolean settings have been added to disable others. Most of them have "no-" as

Re: All "server" settings supported on "default-server" lines

2017-03-21 Thread Frederic Lecaille
>From bd77e21eab9aa777962ae94ce7dbff2224b1b295 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Fri, 10 Mar 2017 16:40:00 +0100 Subject: [PATCH 06/31] MINOR: server: Make 'default-server' support 'send-proxy' and 'send-proxy-v2

Re: All "server" settings supported on "default-server" lines

2017-03-21 Thread Frederic Lecaille
>From 17f461d5878f902e34a113d462218a661c747d4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Mon, 13 Mar 2017 10:38:04 +0100 Subject: [PATCH 07/31] MINOR: server: Make 'default-server' support 'check-ssl' keyword. X-Bogosity: Ham,

Re: All "server" settings supported on "default-server" lines

2017-03-21 Thread Frederic Lecaille
>From 78c8279eb296b4a70eecb7eff599e2851749b3c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Mon, 20 Mar 2017 14:54:41 +0100 Subject: [PATCH 27/31] MINOR: server: Make 'default-server' support 'sni' keyword. X-Bogosity: Ham,

Re: All "server" settings supported on "default-server" lines

2017-03-21 Thread Frederic Lecaille
>From 57d54d2e1f1b200c2c44cbe135c2c74900b83d36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Fri, 17 Mar 2017 15:33:50 +0100 Subject: [PATCH 26/31] MINOR: server: Make 'default-server' support 'source' keyword. X-Bogosity: Ham,

Re: All "server" settings supported on "default-server" lines

2017-03-21 Thread Frederic Lecaille
>From 57c710d9866bd06837b6aeb7ff5b45e7891b5f0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Mon, 20 Mar 2017 16:30:18 +0100 Subject: [PATCH 28/31] MINOR: server: Make 'default-server' support 'addr' keyword. X-Bogosity: Ham,

Re: All "server" settings supported on "default-server" lines

2017-03-21 Thread Frederic Lecaille
>From a7f6425b24e7855259b6b858e8a322fde0d2bd39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Fri, 10 Mar 2017 14:04:31 +0100 Subject: [PATCH 03/31] MINOR: server: Make 'default-server' support 'check-send-proxy' keyword. X-Bogosity:

Re: All "server" settings supported on "default-server" lines

2017-03-21 Thread Frederic Lecaille
>From ff5d557c972a9953073773103e4fccad9bc32638 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Fri, 10 Mar 2017 11:51:05 +0100 Subject: [PATCH 02/31] MINOR: server: Make 'default-server' support 'backup' keyword. X-Bogosity: Ham,

Re: All "server" settings supported on "default-server" lines

2017-03-21 Thread Frederic Lecaille
>From 0f1fc0c3325bd15d97fc9005a72b2094c170c609 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Wed, 15 Mar 2017 08:55:39 +0100 Subject: [PATCH 21/31] MINOR: server: Make 'default-server' support 'observe' keyword. X-Bogosity: Ham,

Re: All "server" settings supported on "default-server" lines

2017-03-21 Thread Frederic Lecaille
>From 617a66ec167fd7b780028a7a58b44546dba3e810 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Tue, 14 Mar 2017 16:42:49 +0100 Subject: [PATCH 20/31] MINOR: server: Make 'default-server' support 'redir' keyword. X-Bogosity: Ham,

Re: All "server" settings supported on "default-server" lines

2017-03-21 Thread Frederic Lecaille
>From 6ab43989ab00ceef2b681bac8ac919f3fd25311f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Wed, 15 Mar 2017 09:13:33 +0100 Subject: [PATCH 22/31] MINOR: server: Make 'default-server' support 'cookie' keyword. X-Bogosity: Ham,

Re: All "server" settings supported on "default-server" lines

2017-03-21 Thread Frederic Lecaille
>From 93f6899637050a8c00549d8b127c19d5e7aad81a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Wed, 15 Mar 2017 16:36:09 +0100 Subject: [PATCH 24/31] MINOR: server: Make 'default-server' support 'tcp-ut' keyword. X-Bogosity: Ham,

Re: All "server" settings supported on "default-server" lines

2017-03-21 Thread Frederic Lecaille
>From ffaf903ad7d5c7b9920e1e32ddc4f510365e8e5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Mon, 13 Mar 2017 15:52:01 +0100 Subject: [PATCH 15/31] MINOR: server: Make 'default-server' support 'verifyhost' setting. X-Bogosity: Ham,

Re: All "server" settings supported on "default-server" lines

2017-03-21 Thread Frederic Lecaille
>From 6b94e45e66da74f50c42b11cd3c087f0be991513 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Tue, 14 Mar 2017 15:21:31 +0100 Subject: [PATCH 18/31] MINOR: server: Make 'default-server' support 'track' setting. X-Bogosity: Ham,

Re: All "server" settings supported on "default-server" lines

2017-03-21 Thread Frederic Lecaille
>From 174406c72eae257d07e2239a9aea6284a644017a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Tue, 14 Mar 2017 11:20:13 +0100 Subject: [PATCH 16/31] MINOR: server: Make 'default-server' support 'check' keyword. X-Bogosity: Ham,

Re: All "server" settings supported on "default-server" lines

2017-03-21 Thread Frederic Lecaille
>From 72440786d18c7e6141bf655287ce3d0c90aafc08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Tue, 14 Mar 2017 14:32:17 +0100 Subject: [PATCH 17/31] BUG/MINOR: cfgparse: loop in tracked servers lists not detected by

Re: All "server" settings supported on "default-server" lines

2017-03-21 Thread Frederic Lecaille
>From 9da661d95b42cac3c65be783b4c8c71e900366e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Tue, 14 Mar 2017 15:52:04 +0100 Subject: [PATCH 19/31] MINOR: server: Make 'default-server' support 'ca-file', 'crl-file' and 'crt'

Re: All "server" settings supported on "default-server" lines

2017-03-21 Thread Frederic Lecaille
>From b2b7b543da9c46b23c27672ed567d77df254848f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Tue, 21 Mar 2017 18:52:12 +0100 Subject: [PATCH 31/31] DOC: server: Add docs for "server" and "default-server" new "no-*" and other

Re: All "server" settings supported on "default-server" lines

2017-03-21 Thread Frederic Lecaille
>From d42d42d4d105320248277fb8fba040da02302c24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Tue, 21 Mar 2017 16:39:15 +0100 Subject: [PATCH 30/31] MINOR: server: Add 'no-agent-check' server keyword. X-Bogosity: Ham, tests=bogofilter,

Re: All "server" settings supported on "default-server" lines

2017-03-21 Thread Frederic Lecaille
>From d749c16ea9a94354998b853233b7558007bff4fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Tue, 21 Mar 2017 11:53:54 +0100 Subject: [PATCH 29/31] MINOR: server: Make 'default-server' support 'disabled' keyword. X-Bogosity: Ham,

Re: All "server" settings supported on "default-server" lines

2017-03-22 Thread Frederic Lecaille
On 03/21/2017 11:14 PM, Willy Tarreau wrote: Hi Fred! Hello Willy, On Tue, Mar 21, 2017 at 07:54:30PM +0100, Frederic Lecaille wrote: Hello HAProxy ML, I am starting this new thread to publish a serie of patches to make all "server" settings be supported on "defaul

Re: All "server" settings supported on "default-server" lines

2017-03-22 Thread Frederic Lecaille
On 03/22/2017 05:30 PM, Emmanuel Hocdet wrote: Hi Fred, Hi Emmanuel, Le 21 mars 2017 à 23:14, Willy Tarreau <w...@1wt.eu> a écrit : On Tue, Mar 21, 2017 at 07:54:30PM +0100, Frederic Lecaille wrote: Hello HAProxy ML, I am starting this new thread to publish a serie of patches to ma

Re: BUG FIX: All "server" settings supported on "default-server" lines

2017-03-29 Thread Frederic Lecaille
On 03/29/2017 02:35 PM, Frederic Lecaille wrote: Hello Willy, As I began to work on server template feature, I found a bug in patch #0019 (due to a copy and paste again). Here is a new patch. Sorry for this one. Fred Here is a patch which fixes this bug, to be merged with current haproxy

Re: BUG FIX: All "server" settings supported on "default-server" lines

2017-03-29 Thread Frederic Lecaille
Hello Willy, As I began to work on server template feature, I found a bug in patch #0019 (due to a copy and paste again). Here is a new patch. Sorry for this one. Fred >From 9da661d95b42cac3c65be783b4c8c71e900366e6 Mon Sep 17 00:00:00 2001 From:

Re: BUG FIX : All "server" settings supported on "default-server" lines

2017-03-21 Thread Frederic Lecaille
This is an updated 0016 patch which fixes a typo. >From 8ebde4a9d6931ed1fc2c9b6b8a93e3a69fd5d53a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Tue, 14 Mar 2017 11:20:13 +0100 Subject: [PATCH 16/31] MINOR: server: Make

server templates

2017-04-07 Thread Frederic Lecaille
Hello Haproxy ML, Here are patches attached to this mail to add "server templates" feature to haproxy. The two first patches consist in moving code to be reused both during 'server' lines parsing and during and server templates initializations. A new CLI command has also been added (see

Re: server templates

2017-04-10 Thread Frederic Lecaille
On 04/08/2017 01:27 AM, Aleksandar Lazic wrote: Hi Frederic Hi Aleksandar, Am 07-04-2017 15:00, schrieb Frederic Lecaille: Hello Haproxy ML, Here are patches attached to this mail to add "server templates" feature to haproxy. Please can you explain a little bit more the use ca

Re: IPv6 resolvers seems not works

2017-04-11 Thread Frederic Lecaille
On 04/10/2017 04:17 PM, Frederic Lecaille wrote: On 04/10/2017 01:42 PM, Павел Знаменский wrote: Hello, Hello, I'm trying to add IPv6 address as a nameserver to able resolve addresses in IPv6-only environment: resolvers google_dns_10m nameserver google_dns1 2001:4860:4860:::53

Re: IPv6 resolvers seems not works

2017-04-10 Thread Frederic Lecaille
On 04/10/2017 01:42 PM, Павел Знаменский wrote: Hello, Hello, I'm trying to add IPv6 address as a nameserver to able resolve addresses in IPv6-only environment: resolvers google_dns_10m nameserver google_dns1 2001:4860:4860:::53 nameserver google_dns2 2001:4860:4860::8844:53

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

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

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

Re: Propagating agent-check weight change to tracking servers

2017-04-13 Thread Frederic Lecaille
Hello Michal, On 04/11/2017 04:41 PM, Michał wrote: Hello Willy, So I'm fighting with dba97077 made by Frédéric Lécaille - it broke many things. This patch broke haproxy non-transparent builds. Thanks to Steven Davidovitz, Pavlos Parissis and David Carlier for having promptly helped in

BUG/MINOR : wrong error message during 'default-server' lines

2017-04-14 Thread Frederic Lecaille
Hello, This patch fixes a minor bug, a wrong error message during 'usesrc' keyword parsing on 'default-server' lines. 'usesrc' was displayed as unknown if not used after 'source' keyword. Regards, Fred >From a9d8045bbc3858607aa0f5d8ab5e1c4c353cce14 Mon Sep 17 00:00:00 2001 From:

Re: server templates

2017-04-20 Thread Frederic Lecaille
Hello HAProxy ML, On 04/10/2017 05:00 PM, Baptiste wrote: On Mon, Apr 10, 2017 at 2:30 PM, Willy Tarreau <w...@1wt.eu <mailto:w...@1wt.eu>> wrote: On Mon, Apr 10, 2017 at 10:02:29AM +0200, Frederic Lecaille wrote: > With server templates, haproxy could preallocate '

Re: Propagating agent-check weight change to tracking servers

2017-04-16 Thread Frederic Lecaille
Hello Willy, On 04/15/2017 04:43 PM, Willy Tarreau wrote: On Sat, Apr 15, 2017 at 02:24:41PM +0200, Michal wrote: Hi, Maybe my email wasn't nice enough, but breaking compilation You were the first one to experience the build breakage, it worked for most of us, but you didn't even give the

Re: BUG/MINOR : wrong error message during 'default-server' lines

2017-04-16 Thread Frederic Lecaille
On 04/15/2017 12:13 AM, Aleksandar Lazic wrote: Hi. Hello Aleksandar, Am 14-04-2017 15:59, schrieb Frederic Lecaille: Hello, This patch fixes a minor bug, a wrong error message during 'usesrc' keyword parsing on 'default-server' lines. 'usesrc' was displayed as unknown if not used after

Re: BUG/MINOR : wrong error message during 'default-server' lines

2017-04-16 Thread Frederic Lecaille
On 04/16/2017 05:40 PM, Frederic Lecaille wrote: On 04/15/2017 12:13 AM, Aleksandar Lazic wrote: Hi. Hello Aleksandar, Am 14-04-2017 15:59, schrieb Frederic Lecaille: Hello, This patch fixes a minor bug, a wrong error message during 'usesrc' keyword parsing on 'default-server' lines

peers synchronization issue

2017-07-13 Thread Frederic Lecaille
Hello, I have noticed that when several stick-table backends are attached to several peers sections, only the stick-tables attached to the last peer section could be synchronized ;) . This patch fixes this issue. Regards, Fred. >From 53908a325155836ddb8b0c8a1b8c56e1fa13139d Mon Sep 17

peers - add additional information to stick-table definition message

2017-07-06 Thread Frederic Lecaille
Hello, Here is a simple patch to add remaining information to peer stick-table definition message useful for external applications to discover haproxy peer stick-table configurations. Regards, Fred. >From 733ecc558cc47b9c4d94ef2b316c6e7b3bf067a3 Mon Sep 17 00:00:00 2001 From:

Re: server FQDN changes from stats socket + server-state file

2017-04-27 Thread Frederic Lecaille
On 04/27/2017 12:43 PM, Baptiste wrote: On Thu, Apr 27, 2017 at 11:22 AM, Frederic Lecaille <flecai...@haproxy.com <mailto:flecai...@haproxy.com>> wrote: On 04/27/2017 10:47 AM, Frederic Lecaille wrote: Hello HAProxy ML, Please find attached to this mail a pa

Re: server FQDN changes from stats socket + server-state file

2017-04-27 Thread Frederic Lecaille
On 04/27/2017 03:20 PM, Frederic Lecaille wrote: On 04/27/2017 02:56 PM, Baptiste wrote: On Thu, Apr 27, 2017 at 2:44 PM, Frederic Lecaille <flecai...@haproxy.com <mailto:flecai...@haproxy.com>> wrote: On 04/27/2017 12:43 PM, Baptiste wrote: On Thu, Apr 27, 2017

Re: server FQDN changes from stats socket + server-state file

2017-04-27 Thread Frederic Lecaille
On 04/27/2017 10:47 AM, Frederic Lecaille wrote: Hello HAProxy ML, Please find attached to this mail a patch proposal which allows server FQDNs changes from stats socket. These FQDNs are also added to server-state file. Regards, Fred. A new version of this patch which fixes a memleak

server FQDN changes from stats socket + server-state file

2017-04-27 Thread Frederic Lecaille
Hello HAProxy ML, Please find attached to this mail a patch proposal which allows server FQDNs changes from stats socket. These FQDNs are also added to server-state file. Regards, Fred. >From f9c1001175d406a15414e893f11d6120cf22 Mon Sep 17 00:00:00 2001 From:

Re: server FQDN changes from stats socket + server-state file

2017-04-27 Thread Frederic Lecaille
On 04/27/2017 02:56 PM, Baptiste wrote: On Thu, Apr 27, 2017 at 2:44 PM, Frederic Lecaille <flecai...@haproxy.com <mailto:flecai...@haproxy.com>> wrote: On 04/27/2017 12:43 PM, Baptiste wrote: On Thu, Apr 27, 2017 at 11:22 AM, Frederic Lecaille <flecai

server ports - server state file

2017-08-01 Thread Frederic Lecaille
Hello Haproxy ML, Here is a simple patch to add server ports to server state file. Regards, Fred. >From eff80e502338618ea991ecb0fac11fd25dec19b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Tue, 1 Aug 2017 08:47:19 +0200 Subject:

Re: Bug: DNS changes in 1.7.3+ break UNIX socket stats in daemon mode with resolvers on FreeBSD

2017-05-12 Thread Frederic Lecaille
On 05/12/2017 09:37 AM, Willy Tarreau wrote: On Fri, May 12, 2017 at 08:58:56AM +0200, Lukas Tribus wrote: Hi, Am 11.05.2017 um 21:13 schrieb Jim Pingle: On 05/11/2017 01:58 PM, Frederic Lecaille wrote: I have reproduced (at home) the stats socket issue within a FreeBSD 9.3 VM. Replacing

Re: Bug: DNS changes in 1.7.3+ break UNIX socket stats in daemon mode with resolvers on FreeBSD

2017-05-12 Thread Frederic Lecaille
On 05/12/2017 09:52 AM, Willy Tarreau wrote: On Fri, May 12, 2017 at 09:48:56AM +0200, Frederic Lecaille wrote: On 05/12/2017 09:37 AM, Willy Tarreau wrote: On Fri, May 12, 2017 at 08:58:56AM +0200, Lukas Tribus wrote: Hi, Am 11.05.2017 um 21:13 schrieb Jim Pingle: On 05/11/2017 01:58 PM

Re: Bug: DNS changes in 1.7.3+ break UNIX socket stats in daemon mode with resolvers on FreeBSD

2017-05-11 Thread Frederic Lecaille
Hi, On 05/11/2017 09:51 AM, Baptiste wrote: Hi Lukas, Thanks a lot! So, after the fork(), HAProxy closes the UDP socket (4) and open a new one (1) as expected, that said, the scheduler still points to the old one. Obviously, this behavior doesn't happen on Linux. socket #4 has been closed()

Re: HAProxy won't shut down

2017-05-29 Thread Frederic Lecaille
Hi Patrick, First thank you for this nice and helpful report. Would it be possible to have an output of this command the next time you reproduce such an issue please? echo "show sess" | socat stdio I have only one question (see below). On 05/24/2017 10:40 AM, Willy Tarreau wrote: Hi

Re: HAProxy won't shut down

2017-05-29 Thread Frederic Lecaille
On 05/29/2017 06:12 PM, Patrick Hemmer wrote: On 2017/5/29 08:22, Frederic Lecaille wrote: Hi Patrick, First thank you for this nice and helpful report. Would it be possible to have an output of this command the next time you reproduce such an issue please? echo "show sess&quo

Re: BUG: Seg fault when reloading from saved state after config change

2017-06-15 Thread Frederic Lecaille
On 06/14/2017 11:02 PM, Shelley Shostak wrote: Aha. The problem is that the new haproxy.cfg file has hosts that are not in the stat file. If there is no state file, the haproxy.cfg file is perfectly valid. I've attached a self-contained config file and state file that will reproduce the seg

Re: HAProxy won't shut down

2017-06-15 Thread Frederic Lecaille
On 06/14/2017 06:47 PM, Aleksandar Lazic wrote: Hi Frederic & Willy. Hi Aleksandar, As this link is mentioned in the patch https://engineeringblog.yelp.com/2015/04/true-zero-downtime-haproxy-reloads.html yelps new solution for this topic looks interesting.

Re: HAProxy won't shut down

2017-06-13 Thread Frederic Lecaille
Hello Patrick, Sorry for this late reply. I preferred focusing on how to reproduce your peer CLOSE_WAIT issue. See my answers below. On 05/30/2017 05:29 PM, Patrick Hemmer wrote: On 2017/5/29 16:04, Frederic Lecaille wrote: On 05/29/2017 06:12 PM, Patrick Hemmer wrote: On 2017/5/29 08

Re: HAProxy won't shut down

2017-06-14 Thread Frederic Lecaille
On 06/14/2017 01:43 PM, Willy Tarreau wrote: Hi Fred, On Tue, Jun 13, 2017 at 09:16:33PM +0200, Frederic Lecaille wrote: (...) So I have compiled haproxy with the little src/plug_qdisc.c source file (attached to this mail) highly inspired from libnl-utils package sources and managed to make

Re: HAProxy won't shut down

2017-06-14 Thread Frederic Lecaille
On 06/13/2017 09:16 PM, Frederic Lecaille wrote: Hello Patrick, [snipped] I hope the pach attached to this mail will definitively fix such peer CLOSE_WAIT issues. A better patch which fixes the comments and commit message. >From 5535bcd5298bbbce11385eee18ef740848d31903 Mon Sep 17 00

Re: Possible regression in 1.6.12

2017-06-16 Thread Frederic Lecaille
On 06/16/2017 03:20 PM, Willy Tarreau wrote: On Fri, Jun 16, 2017 at 03:10:56PM +0200, Willy Tarreau wrote: Hi Veiko, On Fri, Jun 16, 2017 at 01:41:14PM +0300, Veiko Kukk wrote: So I have more info on this now. Veiko, first, I'm assuming that your config was using "resolvers dns_resolvers" on

Re: HAProxy won't shut down

2017-06-14 Thread Frederic Lecaille
On 06/14/2017 08:51 AM, Frederic Lecaille wrote: On 06/13/2017 09:16 PM, Frederic Lecaille wrote: Hello Patrick, [snipped] I hope the pach attached to this mail will definitively fix such peer CLOSE_WAIT issues. A better patch which fixes the comments and commit message. Sorry again

Re: server FQDN changes from stats socket + server-state file

2017-05-02 Thread Frederic Lecaille
On 05/02/2017 03:45 PM, Baptiste wrote: Here is a new patch version which takes into an account Baptiste remarks. Thank you again Baptiste. Hi Fred, I gave a try to your code today and found a segfault at the next DNS request following the fqdn change. I attached a patch to this

Re: server FQDN changes from stats socket + server-state file

2017-05-02 Thread Frederic Lecaille
On 05/02/2017 03:45 PM, Baptiste wrote: Here is a new patch version which takes into an account Baptiste remarks. Thank you again Baptiste. Hi Fred, Hello Baptiste, I gave a try to your code today and found a segfault at the next DNS request following the fqdn change. I

Re: Will HAProxy community supports mailers section?

2017-08-24 Thread Frederic Lecaille
On 08/24/2017 03:35 PM, Rajesh Kolli wrote: Hi Daniel, I have changed my config file according to you, even though i am getting the same error. - haproxy.service - HAProxy Load Balancer Loaded: loaded (/usr/lib/systemd/system/haproxy.service; enabled) Active: inactive

Re: [PATCH]: CLEANUP

2017-08-22 Thread Frederic Lecaille
On 07/28/2017 05:23 PM, David CARLIER wrote: Good points :-) sorry for the noise. On 28 July 2017 at 14:07, Willy Tarreau > wrote: Hi David, On Fri, Jul 28, 2017 at 01:58:29PM +0100, David CARLIER wrote: > Hi all, > > Nothing serious, just

Re: Issue with src_http_req_rate count

2017-08-30 Thread Frederic Lecaille
Hello Sikander, Sorry for this late reply. On 08/16/2017 01:24 PM, Sikander Dhaliwal wrote: Dear Support, We are using HA-Proxy version 1.8-dev1-7b67726 on four servers. To handle the DDOS attacks, we have configured sticky-table rules. The issue is, the same configuration is working on 3

Re: [BUG] haproxy 1.8-last/master-worker/peers

2017-11-28 Thread Frederic Lecaille
Hi Manu, On 11/28/2017 12:22 PM, Emmanuel Hocdet wrote: Hi Willy, Le 28 nov. 2017 à 07:33, Willy Tarreau > a écrit : Hi Manu, On Mon, Nov 27, 2017 at 06:21:50PM +0100, Emmanuel Hocdet wrote: Hi Willy, Le 18 nov. 2017 à 12:28, Willy Tarreau

Re: [BUG] haproxy 1.8-last/master-worker/peers

2017-11-28 Thread Frederic Lecaille
On 11/28/2017 02:13 PM, Willy Tarreau wrote: On Tue, Nov 28, 2017 at 01:43:52PM +0100, Frederic Lecaille wrote: On 11/28/2017 01:29 PM, Frederic Lecaille wrote: There is a "/* fall through */" between PEER_SESS_ST_CONNECT and PEER_SESS_ST_GETSTATUS cases in peer I/O handler code, so w

Re: [BUG] haproxy 1.8-last/master-worker/peers

2017-11-28 Thread Frederic Lecaille
On 11/28/2017 01:29 PM, Frederic Lecaille wrote: Hi Manu, On 11/28/2017 12:22 PM, Emmanuel Hocdet wrote: Hi Willy, Le 28 nov. 2017 à 07:33, Willy Tarreau <w...@1wt.eu <mailto:w...@1wt.eu>> a écrit : Hi Manu, On Mon, Nov 27, 2017 at 06:21:50PM +0100, Emmanuel Hocdet wrote: H

Re: [RFC] Wireshark dissector for SPOP

2017-11-28 Thread Frederic Lecaille
On 11/20/2017 10:16 PM, my.card@web.de wrote: Hi Fred, Hi Danny, thanks for looking into this, I've fixed this issue (and introduced some new :-)) The attached dissector code parses all SPOP frames sent from contrib/spoa_sample and haproxy and handles some fragmentation scenarios. Kind

Re: Aw: Re: [RFC] Wireshark dissector for SPOP

2017-11-19 Thread Frederic Lecaille
,   Danny *Gesendet:* Donnerstag, 09. November 2017 um 16:07 Uhr *Von:* "Frederic Lecaille" <flecai...@haproxy.com> *An:* my.card@web.de, haproxy@formilux.org *Betreff:* Re: [RFC] Wireshark dissector for SPOP On 11/05/2017 09:27 AM, my.card@web.de wrote: > Hi all, Hi,

Re: [RFC] Wireshark dissector for SPOP

2017-11-09 Thread Frederic Lecaille
On 11/05/2017 09:27 AM, my.card@web.de wrote: Hi all, Hi, I've implemented a very basic wireshark (https://www.wireshark.org) dissector for SPOP. I've stumbled over the following issue, that I couldn't figure out, yet. ACTION-ARGS should be multiple TYPED-DATA items, but the data sent

Re: regression testing for haproxy

2018-06-11 Thread Frederic Lecaille
On 06/09/2018 09:16 AM, Baptiste wrote: Hi Fred, Hi Baptiste, Amazing work. Looking forward to write some of those :) Yes for now on, *if possible*, it would be great to write a test file for each bug to come. . According to you, would it be compicated to automate tests on the DNS

regression testing for haproxy

2018-06-07 Thread Frederic Lecaille
Hi all, We have recently worked in colloboration with Poul-Henning Kamp to use varnishtest regression testing (script driven) tool for Varnish HTTP Cache so that to modify it and make it capable of also test haproxy. Note that here we are speaking about *regression* testing which has

Re: regression testing for haproxy

2018-06-07 Thread Frederic Lecaille
On 06/07/2018 03:14 PM, Frederic Lecaille wrote: Hi all, We have recently worked in colloboration with Poul-Henning Kamp to use varnishtest regression testing (script driven) tool for Varnish HTTP Cache so that to modify it and make it capable of also test haproxy. Note that here we

[PATCH] MINOR: tests: First regression testing file.

2018-06-18 Thread Frederic Lecaille
Hello, Here is a simple patch to add a Makefile target to run all "*.vtc" regression testing files found in 'reg-tests' directory. It comes with a first VTC file in relation with f874a83 bug fix commit for LUA. This VTC file parent directory is 'reg-tests/lua'. I have copied and pasted the

Re: BUG: segfault with lua sample converters & wrong arg types

2018-06-15 Thread Frederic Lecaille
Hello Patrick, On 06/14/2018 11:05 PM, Patrick Hemmer wrote: Haproxy segfaults if you pass the wrong argument type to a converter. Example: haproxy.cfg:     global         lua-load /tmp/haproxy.lua     frontend f1         mode http         bind :8000         default_backend b1        

[PATCH] BUG/MINOR: lua: Segfaults with wrong usage of types.

2018-06-15 Thread Frederic Lecaille
On 06/15/2018 02:28 PM, Frederic Lecaille wrote: On 06/15/2018 02:15 PM, Frederic Lecaille wrote: On 06/14/2018 11:05 PM, Patrick Hemmer wrote: Haproxy segfaults if you pass the wrong argument type to a converter. Example: haproxy.cfg: global     lua-load /tmp/haproxy.lua

Re: BUG: segfault with lua sample converters & wrong arg types

2018-06-15 Thread Frederic Lecaille
On 06/14/2018 11:05 PM, Patrick Hemmer wrote: Haproxy segfaults if you pass the wrong argument type to a converter. Example: haproxy.cfg:     global         lua-load /tmp/haproxy.lua     frontend f1         mode http         bind :8000         default_backend b1         http-request

Re: BUG: segfault with lua sample converters & wrong arg types

2018-06-15 Thread Frederic Lecaille
On 06/15/2018 02:15 PM, Frederic Lecaille wrote: On 06/14/2018 11:05 PM, Patrick Hemmer wrote: Haproxy segfaults if you pass the wrong argument type to a converter. Example: haproxy.cfg: global     lua-load /tmp/haproxy.lua frontend f1     mode http     bind :8000

Re: haproxy 1.9 status update

2018-05-28 Thread Frederic Lecaille
On 05/25/2018 06:10 PM, Willy Tarreau wrote: Hi all, [sniped] - peers over SSL [Fred] : the purpose is to allow all bind options with peers so that peers can exchange information securely. I think I've seen it posted somewhere, I'll have to dig through the archives. Here are

Re: [PATCH] REGTEST: stick-tables: Test expiration when used with table_*

2018-06-25 Thread Frederic Lecaille
On 06/21/2018 04:53 AM, Willy Tarreau wrote: Hi Daniel, On Wed, Jun 20, 2018 at 10:28:43AM -0400, Daniel Corbett wrote: +shell -expect "used:0" { +echo "show table http1" |socat ${tmpdir}/h1/stats.sock - ^ This is the point where it will start to

[PATCH] MINOR: reg-tests: Add a few regression testing files.

2018-06-20 Thread Frederic Lecaille
On 06/19/2018 10:18 AM, Willy Tarreau wrote: On Mon, Jun 18, 2018 at 07:50:38PM +0200, Frederic Lecaille wrote: Hello, Here is a simple patch to add a Makefile target to run all "*.vtc" regression testing files found in 'reg-tests' directory. (...) Thank you very much for this, Fr

Re: [PATCH] MINOR: reg-tests: Add a few regression testing files.

2018-06-20 Thread Frederic Lecaille
On 06/20/2018 10:06 AM, Willy Tarreau wrote: On Wed, Jun 20, 2018 at 09:47:25AM +0200, Frederic Lecaille wrote: Here is a few more reg testing files with a special one for Olivier (see reg-tests/seamless-reload/h0.vtc). Merged, thanks Fred. I think we should start to think about using

Re: [PATCH] REGTEST: stick-tables: Test expiration when used with table_*

2018-06-21 Thread Frederic Lecaille
On 06/20/2018 04:28 PM, Daniel Corbett wrote: Hello, Thanks for adding this integration Fred.  Great job! Attached is a new regression test to check for stick-tables expiration when they are used with table_* converters as noted in commit id: 3e60b11100cbc812b77029ca142b83ac7a314db1 Thanks,

Re: how to run vtc files?

2018-06-21 Thread Frederic Lecaille
On 06/21/2018 04:13 AM, Willy Tarreau wrote: On Wed, Jun 20, 2018 at 04:39:36PM -0400, Daniel Corbett wrote: Hello, On 06/20/2018 03:34 PM, ??? wrote: hi [ilia@localhost haproxy]$ HAPROXY_PROGRAM=./haproxy varnishtest reg-tests/ssl/h0.vtc top   0.0 extmacro def

Re: Peer tables don't synch on clear

2018-02-12 Thread Frederic Lecaille
On 02/08/2018 11:22 AM, Franks Andy (IT Technical Architecture Manager) wrote: Hi all, Hello Franks,   Haproxy 1.6.13   I’ve checked the documentation again but can’t see an option for this. We sometimes clear backup path server use for individual connections and whilst the peers

  1   2   3   >