Load peaks and throttling
am 22.07.2008 00:29:59 von Cosimo StrepponeHi,
I'm currently working on a "large" (for some meaning of "large", of course)
community web site, using mp2 with mostly handlers and some registry
scripts.
The architecture is basically composed of:
- a few load-balanced frontend apaches
- several load-balanced mp2 backends
- a replicated mysql db
From time to time, we are seeing very high peaks of traffic on
our backends, with db connections and backend threads quickly going up.
This rapidly causes backend load to increase and general slowdown
of the application.
Most of the times, these peaks are caused by search engine bots
or automated spam clients.
I'm trying to fully understand this problem, but I'm considering
implementing throttling at the backend (maybe front?) level,
so I was wondering what is the current state-of-the-art
or best practice about this.
Any pointers or suggestions?
--
Cosimo