Explorar el Código

loosen up systemd-oomd on linodes

Blaine Story hace 2 años
padre
commit
62d0ad6c37
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. 7 0
      roles/linode/tasks/main.yml

+ 7 - 0
roles/linode/tasks/main.yml

@@ -30,6 +30,13 @@
   when:
     - ansible_os_family == 'Fedora'
 
+- name: Loosen up systemd-oomd defaults
+  lineinfile:
+    path: /etc/systemd/oomd.conf
+    regexp: '^DefaultMemoryPressureLimit='
+    insertafter: '^#DefaultMemoryPressureLimit='
+    line: DefaultMemoryPressureLimit=80%
+
 - name: Install fail2ban
   package:
     name: fail2ban