Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-28936

Gearman plugin should not decide on which node a build should be executed

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • gearman-plugin
    • None

      Today when gearman schedules a build gearman it decides on which node a build should be executed instead of relying on Jenkins to decide the node.
      The Jenkins node balancer seems to be executed but the node is already predecided by gearman.

      This makes the user not being able to use the default Jenkins Load Balancer.
      Also if you use Jenkins plugins that affects scheduling they do not work properly since gearman has already decided on which node. I have verified that the following plugins does not work properly when gearman trigger builds:
      Scoring Load Balancer Plugin
      Least Load Plugin
      Throttle Concurrent Builds Plugin

      Example logs when using Scoring Load Balancer Plugin

      Scoring for ... JobTriggeredByJenkinsOnGenericLabel:
      generic-JENKINS06: 62
      generic-JENKINS12: 62
      generic-JENKINS15: 27
      generic-JENKINS13: 5
      generic-JENKINS10: 5
      generic-JENKINS09: 5
      generic-JENKINS14: 5
      generic-JENKINS07: -50
      generic-JENKINS16: -83

      Scoring for ... JobTriggeredByGearmanOnGenericLabel:
      generic-JENKINS09: 5

      NOTE: These logs shows that the Scoring Load Balancer gets executed but instead of evaluating which nodes in the label group to choose it only has the option to evaluate the node that gearman has choosen.

            Unassigned Unassigned
            ki82 Christian Bremer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: