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

The Jenkins master should not re-calculate jar hashes each time a slave connects

      Each time a slave connects to the master there is an interaction where jars are transferred to the slave if needed. This is done by looking at the slave's jar cache and comparing the hashes against the master's jars.

      The master does not have a shared cache, so it is has to re-calculate the hashes for every slave it deals with. This is done even when no jars need to be transferred (ie. the slave jar cache is already up-to-date).

      If there are a lot of ephemeral slaves that come and go then this becomes wasteful for the master.

      Ideally the master's cache should be a singleton that can be accessed for interactions with any slave. There is even a TODO in the JarLoaderImpl that talks about this.

          [JENKINS-28127] The Jenkins master should not re-calculate jar hashes each time a slave connects

          akshay_abd created issue -
          akshay_abd made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          akshay_abd made changes -
          Labels New: performance
          akshay_abd made changes -
          Labels Original: performance New: performance remoting
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 162841 ] New: JNJira + In-Review [ 185595 ]
          Oleg Nenashev made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]

            akshay_abd akshay_abd
            akshay_abd akshay_abd
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: