From 50c1afddbc30243a419ddc2786912f9634f3d5e9 Mon Sep 17 00:00:00 2001 From: Adam Spragg Date: Mon, 21 Mar 2022 10:50:43 +0000 Subject: 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. --- adu-download.timer | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.1