Welcome! Log In Create A New Profile

Advanced

Rate limiting and tarpitting

Avleen Vig
October 14, 2009 02:20PM
Hi everyone :)

I've been looking to implement the limit_req_zone stuff but it doesn't
do *quite* what I want.

Ideally what I want to do is check to see if someone is making a large
number of requests in a short time, and only start to limit them if
they cross a threshold.

Eg, if someone is making 100 req/min, they're ok, but if they go over
200 req/min, I want them to start getting slower responses so that our
normal backends don't get overwhelmed.
I thought about trying to find a way to change the proxy_pass target,
but I can't find a way to just check the current query rate based an
arbitrary key (like a cookie value).

Any thoughts?
Subject Author Posted

Rate limiting and tarpitting

Avleen Vig October 14, 2009 02:20PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 261
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready