From 80ee7659521ad6d5014a9b1cc584045b4db15042 Mon Sep 17 00:00:00 2001 From: Adar Nimrod Date: Thu, 19 Aug 2021 16:08:38 +0300 Subject: [PATCH] Randomize the maintenance jobs' timers. So they don't all fire at once. Less stress on each host or on the entire infrastructure. --- roles/debian_server/templates/maintenance-task.timer.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/debian_server/templates/maintenance-task.timer.j2 b/roles/debian_server/templates/maintenance-task.timer.j2 index bebc94e..0af3640 100644 --- a/roles/debian_server/templates/maintenance-task.timer.j2 +++ b/roles/debian_server/templates/maintenance-task.timer.j2 @@ -4,6 +4,7 @@ Description={{ description|default(name) }} [Timer] OnCalendar={{ frequency|default("daily") }} +RandomizedDelaySec=3600 [Install] WantedBy=multi-user.target -- GitLab