From: Matt Palmer Date: Fri, 16 Oct 2015 11:28:34 +0000 (+1100) Subject: Adjust down the OOM score on PgSQL databases X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=72f14d92d758bc5f15753335bbe8dc7b6a8227ab;p=discourse_docker.git Adjust down the OOM score on PgSQL databases --- 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: