openqa: Slow fm-consumer@ service restarts to every 60 secs

This is to reduce a flood of errors happening when servers the
consumers communicate with go down.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2020-01-06 18:09:42 -08:00 committed by Pierre-Yves Chibon
parent 7c74eebe65
commit 16076c620b
2 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1,2 @@
[Service]
RestartSec=60

View file

@ -358,6 +358,12 @@
service: name=fm-consumer@fedora_openqa_resultsdb_reporter enabled=yes state=started
when: "openqa_amqp_resultsdb_reporter_queue is defined and openqa_amqp_resultsdb_reporter_queue"
# This slows restarts of fm-consumer@ to every 60 seconds, instead of
# near-instantly; this avoids huge floods of errors when resultsdb
# or the wiki go down for a bit
- name: Consumer service config drop-in to slow down restarts
copy: src=fmconsumer.restartsec.conf dest=/etc/systemd/system/fm-consumer@.d/10-restartsec.conf owner=root group=root mode=0644
- name: Set up cron job to schedule live-respins jobs
copy: src=schedule-live-respins.cron dest=/etc/cron.hourly/schedule-live-respins owner=root group=root mode=0755
tags: