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.
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?
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 ]
}
}
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?