cobalt-serve
05-25-2002, 07:09 PM
I have installed mod_throttle on all 24 of our cobalt servers.
when we restart the server the stats in mod_throttle keep resetting them selfs. and any bandwidth a site as used it reset.
why is this
Mxhub
05-25-2002, 07:56 PM
is it True? If so, i had to worry about customer getting double bandwidth for what they subscribe for.
cobalt-serve
05-25-2002, 08:13 PM
yes its true. i have now found that if you add a new site to the server the data is also lost. i now know what the fault is
ThrottleRuntimeFile filename
Context: server
The location and file name of the runtime data file used to preserve state information across shutdowns & restarts.
-
[i]Originally posted by cobalt-serve
I have installed mod_throttle on all 24 of our cobalt servers.
when we restart the server the stats in mod_throttle keep resetting them selfs. and any bandwidth a site as used it reset.
why is this
ellebi
05-26-2002, 04:46 AM
Originally posted by cobalt-serve
ThrottleRuntimeFile filename [i am not sure what the file is]
Context: server
The location and file name of the runtime data file used to preserve state information across shutdowns & restarts.
I think that a good location to put it is /home/tmp or /var/log/
Add to to httpd.conf
ThrottleRuntimeFile /home/tmp/throttle.log
restart apache
/etc/rc.d/init.d/httpd restart
then check to see if it has created the file /home/tmp/throttle.log
If you can't find the file you need to create it.
cd to the directory where you want to put the file and create it.
cd /home/tmp
touch throttle.log
I think that should do it.
cobalt-serve
05-26-2002, 03:17 PM
Hi thanks for your reply. i have done what you said
<IfModule mod_throttle.c>
ThrottlePolicy none
ThrottleRuntimeFile /home/tmp/throttle.log
<Location /throttle-status>
SetHandler throttle-status
</Location>
but still not working. once appache is restarted all info is lost
Originally posted by cobalt-serve
yes its true. i have now found that if you add a new site to the server the data is also lost. i now know what the fault is
ThrottleRuntimeFile filename [i am not sure what the file is]
Context: server
The location and file name of the runtime data file used to preserve state information across shutdowns & restarts.
-
Jeffyt
05-26-2002, 03:28 PM
Make sure your permissions on your throttlelog are set to whatever apache runs as so it can write to the file. Hope that solves it!
Regards,
Jeff
cobalt-serve
05-26-2002, 03:33 PM
I have
77907 -rwxr-xr-x 1 root root 1567 Nov 2 1999 httpd
30730 -rwxr-xr-x 1 root root 0 May 26 20:12 throttle.log
still not working.
Originally posted by cobalt-serve
Hi thanks for your reply. i have done what you said
<IfModule mod_throttle.c>
ThrottlePolicy none
ThrottleRuntimeFile /home/tmp/throttle.log
<Location /throttle-status>
SetHandler throttle-status
</Location>
but still not working. once appache is restarted all info is lost
Jeffyt
05-26-2002, 03:35 PM
Does your apache run as root.root or nobody.nobody? Try chown'ing it to whoever apache runs as.
Regards,
Jeff
cobalt-serve
05-26-2002, 03:39 PM
My last reply shows that both apache and the log file are root.root
Originally posted by Jeffyt
Does your apache run as root.root or nobody.nobody? Try chown'ing it to whoever apache runs as.
Regards,
Jeff
ellebi
05-27-2002, 07:32 AM
You can try with
chmod 777 /home/tmp/throttle.log
and see if it works, it should be a permission problem.
cobalt-serve
05-27-2002, 05:32 PM
I have now but the below server online. much better then the raq
much faster too.
HP C240 Server
1.25 GB RAM
4Gb Root Disk
2 * 72Gb Data Disks
10/100Mbps NIC
DDS-3 Tape Drive
DLT FWD 20/40Gb Tape Dri
Originally posted by ellebi
You can try with
chmod 777 /home/tmp/throttle.log
and see if it works, it should be a permission problem.