From 72f14d92d758bc5f15753335bbe8dc7b6a8227ab Mon Sep 17 00:00:00 2001 From: Matt Palmer Date: Fri, 16 Oct 2015 22:28:34 +1100 Subject: [PATCH] Adjust down the OOM score on PgSQL databases --- templates/postgres.template.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/postgres.template.yml b/templates/postgres.template.yml index 76fb51d..e48de01 100644 --- a/templates/postgres.template.yml +++ b/templates/postgres.template.yml @@ -36,6 +36,7 @@ run: contents: | #!/bin/sh exec 2>&1 + echo -1000 >/proc/self/oom_score_adj HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/9.3/bin/postmaster -D /etc/postgresql/9.3/main - file: -- 2.25.1