debuginfod: add systemd drop-in tweaks

Already in effect on prod & stg, formalize these configuration tweaks
that limit overload, improve cgroup monitoring, and build tolerance to
transient fileserver problems.
This commit is contained in:
Frank Ch. Eigler 2021-11-16 09:22:13 -05:00 committed by kevin
parent ad7f042266
commit 176ce60e33
2 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,10 @@
[Service]
TasksMax=40
CPUAccounting=yes
IOAccounting=yes
IPAccounting=yes
BlockIOAccounting=yes
MemoryAccounting=yes
TasksAccounting=yes
ConditionPathExists=/mnt/fedora_koji_prod/koji/packages

View file

@ -41,6 +41,14 @@
- name: install debuginfod configuration
copy: src="{{ files }}/debuginfod/sysconfig.debuginfod" dest=/etc/sysconfig/debuginfod owner=root group=root mode=644
- name: ensure systemd drop-in directory exists
file: >
dest=/etc/systemd/system/debuginfod.service.d
state=directory
- name: install debuginfod systemd drop-in
copy: src="{{ files }}/debuginfod/debuginfod.service.d" dest=/etc/systemd/system/debuginfod.service.d/override.conf owner=root group=root mode=644
- name: ensure debuginfod is enabled and started
service:
name: debuginfod