HAProxy and the 502 errors

2009-07-14 Thread Willy Tarreau
Hi Jean-Baptiste and Robbie, I could finally reproduce the issues with the 502 errors. The only way to get them is to install the backend server on the same machine as haproxy, in order to minimise latency so that the system does not have the time to ACK the data... So, I checked with strace what

Re: ACLs + header manipulation

2009-07-14 Thread Willy Tarreau
On Tue, Jul 14, 2009 at 06:21:34PM +0200, Holger Just wrote: > On 14.07.2009 18:12 Uhr, Jeremy wrote: > > Is it possible to use 'reqirep' to i.e. rewrite a Host header, only if a > > certain ACL matches? As far as I can tell it doesn't look like you can > > combine ACL's with the req* header manipu

Re: Inserting HTML content

2009-07-14 Thread Willy Tarreau
Hello, On Tue, Jul 14, 2009 at 11:08:52AM -0500, Jeremy wrote: > Can HAProxy insert content into the webpages it serves? I've been asked to > see if we could automatically insert some Google Analytics code right above > the tag in any HTML pages that HAProxy serves up. As far as I can > tell HAPr

Re: [Fwd: 302 to 502 error]

2009-07-14 Thread Willy Tarreau
[forwarding to haproxy@formilux.org, original address was wrong] Hi Robbie, On Tue, Jul 14, 2009 at 05:59:08PM +0200, Robbie Aelter wrote: > Hi, > > i have a problem with the 502 errors. I saw they got better debugging > through the use of the `echo "show errors" | socat stdio socket command` >

Re: ACLs + header manipulation

2009-07-14 Thread Holger Just
On 14.07.2009 18:12 Uhr, Jeremy wrote: > Is it possible to use 'reqirep' to i.e. rewrite a Host header, only if a > certain ACL matches? As far as I can tell it doesn't look like you can > combine ACL's with the req* header manipulation commands but I just > wanted to double check. Jeremy, Unfort

ACLs + header manipulation

2009-07-14 Thread Jeremy
Is it possible to use 'reqirep' to i.e. rewrite a Host header, only if a certain ACL matches? As far as I can tell it doesn't look like you can combine ACL's with the req* header manipulation commands but I just wanted to double check. Thanks again, Jeremy

Inserting HTML content

2009-07-14 Thread Jeremy
Can HAProxy insert content into the webpages it serves? I've been asked to see if we could automatically insert some Google Analytics code right above the tag in any HTML pages that HAProxy serves up. As far as I can tell HAProxy can do replacements on the HTTP headers but not content, is this cor

302 to 502 error

2009-07-14 Thread Robbie Aelter
Hi, i have a problem with the 502 errors. I saw they got better debugging through the use of the `echo "show errors" | socat stdio socket command` since 2 versions. But i never see an error in there, the sess and info work though. haproxy -v HA-Proxy version 1.3.18 2009/05/10 Copyright 2000-2

Re: Best combination of workers/CPU cores

2009-07-14 Thread Pedro Mata-Mouros Fonseca
Thanks so much Willy. Very valuable info in your email. Cheers. On Jul 14, 2009, at 12:32 PM, Willy Tarreau wrote: Hi, On Mon, Jul 13, 2009 at 02:47:21PM +0100, Pedro Mata-Mouros Fonseca wrote: Greetings, Other than personally testing it very thouroughly, is there any general rule of thumb

Re: Best combination of workers/CPU cores

2009-07-14 Thread Willy Tarreau
Hi, On Mon, Jul 13, 2009 at 02:47:21PM +0100, Pedro Mata-Mouros Fonseca wrote: > Greetings, > > Other than personally testing it very thouroughly, is there any > general rule of thumb - regarding HAProxy - as to what combination of > worker numbers is the most efficient? > > I have one HAPro