Fletcher_Cocquy
Jul 28, 2006Nimbostratus
Throttling iRule for webapplications
Hi, does anyone have an iRule suitable to throttle connections to a set of URI's (webapplications)?
The problem we are trying to solve is the intentional (or unintentional in the case of the aggressive webcrawler) Denial of Service (DoS)'ing of these webapps which each have their own rate limits (before their database connections are all used up and their back up the apache threads and everything on the shared infrastructure comes to a grinding halt)
So a variation of this iRule:
http://devcentral.f5.com/Wiki/default.aspx/iRules/RateLimit_HTTPRequest.html
is what I am looking for.
With a set of URI's mapped to their rate limits.
When the max number of connections is reached the Max+1 th request gets the "Service Unavailable" message
Assume these webapps are all publicly available (by design and necessity)
Thought I'd check before attempting to code my own
thanks,
Fletcher.