retrace: lower the db caches
This commit is contained in:
parent
04c1e67dc2
commit
86566f37f4
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue