Introduce delay option for clusters not to reload at the same time

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-04-25 10:32:33 +02:00
parent 2bd9820d7d
commit 1e495581a1
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
2 changed files with 2 additions and 0 deletions

View file

@ -3,6 +3,7 @@
docker_compose_reload_minutes: 15 docker_compose_reload_minutes: 15
docker_compose_stop_action: down docker_compose_stop_action: down
docker_compose_validate: true docker_compose_validate: true
docker_compose_reload_max_delay: 0 # Have no delay, should be less than docker_compose_reload_minutes
docker_compose_config: docker_compose_config:
version: "3" version: "3"

View file

@ -118,6 +118,7 @@
[Timer] [Timer]
OnCalendar=*:0/{{ docker_compose_reload_minutes }} OnCalendar=*:0/{{ docker_compose_reload_minutes }}
RandomizedDelaySec={{ docker_compose_reload_max_delay }}
[Install] [Install]
WantedBy=timers.target WantedBy=timers.target