hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : restart pache when load goes to 10?
Reply

Forum Jump

restart pache when load goes to 10?

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 03-28-2005, 11:48 AM
asmar asmar is offline
Web Hosting Guru
 
Join Date: May 2004
Location: UK and Greece
Posts: 337
Question

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

Reply With Quote


Sponsored Links
  #2  
Old 03-28-2005, 12:40 PM
nick252 nick252 is offline
Newbie
 
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=389191


Last edited by nick252; 03-28-2005 at 12:47 PM.
Reply With Quote
  #3  
Old 03-28-2005, 07:18 PM
evilek evilek is offline
Junior Guru Wannabe
 
Join Date: Mar 2004
Location: Poland, Lublin
Posts: 71
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..

Reply With Quote
Sponsored Links
  #4  
Old 03-28-2005, 07:38 PM
Xenatino Xenatino is offline
Web 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

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Rackspace Launches Automatic Cloud Scaling Capabilities Web Hosting News 2013-11-21 12:07:13
Amazon Web Services Northern Virginia Outage Rocks Instagram, Vine Web Hosting News 2013-08-26 14:33:03
LeaseWeb Adds Load Balancing Service to Public Cloud Web Hosting News 2013-08-07 10:35:22
GoGrid Launches Dynamic Load Balancer Service Built for Cloud Web Hosting News 2013-01-29 10:07:53
CDNetworks Releases New Versions of Cloud Load Balancer, Cloud Storage Web Hosting News 2012-09-10 15:26:28


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?