Web Hosting Talk







View Full Version : bandwidth scripts


brieretek
04-18-2002, 10:15 AM
I was wondering what the best way to allocate bandwidth per user for a web server that'll be running FreeBSD. I'm not sure exactly how to do it, or if there is a script that can do it for me. also if anyone has a site to get scripts for unix boxes for free, please let me know.

Starhost
04-18-2002, 02:32 PM
I've been investigating it a little bit and my conslusion was their isn't a decend way to monitor it per virtualhost.

You can do it by giving every site their own ip adres, or by using webalizer logs. That's what I'm going to do.

serve-you
04-18-2002, 04:09 PM
There's an apache module called mod_throttle (http://www.snert.com/Software/mod_throttle/) that allows you to manage your http traffic in many ways.

-Dan

Starhost
04-18-2002, 04:17 PM
Mod_trottle doesn't work ok. You can set a limit but can't view the current status etc. And that is what you need for virtual hosting.

Mod_watch does the thing, but keeps crashing on my server :(

serve-you
04-18-2002, 04:20 PM
Originally posted by Starhost
Mod_trottle doesn't work ok. You can set a limit but can't view the current status etc. And that is what you need for virtual hosting.

Mod_watch does the thing, but keeps crashing on my server :(
Umm...
Do you mean /throttle-status?
SetHandler throttle-status
Context: server, <VirtualHost>, <Directory>, <Location>

Displays the complete list of server, virtual hosts, directories, locations, and local users who are to be throttled. There are command links to reset all or individual entries, and preserve & restore runtime data.

Each row shows the item being throttled, the percentage of the limit reached, the total number of requests (hits) received, number of requests refused, volume (kbytes sent) per period, average volume per request, the current delay, policy, limit, period, elapsed period time, and the time idle since the last request.
http://my.domain.com/throttle-status

Cheers,
-Dan

Starhost
04-18-2002, 05:34 PM
1 more questioon about mod_throttle is it possible to just monitor the amount of traffic and nog limit it with mod_throttle?

serve-you
04-18-2002, 06:18 PM
Sorry, I don't understand the question.

-Dan

Starhost
04-18-2002, 06:26 PM
I mean is it possible to monitor the amount of bandwisth transfered by a virtualhost. Without limiting the amount of the virtualhost.

serve-you
04-18-2002, 06:29 PM
Yes.
Just set the ThrottlePolicy to none.

-Dan