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 IP.

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

2011-03-25 Thread Cory Forsyth
/ HTTP/1.1" (I replaced some identifying info in those headers with "the-proxy.etc") thanks, -Cory On Thu, Mar 24, 2011 at 4:06 PM, Willy Tarreau wrote: > Hi Cory, > > On Thu, Mar 24, 2011 at 01:10:49PM -0400, Cory Forsyth wrote: > > I'm not sure if this is a

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 connectio

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é 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 wi

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

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/ I don't know enou

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 src_get_gpc0(union

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 wrote: > I am trying to make an haproxy config where if an

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

question on incrementing and reading stick-table gpc counter

2011-03-10 Thread Cory Forsyth
I am trying to make an haproxy config where if an IP visits the server then I'll track it in a stick-table and increment the gpc. If my capacity1 server gets marked down I want to only allow incoming requests from IP addresses that already appear in that stick-table. The full config is shown below