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

Changing number of executors requires restart of Hudson

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • remoting
    • None
    • Platform: PC, OS: All

      I'm almost sure that this worked in previous releases: changing the number of
      executors on the master in Hudson via the UI needs a restart of Hudson to be
      recognized.

      Usecase: we have several parallel database clone jobs running, that almost take
      no processor time. If all executors are blocked by those jobs we would like to
      increase the number of executors dynamically, allowing our compile job get running.

      (If this is intended then a message "please restart Hudson" would improve the
      usability.)

          [JENKINS-3092] Changing number of executors requires restart of Hudson

          Alan Harder added a comment -
              • Issue 3223 has been marked as a duplicate of this issue. ***

          Alan Harder added a comment - Issue 3223 has been marked as a duplicate of this issue. ***

          Alan Harder added a comment -

          looks like it just needs an updateComputerList() call after saving the main
          config. you could even do this in your current version of hudson by entering
          this in the script console after saving the config change:
          hudson.model.Hudson.instance.updateComputerList()

          Alan Harder added a comment - looks like it just needs an updateComputerList() call after saving the main config. you could even do this in your current version of hudson by entering this in the script console after saving the config change: hudson.model.Hudson.instance.updateComputerList()

          Code changed in hudson
          User: : mindless
          Path:
          trunk/hudson/main/core/src/main/java/hudson/model/Hudson.java
          trunk/www/changelog.html
          http://fisheye4.cenqua.com/changelog/hudson/?cs=18730
          Log:
          [FIXED JENKINS-3092] Call updateComputerList() at end of doConfigSubmit so a change
          in number of executors for master node takes effect immediately.

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : mindless Path: trunk/hudson/main/core/src/main/java/hudson/model/Hudson.java trunk/www/changelog.html http://fisheye4.cenqua.com/changelog/hudson/?cs=18730 Log: [FIXED JENKINS-3092] Call updateComputerList() at end of doConfigSubmit so a change in number of executors for master node takes effect immediately.

            mindless Alan Harder
            drulli Ulli Hafner
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: