This page contains an updated version of mod_throttle with an additional profile intended to better suit environments where total bandwidth is budgeted per period.
The intention is to attempt to throttle traffic down, to even out the usage throughout a period, but not to either restrict throughput to an unusable level, or to allow the budget to be used up right at the begining of a period.
The additional "Shape" profile added to mod_throttle calculates a currently allowed bandwidth based on the interval elapsed through a period.
So assuming a profile with a period of 1 month and a limit of 5Gb, half way through the month the allowance would be 2.5Gb. If only 1Gb has been used up to this point, then there will be 1.5Gb available to use.
Additionally, 1% of the overall limit is allowed each side of the allowance which is used to add a delay to the connection. The intention is to gradually slow connections down as the allowance limit is being approached and to pull the usage back down to the allowance once it is breached. If the upper 1% limit is breached then connections will start being refused.
The percentage now shown on the "throttle-status" page will show the current volume so far as percentage of the current allowance.
Download mod_throttle code: mod.zip, mod.tgz (last update 19th April).
[ Home ]