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

Very long Jenkins startup time with a vast number of Rundeck jobs


    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: rundeck-plugin
    • Labels:
    • Environment:
      Jenkins 1.642.3
      rundeck-plugin 3.5.2
    • Similar Issues:


      Having Jenkins instance with a vast number of rundeck jobs Jenkins startup time increases dramatically. With 1500+ rundeck jobs on very strong AWS instance Jenkins starts up over 30 minutes. That number of jobs can be easy to achieve having automatically generated (e.g. with Jenkins JobDSL) deployment pipelines for multiple products deployed in multiple countries.

      After the analyze it turned out that rundeck-plugin makes a hit to Rundeck about job details for every runcked job in Jenkins (in RundeckJobProjectLinkerAction to display details on a build page). It can take some time, especially if Rundeck is configured to use H2 DB.

      In many cases number of distinct jobs in Rundeck is very limited (e.g. several) - they are prameterized. Having it cached reduce number all calls dramatically. In our case for 1500+ rundeck jobs (several distinct rundeck jobs) the startup time was reduced from over 30 minutes to less than 30 seconds .

      I will created PR with proposed implementation as it could be probably useful for others.



          emszpak Marcin Zajączkowski added a comment - Promised PR: https://github.com/jenkinsci/rundeck-plugin/pull/24


            • Assignee:
              gschueler Greg Schueler
              emszpak Marcin Zajączkowski
            • Votes:
              0 Vote for this issue
              2 Start watching this issue


              • Created: