Raise yum-cron-hourly random_sleep to 60m#133
Raise yum-cron-hourly random_sleep to 60m#133evan-goode wants to merge 1 commit intorpm-software-management:masterfrom
Conversation
a519562 to
7797446
Compare
|
Ideally, the random delay would be 60 minutes, so mirrors see a uniform distribution across the whole hour. For Initially I was hesitant about increasing so I think a 60 minute random_sleep would be fine. In a "worst-case" scenario, cron runs yum-cron on the hour at 00:00, yum-cron random_sleeps 59 minutes and runs from 00:59--01:01, then cron skips running yum_cron at 01:00 since the first process has not released the lockfile. The next yum_cron would be started at 02:00 and could sleep until 02:59. This situation is already possible in the status quo, but now it could happen even for short-running yum-cron tasks like makecache. I think this is a reasonable tradeoff, given that this patch would lighten mirror loads and avoid making too many changes to the yum-cron scheduling logic. |
For https://issues.redhat.com/browse/RHEL-40868.
Spreads out the load more on mirror servers.