Reputation: 485
I have two slave node in two different machines, I want to track the node whether it is free to take job or not
e.g. Node A: Some jobs are running on this node.
Node B: Similarly some jobs are running on this second node.
If job is finished early on Node B and free afterward, then i want to push pending job to Node B (job not executed that is assigned to Node A), so that time can be saved for execution.
First, How can i track the node availability and then how to switch job or push job to execute on another node.
Upvotes: 2
Views: 1376
Reputation: 811
With https://wiki.jenkins-ci.org/display/JENKINS/Scoring+Load+Balancer+plugin you can define node preferences etc.
from the plugin wiki: In project configuration pages, "Preference of Node" appears. You can specify scores for nodes or node labels. Multiple preferences can be specified. - so here you may prioritize node A and node B according to your needs.
Upvotes: 1