From 02da1cc9b3ef076994b52ef8ec59e9c791898218 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 13 Dec 2016 14:54:14 +1100 Subject: [PATCH] some more db tuning --- image/discourse_dev/postgres_dev.template.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/image/discourse_dev/postgres_dev.template.yml b/image/discourse_dev/postgres_dev.template.yml index 58831e8..ef40a45 100644 --- a/image/discourse_dev/postgres_dev.template.yml +++ b/image/discourse_dev/postgres_dev.template.yml @@ -1,4 +1,15 @@ run: + + - replace: + filename: "/etc/postgresql/9.5/main/postgresql.conf" + from: /#?fullpage_writes *=.*/ + to: "fullpage_writes = off" + + - replace: + filename: "/etc/postgresql/9.5/main/postgresql.conf" + from: /#?fsync *=.*/ + to: "fsync = off" + - exec: background: true # use fast shutdown for pg -- 2.25.1