retrace: lower the db caches

This commit is contained in:
Miroslav Suchý 2019-07-15 13:11:38 +02:00
parent 04c1e67dc2
commit 86566f37f4

View file

@ -10,21 +10,21 @@
lineinfile:
path: /var/lib/pgsql/data/postgresql.conf
regexp: '^shared_buffers ='
line: 'shared_buffers = 33536MB'
line: 'shared_buffers = 25536MB'
notify: restart postgresql
- name: set effective_cache_size for PostgreSQL
lineinfile:
path: /var/lib/pgsql/data/postgresql.conf
regexp: '^effective_cache_size ='
line: 'effective_cache_size = 100608MB'
line: 'effective_cache_size = 50608MB'
notify: restart postgresql
- name: set work_mem for PostgreSQL
lineinfile:
path: /var/lib/pgsql/data/postgresql.conf
regexp: '^work_mem ='
line: 'work_mem = 8MB'
line: 'work_mem = 6MB'
notify: restart postgresql
- name: set maintenance_work_mem for PostgreSQL