Web Hosting Talk







View Full Version : Apache: SPEED-cap a Virtual Host


hypernatic.net
02-26-2002, 11:14 AM
Howdy,

can anyone tell me how one can SPEEDCAP a virtual host in apache?

Thanks! :)

priyadi
02-26-2002, 11:25 AM
Try mod_bandwidth.

hypernatic.net
02-26-2002, 11:31 AM
Tried that a while back,
but it didnt really work...

Does anyone have some instructions or so on this? :D

Ahmad
02-26-2002, 11:34 AM
maybe mod_throttle?

http://www.snert.com/Software/mod_throttle/

hypernatic.net
02-26-2002, 11:36 AM
Mod throttle is no SPEED cap, but more like an AMOUNT cap

Ahmad
02-26-2002, 01:43 PM
Speed
Impose a limit on the volume (kbytes sent) per period, which when exceeded the request incurs a calculated delay penalty or is refused.
First, whenever the elapsed time exceeds the period length, then the limit (allowance) is deducted from the volume, which cannot be a negative result; also the period length is deducted from the elapse time.

Second, if the volume is below the limit, in which case the request proceeds without delay. Otherwise the request is delayed between one and ThrottleMaxDelay seconds. If the delay would exceed ThrottleMaxDelay, then we refuse the request entirely to avoid occupying servers unnecessarily.

The delay is computed as one plus the integer result of the volume times 10 divided by the limit.


:)