Skip to content

Commit 97083d9

Browse files
pablomhehelms
authored andcommitted
Bump default PostgreSQL shared_buffers to 512MB
The value used by default by the container image is 32MB. The chosen value matches https://github.com/theforeman/foreman-installer/blob/develop/config/foreman.hiera/tuning/common.yaml#L14
1 parent c9a1384 commit 97083d9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/roles/postgresql/defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ postgresql_data_dir: /var/lib/pgsql/data
1010
postgresql_admin_password: "CHANGEME"
1111

1212
postgresql_max_connections: 500
13+
postgresql_shared_buffers: 512MB

src/roles/postgresql/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
- 'postgresql_admin_password,target=POSTGRESQL_ADMIN_PASSWORD,type=env'
3434
env:
3535
POSTGRESQL_MAX_CONNECTIONS: "{{ postgresql_max_connections }}"
36+
POSTGRESQL_SHARED_BUFFERS: "{{ postgresql_shared_buffers }}"
3637
quadlet_options:
3738
- |
3839
[Install]

0 commit comments

Comments
 (0)