[lug] Web bandwidth accounting sw
dan at usrsbin.com
Tue Mar 13 23:14:18 MDT 2007
karl horlen wrote:
> If a webserver is going to be shared by a number of
> different sites with different owners, can anybody
> recommend open source software that allows you to keep
> track of the amount of bandwidth each uses?
> Preferably it would:
> 1) allow you to set account limits
> 2) have triggers that automatically notify you when a
> limit has been reached
> 3) keep track of daily weekly monthly amounts
> 4) keep track of bursts/peaks
Not sure about all of that, I think you might need some flow monitoring
> And i'm not sure if this is possible but:
> 5) allocate percentages of the entire bandwidth pipe
> to individual sites so that if all the bandwidth is
> being used, one site could be guaranteed 50% of the
> pipe and the other 10 would divide the rest (or some
> other sharing scheme)
Very doable. Take a look at the Linux advanced routing and traffic
control HOWTO. What you want is called Classed based queueing. The
utility to control all of that stuff is called tc.
> 8:00? 8:25? 8:40? Find a flick in no time
> with the Yahoo! Search movie showtime shortcut.
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: lug.boulder.co.us port=6667 channel=#colug
# unzip ; strip ; touch ; finger ; mount ; fsck ; more ; yes ; umount ; sleep
#UNIX KISS principle:
I ...wanna grok and poll all night...
More information about the LUG