Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 06-19-2007, 05:22 PM   #1
Angry Jew Cat - Banned for Life
(felis madjewicus)
 
Industry Role:
Join Date: Jul 2006
Location: In Mom & Dad's Basement
Posts: 20,368
Lots of cronjobs at once?

I have a large amount of cronjobs running now, with more and more executing every day. My question is this, should I be spreading my tasks out to execute throughout the day? will having a shitpile of cronjobs running at the exact same time (say midnight) strain my server or anything to negative effect?
Angry Jew Cat - Banned for Life is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-19-2007, 05:26 PM   #2
ne0
Confirmed User
 
Join Date: May 2006
Location: brazil
Posts: 781
Quote:
Originally Posted by ismokeblunts View Post
I have a large amount of cronjobs running now, with more and more executing every day. My question is this, should I be spreading my tasks out to execute throughout the day? will having a shitpile of cronjobs running at the exact same time (say midnight) strain my server or anything to negative effect?
depends on what exactly those cronjobs do.
if they are heavy tasks it will just delay the process and make the server slow at those times, you could split then in a small interval, and it would be alright.
__________________
hai2u
ne0 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-19-2007, 05:33 PM   #3
VivoDan
Registered User
 
Join Date: Feb 2007
Posts: 17
Quote:
Originally Posted by ismokeblunts View Post
I have a large amount of cronjobs running now, with more and more executing every day. My question is this, should I be spreading my tasks out to execute throughout the day? will having a shitpile of cronjobs running at the exact same time (say midnight) strain my server or anything to negative effect?
Yup, if you give all your cronjobs the exact same start time, they'll all be started at once at that time.

It's usually a good idea to spread your cron jobs out over time, especially if any of them are going to do anything especially CPU/disk/database intensive. Running lots of tasks at the same time that all require the same resource will generally result in a longer run time than if you ran all the same jobs sequentially, due to task switching, disk head seeking, etc.

Another option to consider would be writing a simble bash script that will run your jobs in sequence, then just run the script from cron. Call it "nightlymaintenance.sh" or something. This can make for easier management as well, since you can just update the script, instead of adding a cron job every time you add a task.

Dan.
__________________
Visit Porn.org for Free Porn - http://www.porn.org/
VivoDan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-19-2007, 05:33 PM   #4
baddog
So Fucking Banned
 
Industry Role:
Join Date: Apr 2001
Location: the beach, SoCal
Posts: 107,089
I would never recommend running them all at the same time, no matter what they are.
baddog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-19-2007, 05:38 PM   #5
CIVMatt
Amateur Pimpin
 
CIVMatt's Avatar
 
Industry Role:
Join Date: Aug 2004
Location: Orlando, FL
Posts: 13,075
I've shut down servers with too many cron jobs, stagger them out like 5 minutes apart, and dear god be on a dedicated server (like those at OC3Networks )
__________________
Make easy money with Webcams
CIVMatt is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-19-2007, 05:49 PM   #6
Swish
Confirmed User
 
Swish's Avatar
 
Join Date: Mar 2006
Location: San Diego, CA
Posts: 1,421
Good answers
__________________


Naughty America - Director of Technology
It's a CELEBRATION bitches!! For the hottest content promote Naughty America!
swish at naughtyamerica dot com | ICQ: 226 737 620 | See Who I Am At AdultWhosWho.com!
Swish is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.