Re: Question about TCP balancing

2009-08-05 Thread Dmitry Sivachenko
On Wed, Aug 05, 2009 at 06:30:39AM +0200, Willy Tarreau wrote: frontend my_front acl near_usable nbsrv(near) ge 2 acl far_usable nbsrv(far) ge 2 use_backend near if near_usable use_backend far if far_usable # otherwise error backend near balance

Re: 1.4 dev 1 under FreeBSD 7.2 and gmake-3.81_3 error when compiling

2009-08-05 Thread Andrew Azarov
Hi Willy, This thing is also happened in backend.c and proto_tcp.c... I've added the types.h before tcp.h and it fixed it... But then this error popped out: gmake USE_PCRE=1 TARGET=freebsd gcc -Iinclude -Wall -O2 -g -DTPROXY -DENABLE_POLL -DENABLE_KQUEUE -DUSE_PCRE

Re: disable-on-404

2009-08-05 Thread Benoit
Kent Noonan a écrit : Hello all... I am working on a new setup and am having an issue, that I will admit, is probably me misreading the docs. We have a couple of other load balance solutions, so I am not new to the concept, this is just our first use of haproxy. I have 5 backend

Re: implementing delay...

2009-08-05 Thread Andrew Azarov
Hi Willy, The 1.4 seems not to work, for example I have the following: frontendxx :80 mode http tcp-request inspect-delay 30s acl to_delay hdr_reg Opera.* tcp-request content accept if to_delay WAIT_END Maybe it is because of the capture cookie or

Re: implementing delay...

2009-08-05 Thread Andrew Azarov
Hi Willy, Yes I tried it with the ! HTTP and with !HTTP_1.1 !HTTP_1.0 - It just gives a blank page on all of the websites... BRG, Andrew Willy Tarreau wrote: On Wed, Aug 05, 2009 at 04:08:29PM +0200, Andrew Azarov wrote: Hi Willy, The 1.4 seems not to work, for example I have the

Re: Connection limiting Sorry servers

2009-08-05 Thread Boštjan Merčun
Hi Willy On Mon, 2009-08-03 at 09:21 +0200, Willy Tarreau wrote: why are you saying that ? Except for rare cases of huge bugs, a server is not limited in requests per second. At full speed, it will simply use 100% of the CPU, which is why you bought it after all. When a server dies, it's

reqrep/general regex issue

2009-08-05 Thread Dave Pascoe
Running the latest 1.3.x and have several reqrep lines in my config. No issues with rewriting /foo/(.) but I just want to rewrite: /foo to /fubar/foo and the regex that I *think* should work is not doing the job. Any help appreciated. -dave

Re: implementing delay...

2009-08-05 Thread Willy Tarreau
On Wed, Aug 05, 2009 at 04:31:09PM +0200, Andrew Azarov wrote: Hi Willy, Yes I tried it with the ! HTTP and with !HTTP_1.1 !HTTP_1.0 - It just gives a blank page on all of the websites... OK I will check. Regards, Willy

Re: Connection limiting Sorry servers

2009-08-05 Thread Willy Tarreau
On Wed, Aug 05, 2009 at 05:52:50PM +0200, Bo??tjan Mer??un wrote: Hi Willy On Mon, 2009-08-03 at 09:21 +0200, Willy Tarreau wrote: why are you saying that ? Except for rare cases of huge bugs, a server is not limited in requests per second. At full speed, it will simply use 100% of the

Re: 1.3.19 binaries for Solaris

2009-08-05 Thread Willy Tarreau
Hi Marco, On Wed, Aug 05, 2009 at 11:50:14AM +0200, Marco Cunha wrote: Hi Willy, hi all, I've tried to download the solaris binaries for 1.3.19 from the website but it seems they're not there yet. Are they being phased out ? no, it's just that I recently moved and have not yet unpacked all

Re: disable-on-404

2009-08-05 Thread Willy Tarreau
On Wed, Aug 05, 2009 at 02:55:54PM +0200, Benoit wrote: Kent Noonan a écrit : Hello all... I am working on a new setup and am having an issue, that I will admit, is probably me misreading the docs. We have a couple of other load balance solutions, so I am not new to the concept, this

Re: reqrep/general regex issue

2009-08-05 Thread Willy Tarreau
On Wed, Aug 05, 2009 at 12:08:12PM -0400, Dave Pascoe wrote: Running the latest 1.3.x and have several reqrep lines in my config. No issues with rewriting /foo/(.) but I just want to rewrite: /foo to /fubar/foo and the regex that I *think* should work is not doing the job. Any help