97f9647b by Adam Heath

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

1 parent e9cf22df
......@@ -19,6 +19,12 @@ configMapGenerator:
- postgresql-pod_postgresql-pod.yaml=postgresql-pod/postgresql-pod.yaml
- postgresql-pod_set-deployment-config_deployment-config.env=postgresql-pod/set-deployment-config/deployment-config.env
- postgresql-pod_set-deployment-config_kustomization.yaml=postgresql-pod/set-deployment-config/kustomization.yaml
- name: task-postgresql-conf-d
options:
disableNameSuffixHash: true
files:
- postgresql.conf.d/unsafe-fast.conf
- name: task-postgresql-scripts
options:
disableNameSuffixHash: true
......
......@@ -37,6 +37,9 @@ spec:
volumes:
- name: postgresql-data
emptyDir: {}
- name: postgresql-confd
configMap:
name: task-postgresql-confd
containers:
- name: postgresql
image: bitnami/postgresql:14.1.0-debian-10-r66
......@@ -50,4 +53,7 @@ spec:
volumeMounts:
- name: postgresql-data
mountPath: /bitnami/postgresql
- name: postgresql-confd
mountPath: /opt/bitnami/postgresql/conf/conf.d
---
......
fsync=off
random_page_cost=1
synchronous_commit=off
commit_delay=100000
wal_writer_delay=10000ms
wal_buffers=1MB