Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 810
I'm busy coding Avatar asked Oct 15 '14 13:10

I'm busy coding


2 Answers

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.

like image 102
SMA Avatar answered Sep 20 '22 19:09

SMA


Click on the question-mark beside your schedule specification. It says there:

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.

like image 37
pitseeker Avatar answered Sep 22 '22 19:09

pitseeker