Re: 1.5 badly dies after a few seconds

2010-09-15 Thread Willy Tarreau
On Wed, Sep 15, 2010 at 07:17:32AM +0200, R.Nagy József wrote: My bad, most likely. After killing haproxy process completely -instead of just config reloads-, and restarting it, problem can't be reproduced anymore without rate limiting config. OK, thanks for this clarification. So most

Re: hosting HAProxy and content servers in different locations

2010-09-15 Thread Willy Tarreau
On Mon, Sep 13, 2010 at 09:40:39AM +0200, Daniel Storjordet wrote: Is it possible to add the prefix behind instead of as a prefix? This would be extremely usefull if you wish this feature with a cdn. Then we could make a CDN server that answers to *.mycdn.com and redirect requests like

Re: sticky sessions based on request param

2010-09-15 Thread Willy Tarreau
On Mon, Sep 13, 2010 at 08:06:37AM -0400, Karl Baum wrote: Hi Willy. The balance url_param looks like what I need. In regards to setting a cookie, in my case each of the http clients is actually an email fetching worker calling an imap api which will eventually sit behind HAProxy.

Re: 1.5 badly dies after a few seconds

2010-09-15 Thread R.Nagy József
Thank you for the heads up, Managed to put it in a single listen block, and worked! Temporarily! ;( Was fine on testing environment, but after putting it into production, haproxy gone wild after 40mins, and then after 20mins in the next round. 'Wild' being it returner Error instead of serving

Re: 1.5 badly dies after a few seconds

2010-09-15 Thread Willy Tarreau
On Wed, Sep 15, 2010 at 10:17:53AM +0200, R.Nagy József wrote: Thank you for the heads up, Managed to put it in a single listen block, and worked! Temporarily! ;( Was fine on testing environment, but after putting it into production, haproxy gone wild after 40mins, and then after 20mins in

Re: 1.5 badly dies after a few seconds

2010-09-15 Thread Jozsef R.Nagy
You should simply disable the anti-dos protection to check the difference. Also, I can recommend you to enable the stats socket in the global config, so that you can inspect your tables or even delete entries : global stats socket /var/run/haproxy.sock level admin stats timeout

Re: 1.5 badly dies after a few seconds

2010-09-15 Thread Willy Tarreau
On Wed, Sep 15, 2010 at 10:45:12AM +0200, Jozsef R.Nagy wrote: Also, I think that what you're experiencing is that your block levels are too low and that once an IP is blocked, it remains blocked because the user continues to try to access the site. That's fairly impossible, why would static

Re: 1.5 badly dies after a few seconds

2010-09-15 Thread Jozsef R.Nagy
Hey, Think found the reason causing this, after looking and logging debug: Serving requests just goes on for a while, then suddenly: 03c0:my-webfarm.srvcls[0009:000a] 03c0:my-webfarm.clicls[0009:000a] 03c0:my-webfarm.closed[0009:000a] [ALERT] 257/101918 (78231) : accept(): cannot

Re: 1.5 badly dies after a few seconds

2010-09-15 Thread Willy Tarreau
On Wed, Sep 15, 2010 at 11:34:29AM +0200, Jozsef R.Nagy wrote: Hey, Think found the reason causing this, after looking and logging debug: Serving requests just goes on for a while, then suddenly: 03c0:my-webfarm.srvcls[0009:000a] 03c0:my-webfarm.clicls[0009:000a]

Re: sticky sessions based on request param

2010-09-15 Thread Karl Baum
It sounds like balance url_param is exactly what i need. In regards to a node going down, hash-type consistent sounds great as i would like to keep my clients using the same node if it is still available. Thanks for your help! -karl On Sep 15, 2010, at 3:34 AM, Willy Tarreau wrote: On

Re: 1.5 badly dies after a few seconds

2010-09-15 Thread Jozsef R.Nagy
On 2010. 09. 15. 15:08, Willy Tarreau wrote: On Wed, Sep 15, 2010 at 01:00:57PM +0200, Jozsef R.Nagy wrote: Have you found a minimal way to reproduce this ? Also did you have the tcp-request rules enabled in the conf causing this issue ? No minimal way yet, the config is the

AWStats and HAProxy Logs

2010-09-15 Thread Kyle Brandt
Hi All, I am trying to come up with a way that I might combine AWStats ( or a similar system ) with HAProxy logging. Looking at the AWStats custom log options it doesn't seem like HAProxy httplog will fit and I don't see any custom options for HAProxy logging (Perhaps I am missing that?). Has

Re: AWStats and HAProxy Logs

2010-09-15 Thread Hervé COMMOWICK
Hi Kyle, option httplog clf Hervé. On Wed, 15 Sep 2010 11:08:43 -0400 Kyle Brandt k...@stackoverflow.com wrote: Hi All, I am trying to come up with a way that I might combine AWStats ( or a similar system ) with HAProxy logging. Looking at the AWStats custom log options it doesn't seem

Re: AWStats and HAProxy Logs

2010-09-15 Thread Willy Tarreau
On Wed, Sep 15, 2010 at 05:56:39PM +0200, Graeme Donaldson wrote: As of 1.4, HAproxy does have the option httplog clf option, which generates logs in common log format, which AWstats understands just fine. In our case however, we have used combined log format in the past, which gives us the

HAProxy option httpchk - Soap?

2010-09-15 Thread Sam Pipe
Hi, This is a long shot but has anyone every been able to test a simple soap service using the httpchk option in haproxy?.. If so any examples around? I've tried a few over using the \r\n but had no luck.. eg.. option httpchk POST /wsdl/NAL/bp1.0 HTTP/1.1\r\nAccept-Encoding: