diff options
author | rugk <rugk+git@posteo.de> | 2021-07-15 20:33:41 +0200 |
---|---|---|
committer | rugk <rugk+git@posteo.de> | 2021-07-15 20:40:35 +0200 |
commit | 7996e2b824358499643c9dc91948c34348db28d3 (patch) | |
tree | df6bac502b593e2e677fceca0f9ae691f5a867e7 /contrib/systemd/auto-update/podman-auto-update.timer | |
parent | d24fc6b84384cbe4188db941ad452f02d3713540 (diff) | |
download | podman-7996e2b824358499643c9dc91948c34348db28d3.tar.gz podman-7996e2b824358499643c9dc91948c34348db28d3.tar.bz2 podman-7996e2b824358499643c9dc91948c34348db28d3.zip |
Randomize the auto-update of podman containers
This makes sure, that the podman auto-update is not executed exactly at midnight for the same time always.
If many things do the same and many services use this keyword and react at midnight, this can cause a lot of stress to a server.
Thus, this adds a 900s/15min delay.
As [the arch wiki says](https://wiki.archlinux.org/title/Systemd/Timers#Realtime_timer):
> Special event expressions like daily and weekly refer to specific start times and thus any timers sharing such calendar events will start simultaneously. Timers sharing start events can cause poor system performance if the timers' services compete for system resources. The RandomizedDelaySec option in the [Timer] section avoids this problem by randomly staggering the start time of each timer. See systemd.timer(5).
Signed-off-by: rugk <rugk+git@posteo.de>
Diffstat (limited to 'contrib/systemd/auto-update/podman-auto-update.timer')
-rw-r--r-- | contrib/systemd/auto-update/podman-auto-update.timer | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/systemd/auto-update/podman-auto-update.timer b/contrib/systemd/auto-update/podman-auto-update.timer index 3e50ffa9b..50be391d3 100644 --- a/contrib/systemd/auto-update/podman-auto-update.timer +++ b/contrib/systemd/auto-update/podman-auto-update.timer @@ -3,6 +3,7 @@ Description=Podman auto-update timer [Timer] OnCalendar=daily +RandomizedDelaySec=900 Persistent=true [Install] |