Seeking database advice

Status
Not open for further replies.

neilhwatson

Ars Scholae Palatinae
1,236
I'm working on an idea for a job scheduler. Specifically, how to store the status of jobs across a large collections of hosts.

There are many jobs and many hosts. Each host can have any number of jobs. Jobs can run on any number of hosts. Every job host combination will have one of three possible statuses: finished, running or failed. That status would be a time stamp so that I know the history of any job's status. I had something like this in mind.
Code:
"job" => {
       "host" = {
               "finished" => [ epochs ]
               "running" => [ epochs ]
               "failed" => [ epochs ]
       }
}
Epochs is an array. These arrays will be added to at least once per hour. Potentially there will be hundreds of jobs and thousands of hosts. Common queries will be to check the last status of a job or show all jobs where the last status is failed.

The idea of distributed NoSQL databases like Mongo and Couch appeals to me. Am I going in the right direction? Is there a better way?
 

ShuggyCoUk

Ars Legatus Legionis
10,388
Subscriptor++
If you're looking to build a job scheduler and you want to use eventually consistent backing datastores then stop and go an use the freely available ones that are out there first.

condor, Sun Grid Engine, SLURM, globus, Torque

There are plenty out there (some of the above ones may be considered meta schedulers, but it gives you a bit of a guide to start).
 
Status
Not open for further replies.