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

Build waits for next available executor even if several are available

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: slave-squatter-plugin
    • Labels:
      None
    • Environment:
      Hudson 1.379, slave-squatter 1.1, heavy-job 1.0
    • Similar Issues:
      Show 5 results

      Description

      (Couldn't find slave-squatter nor heavy-job as components, so posted in core)
      I think there's a problem in the cooperation between these components.
      I started using them yesterday to replace a more complicated mix of "heavy-slaves".

      I have one slave with 8 executors. I configured it, using slave-squatter, to reserve 3 of these during office hours, leaving 5 for use. I then noticed a job with weight 3 claiming to wait for next available executor even though it was the only job in the queue and there were no builds on the slave (or anywhere, actually).
      I tried lowering the reservation of the slave to 2 (i.e. 6 executors free) which caused the build to start - but having to keep an eye on these situations is not why I run Hudson

      The only issue I could find that smells a bit like this was JENKINS-7033 (Job in build queue is not executed).

        Attachments

          Issue Links

            Activity

            Hide
            jsiirola jsiirola added a comment -

            Assigning to Kohsuke (slave-squatter author) so he can comment on the best way to address the double-counting of reservations.

            Show
            jsiirola jsiirola added a comment - Assigning to Kohsuke (slave-squatter author) so he can comment on the best way to address the double-counting of reservations.
            Hide
            cpringle cpringle added a comment -

            I've just installed this plugin onto Jenkins and am getting the same behaviour as described in the initial bug report. I have 6 executors, but only 2 are available during the day. I currently have executors 2 and 6 free (the rest are reserved), and there are 2 jobs stuck in the build queue even though there are 2 spare executors.

            Are we able to get a fix for this?

            Show
            cpringle cpringle added a comment - I've just installed this plugin onto Jenkins and am getting the same behaviour as described in the initial bug report. I have 6 executors, but only 2 are available during the day. I currently have executors 2 and 6 free (the rest are reserved), and there are 2 jobs stuck in the build queue even though there are 2 spare executors. Are we able to get a fix for this?
            Hide
            efficks François-Xavier Choinière added a comment -

            Same problem here:
            I've a Jenkins server on Ubuntu 32 bit and a slave on Windows 7 64 bit.
            The slave connects correctly on the server.
            When starting the job, the status always says waiting the next executor on host <HOSTNAME>
            So... I'm unable to use any of my slave!

            Please fix this ASAP!!!

            Show
            efficks François-Xavier Choinière added a comment - Same problem here: I've a Jenkins server on Ubuntu 32 bit and a slave on Windows 7 64 bit. The slave connects correctly on the server. When starting the job, the status always says waiting the next executor on host <HOSTNAME> So... I'm unable to use any of my slave! Please fix this ASAP!!!
            Hide
            danielbeck Daniel Beck added a comment -

            Can this issue still be reproduced on recent Jenkins + plugins versions?

            Show
            danielbeck Daniel Beck added a comment - Can this issue still be reproduced on recent Jenkins + plugins versions?
            Hide
            slawomir_czarko Slawomir Czarko added a comment -

            It is still happening with fully updated LTS version.

            Show
            slawomir_czarko Slawomir Czarko added a comment - It is still happening with fully updated LTS version.

              People

              • Assignee:
                kohsuke Kohsuke Kawaguchi
                Reporter:
                torbent torbent
              • Votes:
                5 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: