Re: [MEDIUM] stats: provide statistics about the conditions

2011-02-01 Thread Willy Tarreau
Hi Cyril, On Tue, Feb 01, 2011 at 11:10:54PM +0100, Cyril Bonté wrote: > Hi all, > > I'd be very pleased if someone can give a try to this patch and give me some > feedbacks. I started to write it more than a month ago and couldn't find time > to finalize it. Now it is :-) I'll talk to Emeric an

HAproxy Tuning - HTTP requests loading serially

2011-02-01 Thread David Tosoff
Hello All, I've recently setup a pair of haproxy VMs (running in Hyper-V) over Ubuntu 10.10 w/ keepalived Things seem to be working pretty well. We're moving 35-50Mbps (1442 concurrent sessions avg) thru the primary node all day, but we're noticing that multiple concurrent http requests from

Re: [MEDIUM] stats: provide statistics about the conditions

2011-02-01 Thread Cyril Bonté
Hi all, I'd be very pleased if someone can give a try to this patch and give me some feedbacks. I started to write it more than a month ago and couldn't find time to finalize it. Now it is :-) Willy, I've refactored the session structure to reduce the memory footprint of this command, let me know

[MEDIUM] stats: provide statistics about the conditions

2011-02-01 Thread Cyril Bonté
This patch provides some statistics about the conditions used in the configuration. The main goal is to have a debugging tool to track misconfigurations or to understand how the rules are applied. The statistics are available on the UNIX socket with the below command : show conds Counters can

Adding backend server as a response header?

2011-02-01 Thread Chase Seibert
In this example config, is it possible to insert a custom response header, say "X-Backend-Server", with the value of "www1" or "www2" depending on which server HAProxy routed to? This would be primarily for trouble-shooting purposes. For example, if we suspect that the deploy is broken on just one

reqrep only in case no server available?

2011-02-01 Thread Raphael Bauduin
Hi, I would like to apply a reqrep rule only if requests are redirected to the backup server (my backup server is running a very simple http server that cannot handle rewrites and I want all requests to return /index.html). Is there a way to achieve this? Here's the relevant part of my config fi

rewrite of the source-ip for logging

2011-02-01 Thread Mark Riede
Hello, is it possible to rewrite the source-ip when i use the logformat httplog? Software: haproxy 1.4 Thanks, Mark.