Commit a2fd81c7 authored by Jan Alexander Steffens (heftig)'s avatar Jan Alexander Steffens (heftig) Committed by Kristian Klausen
Browse files

roles/loki: Install custom OOM configuration

- When loki hits 5.5G RSS, aggressively reclaim its memory. This puts
  it under memory pressure.
- When loki hits 6G RSS, invoke the kernel OOM killer.
- When loki is under severe memory pressure, have systemd-oomd kill it.
parent 698a28c6
......@@ -17,5 +17,11 @@
- name: open firewall hole
ansible.posix.firewalld: service=http zone=wireguard permanent=true state=enabled immediate=yes
- name: create drop-in directory for loki
file: path=/etc/systemd/system/loki.service.d state=directory owner=root group=root mode=0755
- name: install drop-in snippet for loki
copy: src=loki-override.conf dest=/etc/systemd/system/loki.service.d/override.conf owner=root group=root mode=0644
- name: start and enable loki
systemd: name=loki.service enabled=yes daemon_reload=yes state=started
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment