From a412e7161b6ddec48f409628ca2bc73c0191cd93 Mon Sep 17 00:00:00 2001 From: Sebastian Fleer Date: Wed, 13 Mar 2024 10:40:38 +0100 Subject: [PATCH] feat(postgresql): replace oom_killer with oom_score_adj Docker ignores OomKillDisable with cgroup v2 --- roles/postgresql/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/postgresql/tasks/main.yml b/roles/postgresql/tasks/main.yml index 9188949..d59a5b9 100644 --- a/roles/postgresql/tasks/main.yml +++ b/roles/postgresql/tasks/main.yml @@ -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"