You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Joshua Chamas <jo...@chamas.com> on 2001/02/01 04:03:22 UTC

Re: Rate limiting in Apache

dave-mlist@bfnet.com wrote:
> 
> I'm interested in doing rate-limiting with Apache.  Basically, I want
> to give Apache a target bitrate to aim at.  When writing to one user,
> it writes as close to <bitrate> as the user/network can suck it down.
> When writing to two users (two connections), it writes to each
> connection at as close to <bitrate>/2 as possible... and so on.
> 
> I've heard this can be controlled by mod_perl.  Can anyone point me to
> some examples?
> 

If you find no good solution at the Apache level, you can 
try at the OS level.  Linux has some IP traffic shaping tools
that you can compile into the 2.2 & 2.4 kernels, called QoS
in the make xconfig.  Check out:

  http://www.ds9a.nl/2.4Networking/

Also, on linux, you'll want the latest cbq script which makes
dealing with the tc config much easier.

  ftp://ftp.equinox.gu.net/pub/linux/cbq/cbq.init

And though I have never used it, dummynet for FreeBSD supposedly
has this functionality has well:

  http://www.iet.unipi.it/~luigi/ip_dummynet/

If you like shelling out the big $$$, Packeteer puts this in a 
box for you:  http://www.packeteer.com/

-- Josh
_________________________________________________________________
Joshua Chamas			        Chamas Enterprises Inc.
NodeWorks >> free web link monitoring	Huntington Beach, CA  USA 
http://www.nodeworks.com                1-714-625-4051