Commit 795d987
authored
[cron] sleep random seconds (<59), if not interactive or forced
acmesh-official#944 (comment)
Let's Encrypt employee said in the comments "we do see peaks at the beginning of minutes and even seconds; the finer-grained time randomization, the better."
This adds a random amount of sleep second before beginning the cron job. I considered reading from `/dev/urandom` and so on, but we aren't doing anything security critical here so I thought that just using the process number modulo 59 (the largest prime <= 60) should give decent variability across the systems. The starting hour and minute are already randomized during the installation.1 parent 0f61e9c commit 795d987
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6737 | 6737 | | |
6738 | 6738 | | |
6739 | 6739 | | |
| 6740 | + | |
| 6741 | + | |
| 6742 | + | |
| 6743 | + | |
| 6744 | + | |
6740 | 6745 | | |
6741 | 6746 | | |
6742 | 6747 | | |
| |||
0 commit comments