Load peaks and throttling

This is a discussion on Load peaks and throttling within the Apache forums in Application Servers & Tools category; Hi, 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 ...

Go Back   Application Development Forum > Application Servers & Tools > Apache

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 07-21-2008, 06:29 PM
Cosimo Streppone
Guest
 
Default Load peaks and throttling

Hi,

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

Reply With Quote
  #2  
Old 07-21-2008, 08:53 PM
Perrin Harkins
Guest
 
Default Re: Load peaks and throttling

On Mon, Jul 21, 2008 at 6:29 PM, Cosimo Streppone <cosimo@streppone.it> wrote:
> 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.


If you search the apache modules database for "throttle" and
"bandwidth" you'll see some front-end options. For the backend, the
CPAN modules that do this are mostly mod_perl 1, but wouldn't be hard
to port.

- Perrin

Reply With Quote
  #3  
Old 07-22-2008, 05:40 PM
Cosimo Streppone
Guest
 
Default Re: Load peaks and throttling

In data 22 luglio 2008 alle ore 02:53:40, Perrin Harkins <perrin@elem.com>
ha scritto:

> On Mon, Jul 21, 2008 at 6:29 PM, Cosimo Streppone <cosimo@streppone.it>
> wrote:
>> implementing throttling at the backend (maybe front?) level,

>
> [...] For the backend, the CPAN modules that do this are mostly mod_perl
> 1


By CPAN modules you mean Apache::Throttle?

> but wouldn't be hard to port.


I can probably spend some time on that.

--
Cosimo

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 05:01 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.