journal_upload: uploader drop-in with no start limit and 30s restarts so ingest outages do not end it
This commit is contained in:
@@ -1,4 +1,8 @@
|
|||||||
---
|
---
|
||||||
|
- name: Reload systemd manager
|
||||||
|
ansible.builtin.systemd:
|
||||||
|
daemon_reload: true
|
||||||
|
|
||||||
- name: Restart systemd-journal-upload
|
- name: Restart systemd-journal-upload
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
name: systemd-journal-upload
|
name: systemd-journal-upload
|
||||||
|
|||||||
@@ -49,6 +49,31 @@
|
|||||||
notify: Restart systemd-journal-upload
|
notify: Restart systemd-journal-upload
|
||||||
no_log: true
|
no_log: true
|
||||||
|
|
||||||
|
# The default start limit (5 starts within 10 seconds) gives up during an ingest outage. The
|
||||||
|
# uploader resumes from its cursor, so it keeps retrying.
|
||||||
|
- name: Create the uploader unit drop-in directory
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: /etc/systemd/system/systemd-journal-upload.service.d
|
||||||
|
state: directory
|
||||||
|
mode: "0755"
|
||||||
|
|
||||||
|
- name: Keep the uploader retrying through ingest outages
|
||||||
|
ansible.builtin.copy:
|
||||||
|
dest: /etc/systemd/system/systemd-journal-upload.service.d/restart.conf
|
||||||
|
mode: "0644"
|
||||||
|
content: |
|
||||||
|
[Unit]
|
||||||
|
StartLimitIntervalSec=0
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Restart=always
|
||||||
|
RestartSec=30s
|
||||||
|
notify: Reload systemd manager
|
||||||
|
|
||||||
|
# The reload has to precede the start below, which otherwise hits the default start limit.
|
||||||
|
- name: Load the uploader drop-in
|
||||||
|
ansible.builtin.meta: flush_handlers
|
||||||
|
|
||||||
- name: Enable the journal uploader
|
- name: Enable the journal uploader
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
name: systemd-journal-upload
|
name: systemd-journal-upload
|
||||||
|
|||||||
Reference in New Issue
Block a user