Re: HAProxy high SLAB_CACHE

2012-05-07 Thread Willy Tarreau
Hi, On Wed, May 02, 2012 at 06:44:30PM +0530, wrote: Hi Team, Configured HAProxy for bunch of web servers. It was working smoothly until one fine day I found that on the server where haproxy is running memory utilisation is getting high everyday. Biggest chunk in

Re: HAProxy Hardware LB

2012-05-07 Thread Willy Tarreau
Hi Sebastian, On Wed, May 02, 2012 at 01:07:20PM +0200, Sebastian Fohler wrote: Hi, I'm trying to build a small size loadbalancing maschine which fit's into a small 19 rackmountable case. Are there any experiences which some specific hardware, for example ATOM boards or something

Re: Randomly wrong backend on http request

2012-05-07 Thread Willy Tarreau
Hi Baptiste, On Thu, May 03, 2012 at 09:50:39PM +0200, Baptiste wrote: When using HAProxy with the option http-server-close or forceclose, haproxy will close the TCP conection on either the server or both the client and the server, after each request. Which is not compatible with websocket.

Re: TCP reverse proxy

2012-05-07 Thread Willy Tarreau
Hi Emmanuel, On Fri, Apr 20, 2012 at 09:02:07AM +0200, Emmanuel Bézagu wrote: As haproxy already accepts to reverse proxy ssl and ssh, would it be possible to support protocols as OpenVPN, tinc or XMPP ? Haproxy will work with any TCP-based protocol which does not report addresses or ports

Re: haproxy reload causes trouble

2012-05-07 Thread Willy Tarreau
Hi Stefan, On Tue, Apr 24, 2012 at 08:31:34AM +0200, Stefan Majer wrote: Hi, while reloading haproxy on a decent loaded installation i got the following problem: 2 out of 5 configured proxies stopped accepting traffic after the service haproxy reload. This machine is processing ~800

could haproxy call redis for a result?

2012-05-07 Thread S Ahmed
I'm sure this isn't possible but it would be cool if it is. My backend services write to redis, and if a client reaches a certain threshold, I want to hard drop all further requests until x minutes have passed. Would it be possible, for each request, haproxy performs a lookup in redis, and if a

Re: Randomly wrong backend on http request

2012-05-07 Thread Baptiste
On Mon, May 7, 2012 at 10:42 PM, Willy Tarreau w...@1wt.eu wrote: Hi Baptiste, On Thu, May 03, 2012 at 09:50:39PM +0200, Baptiste wrote: When using HAProxy with the option http-server-close or forceclose, haproxy will close the TCP conection on either the server or both the client and the

Re: could haproxy call redis for a result?

2012-05-07 Thread Baptiste
On Tue, May 8, 2012 at 12:26 AM, S Ahmed sahmed1...@gmail.com wrote: I'm sure this isn't possible but it would be cool if it is. My backend services write to redis, and if a client reaches a certain threshold, I want to hard drop all further requests until x minutes have passed. Would it be

ACLs that depend on cookie values

2012-05-07 Thread Malcolm Handley
I'd like to write an ACL that compares the integer value of a cookie with a constant. (My goal is to be able to block percentiles of our users if we have more traffic than we can handle, so I want to block a request if the cookie's value is, say, less then 25.) I understand that I can do

Re: could haproxy call redis for a result?

2012-05-07 Thread S Ahmed
I agree it will add overheard for each call. Well would there a way for me to somehow tell haproxy from my application to block a particular url, and then send another api call to allow traffic from that url? That would be really cool to have an API where I could do this from. I know haproxy