Hi all,
We had an outage yesterday, which was likely caused by a bot requesting about 25,000 requests in a 20 minute span during a normally heavy traffic period. Most of the requests didn't hit the cache, so our Apache servers got hammered, and our site went down, but our Squid server was fine. All of the requests came from the same IP range.
Is there a common way to deal with bots like these, other than manually identifying them (usually when it's too late) and blocking them via iptables? Does Squid offer any throttling? Or are there any other options?
Just curious.
Thanks, Travis
Squid needs a way to throttle per-IP requests (if it doesn't already have a method of doing this) - My site has had trouble with this before. The easiest way I found to do it was blocking it at the router level, which could also be done at the load balancer level if required.
-Matt
Date: Wed, 17 Oct 2007 13:41:14 -0400 From: travis@wikihow.com To: wikitech-l@lists.wikimedia.org Subject: [Wikitech-l] dealing with bots
Hi all,
We had an outage yesterday, which was likely caused by a bot requesting about 25,000 requests in a 20 minute span during a normally heavy traffic period. Most of the requests didn't hit the cache, so our Apache servers got hammered, and our site went down, but our Squid server was fine. All of the requests came from the same IP range.
Is there a common way to deal with bots like these, other than manually identifying them (usually when it's too late) and blocking them via iptables? Does Squid offer any throttling? Or are there any other options?
Just curious.
Thanks, Travis _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/wikitech-l
_________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
wikitech-l@lists.wikimedia.org