RE: CPU spike after restarting with -sf pid

2013-06-10 Thread Malcolm Handley
That's sound advice. We'll upgrade soon and see whether anything changes. Is the latest snapshot really what you recommend for running in production? I was nervous about using a dev release but we desperately needed support for the proxy protocol. On Fri, Jun 07, 2013 at 03:16 PM, Lukas

CPU spike after restarting with -sf pid

2013-06-07 Thread Malcolm Handley
We restart our haproxy instances with the following command line: haproxy -f /etc/haproxy.cfg -p /var/run/haproxy-private.pid -D -sf contents of pid file This works but we find that the new haproxy process uses a lot of cpu (100% of one core) for about 20 seconds after the restart. During this

Re: ACLs that depend on cookie values

2012-05-09 Thread Malcolm Handley
On Tue, May 8, 2012 at 1:24 AM, Willy Tarreau w...@1wt.eu wrote: Hi Malcolm, On Mon, May 07, 2012 at 06:19:36PM -0700, Malcolm Handley wrote: 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

Re: ACLs that depend on cookie values

2012-05-09 Thread Malcolm Handley
Oh, one more question: if I use reqrep to modify the cookies header that's going to destroy the original header, I suspect, which would cause problems for the web server that wants to read those cookies. Is there any way around that? On Wed, May 9, 2012 at 3:51 PM, Malcolm Handley malc

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

Why would haproxy send a request to a server that is down?

2010-05-14 Thread Malcolm Handley
Hi, everyone. I'm having some trouble with the routing of requests to servers within a backend. Firstly, although I have retries 3 in the defaults section of my config file I'm not seeing any evidence of retries. If a server is down but has not been detected as down by haproxy then a request may

Re: Why would haproxy send a request to a server that is down?

2010-05-14 Thread Malcolm Handley
to force an early redispatch if the server state changes, though I guess it would make things slightly faster. On Fri, May 14, 2010 at 2:30 PM, Willy Tarreau w...@1wt.eu wrote: Hi Malcolm, On Fri, May 14, 2010 at 12:07:53PM -0700, Malcolm Handley wrote: Hi, everyone. I'm having some

Not all requests getting logged

2010-03-08 Thread Malcolm Handley
I'm having a problem with an haproxy setup where not all of the requests are getting logged (even in debug mode). Specifically, I have an ajax app that periodically POSTs to the server to find out about changes. I know that these requests are going to the proxy because if I kill the proxy the