diff options
author | Adam Spragg <adam@spra.gg> | 2022-03-21 10:50:43 +0000 |
---|---|---|
committer | Adam Spragg <adam@spra.gg> | 2022-03-21 10:50:43 +0000 |
commit | 50c1afddbc30243a419ddc2786912f9634f3d5e9 (patch) | |
tree | e8b230d03c4c54da3ff7f1c6f6a1949d1bdbe7fc | |
parent | 474d7a1ea44fc02815ec4ebaabd236de0621d021 (diff) |
Make download timer fire "randomly" one per hour
Not "randomly" per se (see FixedRandomDelay docs in systemd.timer(7) for
more info) but don't have every user of this application all hammer the
repo exactly on the hour, every hour.
See variants on the "Thundering Herd" problem for more info.
-rw-r--r-- | adu-download.timer | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/adu-download.timer b/adu-download.timer index 2f980e2..deca2f5 100644 --- a/adu-download.timer +++ b/adu-download.timer @@ -3,6 +3,8 @@ Description=Apt Desktop Upgrades package list updater/downloader [Timer] OnCalendar=hourly +RandomizedDelaySec=60m +FixedRandomDelay=true [Install] WantedBy=timers.target |