![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
(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?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 | |
Confirmed User
Join Date: May 2006
Location: brazil
Posts: 781
|
Quote:
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 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
Registered User
Join Date: Feb 2007
Posts: 17
|
Quote:
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. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Amateur Pimpin
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
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! |
![]() |
![]() ![]() ![]() ![]() ![]() |