Can Jenkins nodes be given priority for build jobs

前端 未结 2 751
独厮守ぢ
独厮守ぢ 2021-01-12 01:52

I have a set of build jobs in jenkins that can run in any one of 3 build nodes. They are all labeled with a common label of \"ubuntu_build\". Each of the nodes has a numbe

相关标签:
2条回答
  • 2021-01-12 02:32

    Based upon AltF4_ answer I looked again at the plugins and found The Scored Load Balancer Plugin. It looks like it could do even better than the Least Load Plugin. I am going to give it a try and see how it works out.

    0 讨论(0)
  • 2021-01-12 02:38

    I was reading another question similar to this it was suggested there that you can use a plugin called "Least Load Plugin"

    Summary

    By default Jenkins tries to allocate a jobs to the last node is was executed on. This can result in nodes being left idle while other nodes are overloaded. This plugin overrides the default behavior and assigns jobs to nodes with the least load. The least load is defined as a node that is idle or the one with the most available executors. It is intended to provide the same functionality as the commercial plugin Even Scheduler Plugin.

    Here is the link : https://wiki.jenkins-ci.org/display/JENKINS/Least+Load+Plugin

    Source question: How can I modify the Load Balancing behavior Jenkins uses to control slaves?

    0 讨论(0)
提交回复
热议问题