rate limiting in varnish
bedis9 at gmail.com
Thu Jul 14 19:01:55 CEST 2011
You could easily do this with HAproxy in front of your Varnish...
If all the requests are miss ones, you could also put your HAProxy
between Varnish and your backend.
On Thu, Jul 14, 2011 at 2:52 PM, Hettwer, Marian
<mhettwer at team.mobile.de> wrote:
> Hi All,
> Before we are going to try to write our own VMOD, does anybody
> accomplished to do rate limiting with varnish?
> As in:
> We like to rate limit some scrapers. They don't generate cache hits and
> will always punch right through to the backend. This is not good(tm).
> The thought here is to do rate limiting on client.ip base.
> If client.ip hits us more than n times / second, go to vcl_error and
> either throw him an error or probably even drop the connection.
> If bots are nasty to us, sometimes it's good to be nasty to them, eh? ;)
> Any thoughts/pointers on how one would implement this in varnish?
> Thanks in advance,
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
More information about the varnish-misc