Spread load evenly by using ‘H * * * *’ rather than ‘5 * * * *’

I'm busy coding picture I'm busy coding · Oct 15, 2014 · Viewed 39k times · Source

When setting up how Jenkins shoul pull changes from subversion I tried checked Poll SCM and set schedule to 5 * * * *, I get the following warning

Spread load evenly by using ‘H * * * *’ rather than ‘5 * * * *’

I'm not sure what H means in this context and why I should use that.

Answer

SMA picture SMA · Oct 15, 2014

H stands for Hash

To allow periodically scheduled tasks to produce even load on the system, the symbol H (for “hash”) should be used wherever possible. For example, using 0 0 * * * for a dozen daily jobs will cause a large spike at midnight. In contrast, using H H * * * would still execute each job once a day, but not all at the same time, better using limited resources.