Red Hat Bugzilla – Bug 983037
RFE/BUG: take host specification into account when scheduling jobs
Last modified: 2018-02-05 19:41:31 EST
Description of problem:
JOB 448395 requires a specific host to run:
<hostname op="=" value="hp-rx2660-01.rhts.eng.brq.redhat.com"/>
<system_type op="=" value="Machine"/>
JOB 448236 doesn't require any specific hosts but picked up the same system required by JOB 448395. Now 448395 is still waiting b/c the previous job is taking too long to complete. (which is another issue).
Please fix it.
Possible test scenario:
1) Schedule multiple jobs against ia64 or another less common architecture
2) The number of jobs needs to be higher than the pool of available systems. This will cause all free systems to become busy while leaving some jobs waiting.
3) Schedule a job against any of the available systems.
X < Y < Z
Job X will be executed on example.com
Job Y and Job Z will be waiting
As Job X completes, the host example.com will become free and Job Z will be executed before Job Y.
This isn't practical given the current scheduler architecture, but is something we might be able to consider once the revised scheduler design (which avoids looping over the MxN cross product of all queued recipes and systems by instead only looking at those systems which recently became available) has been put in place.
However, the scheduler update is at least a few months away :(
This is on hold until we evaluate the possibility of switching to a more capable scheduling engine.