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

Add machine entropy to cron tab H symbol hash

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core

      The value returned by the 'H' symbol in the crontab is hashed off the jobname. We have a use case where multiple machines are running the same job. To make each machine have a different start time using 'H' we would have to rename the job on each server. It would be nicer to add some entropy to the hash such as a mac address or ip. This would still serve both the use case of multiple jobs on a single machine as well as one job run from multiple machines.

          [JENKINS-19126] Add machine entropy to cron tab H symbol hash

          Jesse Glick added a comment -

          Could use InstanceIdentity to identify the servers persistently, without relying on vagaries such as MAC address. Not ideal to add it retroactively since it would change the timing of existing jobs after upgrade, which could matter for example for jobs run once per month that are suddenly run two days later.

          Jesse Glick added a comment - Could use InstanceIdentity to identify the servers persistently, without relying on vagaries such as MAC address. Not ideal to add it retroactively since it would change the timing of existing jobs after upgrade, which could matter for example for jobs run once per month that are suddenly run two days later.

          To maintain backward compatibility the option could be added with an opt-out checkbox, which default to false, but defaults to true when migrating old jobs

          Jeremy Carroll added a comment - To maintain backward compatibility the option could be added with an opt-out checkbox, which default to false, but defaults to true when migrating old jobs

            Unassigned Unassigned
            hornswoggle Ray thompson
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: