Deny http connection

2011-11-25 Thread Sander Klein
Hi, I was wondering if it is possible to start rate-limiting or deny a connection based on response codes from the backend. For instance, I would like to start rejecting or rate limit a HTTP connection when a client triggers more than 20 HTTP 500's within a certain time frame. It this

Re: Deny http connection

2011-11-25 Thread Baptiste
Hi, You could do that using a stick table and the option http_err_rate. cheers On Fri, Nov 25, 2011 at 1:50 PM, Sander Klein roe...@roedie.nl wrote: Hi, I was wondering if it is possible to start rate-limiting or deny a connection based on response codes from the backend. For instance, I

Re: hashing + roundrobin algorithm

2011-11-25 Thread Rerngvit Yanggratoke
Thank you, Baptiste. Let me elaborate more details then. We have over three millions of files. Each static file is rather small ( 5MB) and has a unique identifier used as well as an URL. I referred to this URL as a file key. The performance goal we want from our system is high availability and

Re: hashing + roundrobin algorithm

2011-11-25 Thread Rerngvit Yanggratoke
Dear Willy, Thank you for your help. We have a clear performance goal for our cluster. The goal is high availability and maximizing throughput under a predefined constant latency. However, we don't have a clear idea what architecture or software would allow us to achieve that yet. Let me

Re: Re: hashing + roundrobin algorithm

2011-11-25 Thread Rerngvit Yanggratoke
Hello wsq003, That sounds very interesting. It would be great if you could share your patch. If that is not possible, providing guideline on how to implement that would be helpful as well. Thank you! 2011/11/23 wsq003 wsq...@sina.com ** I've made a private patch to haproxy (just a few