[PATCH 2/2] MEDIUM: log: add a new log format flag "E"

2016-02-12 Thread Dragan Dosen
The +E mode escapes characters '"', '\' and ']' with '\' as prefix. It mostly makes sense to use it in the RFC5424 structured-data log formats. Example: log-format-sd %{+Q,+E}o\ [exampleSDID@1234\ header=%[capture.req.hdr(0)]] --- doc/configuration.txt | 11 ++- include/proto/log.h |8

[PATCH 1/2] MINOR: standard: add function "escape_chunk"

2016-02-12 Thread Dragan Dosen
This function tries to prefix all characters tagged in the with the character. The specified contains the input to be escaped. --- include/common/standard.h | 11 +++ src/standard.c| 32 2 files changed, 43 insertions(+) diff --git

Re: [PATCH] Add server name at rate limit sessions example

2016-02-12 Thread Willy Tarreau
On Thu, Feb 11, 2016 at 05:09:22PM +0200, Panagiotis Panagiotopoulos wrote: > Hi, > > The server name from limit sessions example is missing. > > This patch add the name in the doc. applied, thanks! Willy

Re: [PATCH 1/2] MINOR: standard: add function "escape_chunk"

2016-02-12 Thread Willy Tarreau
On Fri, Feb 12, 2016 at 01:23:02PM +0100, Dragan Dosen wrote: > This function tries to prefix all characters tagged in the with the > character. The specified contains the input to be > escaped. (...) series applied, thanks Dragan! Willy

Re: Stats page refresh increases backend session count

2016-02-12 Thread Pedro Mata-Mouros
Hi Willy, You're right, it was a bit silly, I would've seen it if I had turned on the logging immediately. Thanks! Pedro. > On 10 Feb 2016, at 07:40, Willy Tarreau wrote: > > Hi Pedro, > >> On Mon, Feb 08, 2016 at 05:05:02PM +, Pedro Mata-Mouros wrote: >> Hi all, >> >> I

Re: HAProxy Failure Modes

2016-02-12 Thread Skarbek, John
-- John Skarbek On February 11, 2016 at 18:13:50, Dennis Jacobfeuerborn (denni...@conversis.de) wrote: On 11.02.2016 20:23, Edward Hart (c) wrote: > Q1: Can HAProxy be configured to 'roll back' if a patch update causes a > HAProxy failure on a production

RE: HAProxy Failure Modes

2016-02-12 Thread Edward Hart (c)
John, Thank you. I had not run across the –c switch yet. That might answer the mail. From: Skarbek, John [mailto:john.skar...@ca.com] Sent: Friday, February 12, 2016 7:47 AM To: Edward Hart (c) ; Dennis Jacobfeuerborn ; haproxy@formilux.org Subject:

[no subject]

2016-02-12 Thread tecmxh

Re: is "stick on hdr()" computed deterministically?

2016-02-12 Thread Willy Tarreau
On Fri, Feb 12, 2016 at 12:54:53PM -0800, Florin Andrei wrote: > I have a couple HAproxy instances in front of several webservers. The > HAproxies are receiving traffic from an ELB upstream. All HAproxies are > identical. > > I want to load balance and make sessions sticky based on the contents

Re: send-proxy requests not added to stick-table

2016-02-12 Thread Willy Tarreau
Hi Dennis, On Fri, Feb 12, 2016 at 03:47:41AM +0100, Dennis Jacobfeuerborn wrote: > After sending the message I thought about this some more and then it > suddenly became obvious: "tcp-request connection" only sees the tcp > connections and since I'm using the abstract namespace sockets for the >

Re: Silencing DOWN alerts if the backend wasn't seen UP before

2016-02-12 Thread Willy Tarreau
On Thu, Feb 11, 2016 at 01:42:18PM -0800, Maciej Katafiasz wrote: > On 9 February 2016 at 23:24, Willy Tarreau wrote: > > I've got this request about 10 years ago, I wanted to implement a server > > option called "expect-down", then some users suggested that it could also > > be

is "stick on hdr()" computed deterministically?

2016-02-12 Thread Florin Andrei
I have a couple HAproxy instances in front of several webservers. The HAproxies are receiving traffic from an ELB upstream. All HAproxies are identical. I want to load balance and make sessions sticky based on the contents of a request header. In a nutshell, all requests with the same header