Skip to content

Commit

Permalink
PostgreSQL: set effective_cache_size and increase max_connections
Browse files Browse the repository at this point in the history
The first configuration change was found to be the critical parameter
during the Rocky Linux 9 migration. The second one was bumped during
the work on test122
  • Loading branch information
sbesson committed Jul 1, 2024
1 parent e90627c commit 089b725
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ansible/group_vars/database-hosts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,5 @@ postgresql_install_extensions: True

postgresql_server_conf:
shared_buffers: "{{ (ansible_memtotal_mb / 4) | int }}MB"
effective_cache_size: "{{ (ansible_memtotal_mb * 0.75 ) | int }}MB"
max_connections: 150

0 comments on commit 089b725

Please sign in to comment.