Mod_cband + Mod_proxy
Sep 14, 2007
So i have a web server with a single virtual host.
It is a reverse proxy that accesses a number of backend http servers. It also uses mod_cache to store static files locally and serve them directly instead of request them to the backend servers. Also some files are served directly from the local filesystem (and not from a cache).
I did 1 hour of testing:
My hosts' mrtg graphs (based off router traffic) say my total outgoing bandwidth usage is about 30Mbps (ie:3.75MBps) over that period.
Apache's mod_status says:
- Total Traffic: 18.5 GB
- 120 requests/sec - 3.3 MB/second (average values over that period)
Which sounds OK with mrtg.
But mod_cband reports:
Total traffic for virtual host: 5.29GiB
Reported speed is in general between 2000 and 4000 kbps (250-500kBps)
Why such a difference? What I suspect is that mod_cband is currently only measuring the local traffic. I'm not even sure it measures the mod_cache traffic, and I'm almost positive it doesn't measure the proxy traffic.
how to make sure mod_cband is active, whatever way the request is being treated (mod_cache, mod_proxy or local request)?
View 0 Replies
Jan 5, 2007
to configure mod_wodan but received no response. As I couldn't do it myself, I'm now trying to install mod_proxy. Bellow are the relevant sections of the httpd.conf file. The problem is that, though the web server starts correctly, I can't access the [url].
......................................................
LoadModule proxy_module libexec/mod_proxy.so
AddModule mod_proxy.c
......................................................
Port 80
#Listen 80
Listen 8000
<IfModule mod_proxy.c>
ProxyRequests Off
ProxyVia On
<Directory backup/proxycache:*>
Order deny,allow
Deny from all
Allow from example
</Directory>
CacheRoot "/backup/proxycache"
CacheSize 10000000
CacheGcInterval 8
CacheMaxExpire 168
CacheLastModifiedFactor 0.1
CacheDefaultExpire 72
CacheForceCompletion 10
NoCache example.net search.example.com
</IfModule>
......................................................
<VirtualHost *:80>
ServerName www.example.org
ServerAdmin name@example.org
User name
Group name
BytesLog domlogs/example.org-bytes_log
CustomLog /usr/local/apache/domlogs/example.org combined
ProxyPass / [url]
ProxyPassReverse / [url]
</VirtualHost>
<VirtualHost *:8000>
ServerName www.example.org:8000
ServerAlias othername.example.org
ServerAdmin name@example.org
User name
Group name
DocumentRoot /home/name/public_html
ScriptAlias /cgi-bin/ /home/name/public_html/cgi-bin/
BytesLog domlogs/example.org-bytes_log
CustomLog /usr/local/apache/domlogs/example.org combined
</VirtualHost>
<VirtualHost *:80>
ServerName example.org
User name
Group name
BytesLog domlogs/example.org-bytes_log
CustomLog /usr/local/apache/domlogs/example.org combined
Redirect 301 / [url]
</VirtualHost>
......................................................
View 0 Replies
View Related
Jul 2, 2009
I install mod_cband on apache server running on linux CentOS
I put these directives on the files
/usr/local/directadmin/data/templates/custom/virtual_host2.conf
<VirtualHost |IP|>
ServerName www.|DOMAIN|
ServerAdmin |ADMIN|
DocumentRoot |DOCROOT|
CBandScoreboard /var/www/scoreboard/|DOMAIN|.scoreboard
CBandSpeed 1536 15 30
CBandRemoteSpeed 728kb/s 3 3
</VirtualHost>
Then I echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
and restart apache
But when I look at the mod_cband status page
why does the Remote clients still have speed more than 728kbps
and the request per sec is also above 15.
Is my mod_cband working?
View 1 Replies
View Related
Nov 20, 2007
I was wondering how cban can be set up to track the bandwidth of a users who use different directories. I have a linux server running apache.
I read everything I can get my hands on about it and I'm still a bit confused.
I'm thinking that it might be a an htaccess command that defines the user's directory using the <CBandUser user_name> command.
It looks like the cban site and forum are down but I did find some info off their site using archive.org
I have a membership site and each member has their own directory and I'd like track the usage of each directory. It's my understanding that is is possible using Cband just not sure how it works exactly.
View 2 Replies
View Related