Re: TCP proxy capabilities

2011-03-15 Thread Willy Tarreau
On Mon, Mar 14, 2011 at 05:49:05PM -0700, g...@desgames.com wrote: That's something I considered, but the ultimate problem is that the backend service we're running (gearman) sometimes gets backed up with requests from our web servers. In this case, the server still looks 'up' (I *think*) but

TCP proxy capabilities

2011-03-14 Thread g...@desgames.com
Hi, We have a tcp service we'd like to proxy requests to, and we were investigating haproxy as a possible solution for our requirements. So far, it doesn't seem like haproxy is suitable but I thought I'd run it by the community to confirm what I understand to be the case. What we want is a proxy

Re: TCP proxy capabilities

2011-03-14 Thread g...@desgames.com
Actually, I should clarify something. We don't really actually want the 'black hole' situation I described - instead, what we want is for haproxy to accept and queue the messages that come in from the requesting server, but to still deliver them when a backend server becomes available. In this

Re: TCP proxy capabilities

2011-03-14 Thread carlo flores
Hi Guy, If you only want HAProxy to queue connections and not send that immediate ok any longer, check out how these folks are doing it to queue to MySQL. http://flavio.tordini.org/a-more-stable-mysql-with-haproxy/comment-page-1 On Mon, Mar 14, 2011 at 5:15 PM, g...@desgames.com

Re: TCP proxy capabilities

2011-03-14 Thread David Birdsong
On Mon, Mar 14, 2011 at 8:15 PM, g...@desgames.com g...@desgames.com wrote: Actually, I should clarify something. We don't really actually want the 'black hole' situation I described - instead, what we want is for haproxy to accept and queue the messages that come in from the requesting server,

Re: TCP proxy capabilities

2011-03-14 Thread g...@desgames.com
Thanks for the quick reply Carlo, but actually sending the immediate ok *is* what we want. We just want haproxy to continue queuing the messages and sending them after it's returned an 'ok' to the requesting server. The people who wrote that page are basically limiting the number of connections

Re: TCP proxy capabilities

2011-03-14 Thread g...@desgames.com
That's something I considered, but the ultimate problem is that the backend service we're running (gearman) sometimes gets backed up with requests from our web servers. In this case, the server still looks 'up' (I *think*) but requests from PHP scripts are held up waiting for the gearman server to

Re: TCP proxy capabilities

2011-03-14 Thread David Birdsong
On Mon, Mar 14, 2011 at 8:49 PM, g...@desgames.com g...@desgames.com wrote: That's something I considered, but the ultimate problem is that the backend service we're running (gearman) sometimes gets backed up with requests from our web servers. In this case, the server still looks 'up' (I