97f9647b by Adam Heath

Add conf.d support, and enable unsafe but fast optimizations.

1 parent e9cf22df
...@@ -19,6 +19,12 @@ configMapGenerator: ...@@ -19,6 +19,12 @@ configMapGenerator:
19 - postgresql-pod_postgresql-pod.yaml=postgresql-pod/postgresql-pod.yaml 19 - postgresql-pod_postgresql-pod.yaml=postgresql-pod/postgresql-pod.yaml
20 - postgresql-pod_set-deployment-config_deployment-config.env=postgresql-pod/set-deployment-config/deployment-config.env 20 - postgresql-pod_set-deployment-config_deployment-config.env=postgresql-pod/set-deployment-config/deployment-config.env
21 - postgresql-pod_set-deployment-config_kustomization.yaml=postgresql-pod/set-deployment-config/kustomization.yaml 21 - postgresql-pod_set-deployment-config_kustomization.yaml=postgresql-pod/set-deployment-config/kustomization.yaml
22
23 - name: task-postgresql-conf-d
24 options:
25 disableNameSuffixHash: true
26 files:
27 - postgresql.conf.d/unsafe-fast.conf
22 - name: task-postgresql-scripts 28 - name: task-postgresql-scripts
23 options: 29 options:
24 disableNameSuffixHash: true 30 disableNameSuffixHash: true
......
...@@ -37,6 +37,9 @@ spec: ...@@ -37,6 +37,9 @@ spec:
37 volumes: 37 volumes:
38 - name: postgresql-data 38 - name: postgresql-data
39 emptyDir: {} 39 emptyDir: {}
40 - name: postgresql-confd
41 configMap:
42 name: task-postgresql-confd
40 containers: 43 containers:
41 - name: postgresql 44 - name: postgresql
42 image: bitnami/postgresql:14.1.0-debian-10-r66 45 image: bitnami/postgresql:14.1.0-debian-10-r66
...@@ -50,4 +53,7 @@ spec: ...@@ -50,4 +53,7 @@ spec:
50 volumeMounts: 53 volumeMounts:
51 - name: postgresql-data 54 - name: postgresql-data
52 mountPath: /bitnami/postgresql 55 mountPath: /bitnami/postgresql
56
57 - name: postgresql-confd
58 mountPath: /opt/bitnami/postgresql/conf/conf.d
53 --- 59 ---
......
1 fsync=off
2 random_page_cost=1
3 synchronous_commit=off
4 commit_delay=100000
5 wal_writer_delay=10000ms
6 wal_buffers=1MB