Re: Rate limiting based on backend response

2012-05-02 Thread Baptiste
Hi, Currently, you can only do this based on source IP address. I know Willy is working to improve this and in1.5-dev9 you'll be able to do it, since you'll be able to track any users using strings (ie your token) then apply conn_rate or sess_rate, http_req_rate, etc... using gpc0 as a trigger. c

Rate limiting based on backend response

2012-05-01 Thread Ben Hood
Hi, I was wondering if HAProxy has the capability to rate limit HTTP POSTs based on the response from the backend. The clients identify themselves with an token passed as query parameter in the POST. I would like to implement the business logic for calculating rate limits in my backend app. If th