Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

In order to build a system to maintain thousands of cron jobs on a Linux system, I'm facing the problem of being able to handle them in a scalable way. I need to use a database (I was thinking of using MySQL) for storing the jobs instead of default plaintext files.

Does anyone know if there is a module or plugin for any cron daemon that can handle this task?

Thank you in advance

share|improve this question
9  
someone has to ask it. Thousands of cron jobs ?! –  Sirex Aug 12 '12 at 23:26
    
Is this a single linux system? Is there no way to add some kind of abstraction to your cronjobs and reduce the quantity? –  Zoredache Aug 12 '12 at 23:40
    
Let's say hundred of rsync / curl jobs. However i can think several different scenarios where can be useful to store cron jobs into a database instead of plain text files. –  eldblz Aug 12 '12 at 23:41
5  
Your solution probably lies with a "Job Scheduler". There are several commercial and open source solutions, for example this one: sourceforge.net/projects/phpjobscheduler and this sos-berlin.com/modules/cjaycontent/… –  Not Now Aug 13 '12 at 0:01
    
@Not Now : i'll look into SOS-Berlin JobScheduler seems promesing, however i'd like to use native system cron if possible. –  eldblz Aug 13 '12 at 17:00

3 Answers 3

up vote 5 down vote accepted

What you really need for this is a job scheduler.

Please check this list: http://en.wikipedia.org/wiki/List_of_job_scheduler_software can be useful for you

share|improve this answer
    
Thank you for your reply, i'll look into SOS-Berlin Job Scheduler seems the most promising. –  eldblz Aug 13 '12 at 17:01

Another option, assuming you're on an OS that supports the cron.d directory structure, is to break your jobs into individual .cron files and manage them via the configuration management tool of your choice (Puppet, for instance)

Otherwise, go with a job scheduler...

Outgrowing cron: what's the next scheduler?

share|improve this answer
    
Thank you for your answer, i'm using Debian –  eldblz Aug 13 '12 at 17:06

Here's another possible solution:

https://github.com/bvandenbos/resque-scheduler

Not the same as cron, but if you have temporary or sporadic jobs, Resque is a good option.

share|improve this answer
    
unfortunately jobs will be semi-permanent. I'd prefer to use system cron if possibile. Thank you anyway for your kind answer. –  eldblz Aug 13 '12 at 16:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.