multiple balance statements

2011-01-22 Thread Gregory Scallan
Hey all, I wanted to have an http balance algorithm whose logic is similiar to the following: 1) use the left most part of the uri before the ? up to depth N. If the value at the depth of N (meaning the characters between the slashes at that depth) is anything other than the number zero

Adding a unique id header to each request?

2011-01-22 Thread Roy Smith
Is there a way to have haproxy generate (and log) a unique ID for every incoming request, and add that ID as a header line to each outgoing proxied request, i.e. something like: X-Unique-ID: 12345ABCDE It doesn't matter much what the identifier is, as long as it's unique and logged. The idea

Re: Adding a unique id header to each request?

2011-01-22 Thread Willy Tarreau
Hi Roy, On Sat, Jan 22, 2011 at 05:26:12PM -0500, Roy Smith wrote: > Is there a way to have haproxy generate (and log) a unique ID for every > incoming request, and add that ID as a header line to each outgoing proxied > request, i.e. something like: > > X-Unique-ID: 12345ABCDE > > It doesn't

Re: multiple balance statements

2011-01-22 Thread Willy Tarreau
Hi Greg, On Sat, Jan 22, 2011 at 09:49:03AM -0800, Gregory Scallan wrote: > Hey all, > > I wanted to have an http balance algorithm whose logic is similiar > to the following: > > 1) use the left most part of the uri before the ? up to depth N. If the > value at the depth of N (meaning th

Re: Multiple servers - intermittent slow responses

2011-01-22 Thread Willy Tarreau
Hi, On Thu, Jan 20, 2011 at 11:43:25PM +0100, hapr...@serverphorums.com wrote: > Hi All, > > I've got a working HAProxy setup however with a strange issue. > > Every now and then we get client responses that take anywhere from 15-60 > seconds for pages that are processed very fast on the server

Re: Can you do a HTTPS redirect to multiple sub domains?

2011-01-22 Thread Willy Tarreau
On Thu, Jan 20, 2011 at 09:41:45AM +, Chris Sarginson wrote: > Hi Malcolm, > > Not seen a reply to this, so here's my two penneth worth - currently, > you need to specify each domain you are redirecting to, yes - there's no > support in Haproxy for taking the host header you have supplied and

Re: how to perform 2 healthcheck at once ?

2011-01-22 Thread Willy Tarreau
Hello Ilya, On Wed, Jan 19, 2011 at 03:16:54PM +0500, ??? wrote: > Dear Sirs, > > we are running haproxy for SSL balancing using tcp mode clusters. and > we are using http checks. > > actual config is: > > listen cluster.auth 0.0.0.0:443 >mode tcp >option tcpka >option http

Re: [PATCH] Avoid truncation of the path used for the stats socket

2011-01-22 Thread Willy Tarreau
On Thu, Jan 20, 2011 at 10:44:03AM +0100, Andreas Kohn wrote: > On Wed, 2011-01-19 at 20:38 +0100, Andreas Kohn wrote: > > Hi, > > > > while working further on the changes to allow for dynamic > > adding/removing of backend servers we noticed a potential problem: the > > path given for the 'stats

Re: backend queue

2011-01-22 Thread Willy Tarreau
Hi, On Tue, Jan 11, 2011 at 01:25:43PM +0530, Paras Fadte wrote: > Hi, > > In the attached screenshot , Please avoid JPEG screenshots. This one is barely readable. You can save your stats page in HTML, it's all self-contained. And if you prefer to hide some info from there, then save in a lossle

Re: haproxy configuration on solaris 10.

2011-01-22 Thread Willy Tarreau
On Tue, Jan 11, 2011 at 07:03:11PM +0530, Shankar Kabbur wrote: > Hi, > > I am configuring haproxy freshly on solaris 10 for load balancing purpose. > > Downloaded the haproxy-1.3.25-pcre-solaris-sparc.notstripped.gz file but no > idea what to do. > > Could you please provide me the steps to do