some more db tuning
authorSam <sam.saffron@gmail.com>
Tue, 13 Dec 2016 03:54:14 +0000 (14:54 +1100)
committerSam <sam.saffron@gmail.com>
Tue, 13 Dec 2016 03:54:14 +0000 (14:54 +1100)
image/discourse_dev/postgres_dev.template.yml

index 58831e859207baf7f773a94541bc065ad9bb1e07..ef40a45b10c1bd15cbb8bc83250e31e1bdc29b4c 100644 (file)
@@ -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