Results 1 to 4 of 4
Hybrid View
-
03-28-2005, 11:48 AM #1Web Hosting Guru
- Join Date
- May 2004
- Location
- UK and Greece
- Posts
- 337
restart pache when load goes to 10?
Hello,
Does anyone knows a way to add a script in the cronjob that will restart apache as soon as the load reach the 10?
Thanks
-
03-28-2005, 12:40 PM #2Newbie
- Join Date
- Mar 2005
- Posts
- 11
CPU load reaches 10% ?
If this is being caused by user downloads, you might be better off trying to implement mod_throttle or mod_bwshare.
Also check out the 4th post down in this thread: http://www.webhostingtalk.com/showth...hreadid=389191Last edited by nick252; 03-28-2005 at 12:47 PM.
-
03-28-2005, 07:18 PM #3Junior Guru Wannabe
- Join Date
- Mar 2004
- Location
- Poland, Lublin
- Posts
- 75
make shell script like in php..
script should do this steps:
1. take current load (#uptime) and parse it
2. if >10, then run restarting script.. and log it
3. else .. nothing to do
and add to cronjobs for every 15mins.. or 10mins.. or 5mins..
-
03-28-2005, 07:38 PM #4Web Hosting Evangelist
- Join Date
- Oct 2004
- Location
- UK
- Posts
- 487
What does "#uptime" have to do with the current CPU load?
I know the basics of a script, but I don't know the exact script to get the CPU load from the server