River Tarnell wrote:
Platonides:
will it only run jobs on idle servers?
yes; or more specifically, it will run jobs on server where the load avg
is less than 1.75*NCPUS (this is configurable).
i'm not sure there's much advantage to having an immediate-execution
queue; would the purpose of this be to run a job on the least loaded
server, even if it's already overloaded?
It doesn't look nice. But if the task is not executed "right now" How
many users will wait on the queue, and how many will ssh to run directly?
one thing i will probably implement is a queue based
on database load,
so you could submit a job to the "s1" queue, and it will be executed
when the s1 database is sufficiently idle.
- river.
Looks good.
IMHO another thing worth documenting would be how to tell "I'm an
unimportant script, suspend me if there're scripts for doing real work
waiting" (some special command in the script text, I think).