feat(postgresql): replace oom_killer with oom_score_adj

Docker ignores OomKillDisable with cgroup v2
This commit is contained in:
Sebastian Fleer 2024-03-13 10:40:38 +01:00
parent 77a823859f
commit a412e7161b
No known key found for this signature in database
GPG key ID: C24CB83D52ADE8D6

View file

@ -144,7 +144,7 @@
memory: "{{ postgresql_container_memory }}"
memory_swap: "{{ postgresql_container_memory_swap | default(omit) }}"
shm_size: "{{ postgresql_container_shm_size }}"
oom_killer: "{{ postgresql_container_oom_killer | default(omit) }}"
oom_score_adj: "{{ postgresql_container_oom_score_adj | default(omit) }}"
recreate: "{{ postgresql_container_recreate }}"
user: "{{ postgresql_user_res.uid }}:{{ postgresql_user_res.group }}"
restart_policy: "unless-stopped"