Re: [PATCH v2] *_dom matching header functions now also split on ":"

2011-09-09 Thread Willy Tarreau
Hi Finn, On Thu, Sep 08, 2011 at 07:13:44PM +0200, Finn Arne Gangstad wrote: > Heh. Too many different versions of this now, so faulty version was > sent. Stripping delimiters at the end of the pattern was broken. > > The following needs to be applied on top: Yes, thanks for the update, I notice

Re: TCP health checking for redis

2011-09-09 Thread Willy Tarreau
Hi, On Fri, Sep 09, 2011 at 02:48:52PM +0200, Graeme Donaldson wrote: > On 9 September 2011 14:44, John Helliwell wrote: > > > Indeed, the httchk is expecting a HTTP response header. I think I can fool > > it by installing a wrapper script on the target which inserts a valid HTTP > > response he

Re: TCP health checking for redis

2011-09-09 Thread Graeme Donaldson
On 9 September 2011 14:44, John Helliwell wrote: > Indeed, the httchk is expecting a HTTP response header. I think I can fool > it by installing a wrapper script on the target which inserts a valid HTTP > response header - there is an example of that at > http://sysbible.org/2008/12/04/having-hap

Re: TCP health checking for redis

2011-09-09 Thread John Helliwell
On 9 September 2011 13:29, Graeme Donaldson wrote: > > Hi John > > The "something odd" you are doing is attempting to use the httpchk > option to speak a non-HTTP application protocol. > > Using the "check" option in server definitions will make HAproxy check > if it can successfully establish a

Re: TCP health checking for redis

2011-09-09 Thread Graeme Donaldson
On 9 September 2011 13:49, John Helliwell wrote: > > I'm trying to have haproxy send requests to 4 backends which are redis > servers. Only one of the four is master, and the other 3 are slaves. > I want to health check by sending an INFO command, to which redis will reply > > $640 > redis_versio

TCP health checking for redis

2011-09-09 Thread John Helliwell
Hi all, This is an interesting one. I'm trying to have haproxy send requests to 4 backends which are redis servers. Only one of the four is master, and the other 3 are slaves. I want to health check by sending an INFO command, to which redis will reply $640 redis_version:1.3.15 redis_git_sha1:00

Re: (in)sanity check on hdr_cnt

2011-09-09 Thread Willy Tarreau
On Fri, Sep 09, 2011 at 03:52:53AM -0700, Hank A. Paulson wrote: > On 9/9/11 2:13 AM, Willy Tarreau wrote: > >Hi Hank, > >On Thu, Sep 08, 2011 at 07:12:29PM -0700, Hank A. Paulson wrote: > >>Whether I have the rules in the backend or the front does not seem to > >>make a difference - I tried some r

Re: (in)sanity check on hdr_cnt

2011-09-09 Thread Hank A. Paulson
On 9/9/11 2:13 AM, Willy Tarreau wrote: Hi Hank, On Thu, Sep 08, 2011 at 07:12:29PM -0700, Hank A. Paulson wrote: Whether I have the rules in the backend or the front does not seem to make a difference - I tried some rules in front and back and neither worked. Maybe I am missing something obvio

Re: (in)sanity check on hdr_cnt

2011-09-09 Thread Willy Tarreau
Hi Hank, On Thu, Sep 08, 2011 at 07:12:29PM -0700, Hank A. Paulson wrote: > Whether I have the rules in the backend or the front does not seem to > make a difference - I tried some rules in front and back and neither > worked. > > Maybe I am missing something obvious. You're using rspadd, not