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:
parent
7c74eebe65
commit
16076c620b
2 changed files with 8 additions and 0 deletions
2
roles/openqa/dispatcher/files/fmconsumer.restartsec.conf
Normal file
2
roles/openqa/dispatcher/files/fmconsumer.restartsec.conf
Normal file
|
@ -0,0 +1,2 @@
|
|||
[Service]
|
||||
RestartSec=60
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue