2015-07-08 15:28 GMT+02:00 Bastien Chong <[email protected]>:
> Hi,
>
> I'd like to rate-limit a specific path, by rate-limit I mean continue to
> accept X req/s, and buffer or drop subsequent requests over the limit. That
> is was "rate-limit sessions <rate>" does, but is frontend-wise.
It's not optimal but you can use a "pipe"
frontend myfront
...
use_backend pipe_in if { condition }
backend pipe_in
server pipe_out 127.0.0.1:8080
listen pipe_out
bind 127.0.0.1:8080
rate-limit sessions 10
server ...
> I'm not interested in dropping all requests when the limit is reached,
> objective is to be gentle on the backend, not protect against abuser.
So why not use maxconn (and maybe maxqueue) on your backend ?
Joris
>
> Is there any way to achieve that ?
>
> Thanks,
> Bastien