Haproxy consulting

2011-10-18 Thread Cory Forsyth
Hi, my company would like to hire someone for a few hours' worth of consulting time to help us gut-check our haproxy configuration and set up. In particular, this is what we are trying to do: We are trying to limit connections to our server by IP address, but over a given time window for each

Re: unexpected server disconnect (SH--) when using HAProxy 1.5x

2011-03-25 Thread Cory Forsyth
with the-proxy.etc) thanks, -Cory On Thu, Mar 24, 2011 at 4:06 PM, Willy Tarreau w...@1wt.eu wrote: Hi Cory, On Thu, Mar 24, 2011 at 01:10:49PM -0400, Cory Forsyth wrote: I'm not sure if this is a bug in HAProxy, or if upgrading HAProxy to 1.4 has uncovered a bug in my application. I am

unexpected server disconnect (SH--) when using HAProxy 1.5x

2011-03-24 Thread Cory Forsyth
I'm not sure if this is a bug in HAProxy, or if upgrading HAProxy to 1.4 has uncovered a bug in my application. I am developing a web app that uses long polling. I'm proxying its requests through haproxy. I've noticed that when reload the page in the browser (which presumably severs the

Re: odd bug in 1.5-dev4

2011-03-23 Thread Cory Forsyth
Yes, that was the fix, thank you. On Tue, Mar 22, 2011 at 6:55 PM, Cyril Bonté cyril.bo...@free.fr wrote: Hi Cory, Le mardi 22 mars 2011 23:45:41, Cory Forsyth a écrit : I'm running 1.5-dev4 on ubuntu (linux26 target) with the following config (...) When I run it with haproxy -f

odd bug in 1.5-dev4

2011-03-22 Thread Cory Forsyth
I'm running 1.5-dev4 on ubuntu (linux26 target) with the following config file: defaults mode http timeout connect 5000ms timeout client 6ms timeout server 6ms backend test_be server goog google.com:80 frontend http_proxy bind *:80

proper way to use an acl + stick-table to filter based on conn_cur

2011-03-15 Thread Cory Forsyth
I have an haproxy.conf like so. I'm trying to limit based on the concurrent connections. backend thebackend stick-table type ip size 8k expire 5m store gpc0,conn_cur tcp-request content track-sc1 src acl mark_seen sc1_inc_gpc0 acl needs_increment

Re: proper way to use an acl + stick-table to filter based on conn_cur

2011-03-15 Thread Cory Forsyth
Interesting... I was able to get it to work using a stick-table on the front-end, as bartavelle mentioned from this URL: http://tehlose.wordpress.com/2010/12/15/fun-stuff-with-latest-haproxy-version/ http://tehlose.wordpress.com/2010/12/15/fun-stuff-with-latest-haproxy-version/I don't know

counting entries in a stick table

2011-03-11 Thread Cory Forsyth
Is it possible to count the number of entries in a stick table and take some action based on that number? Failing that is it possible to take some action when a stick-table gets *full*? Looking at the documentation it looks like the default would be to refuse new clients when the stick-table gets

Re: question on incrementing and reading stick-table gpc counter

2011-03-11 Thread Cory Forsyth
I solved my problem. The issue was I needed to specify the correct stick-table in the src_get_gpc0 call. The corrected line is: acl source_is_new src_get_gpc0*(thebackend)* eq 0 On Thu, Mar 10, 2011 at 7:52 PM, Cory Forsyth cory.fors...@gmail.comwrote: I am trying to make an haproxy