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:
parent
ad7f042266
commit
176ce60e33
2 changed files with 18 additions and 0 deletions
10
files/debuginfod/debuginfod.service.d
Normal file
10
files/debuginfod/debuginfod.service.d
Normal 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
|
||||||
|
|
|
@ -41,6 +41,14 @@
|
||||||
- name: install debuginfod configuration
|
- name: install debuginfod configuration
|
||||||
copy: src="{{ files }}/debuginfod/sysconfig.debuginfod" dest=/etc/sysconfig/debuginfod owner=root group=root mode=644
|
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
|
- name: ensure debuginfod is enabled and started
|
||||||
service:
|
service:
|
||||||
name: debuginfod
|
name: debuginfod
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue