mirror of
https://github.com/ArcticFoxes-net/Synapse-Ubuntu-ZFS
synced 2024-12-21 23:31:34 -05:00
Add postgres optimizations
This commit is contained in:
parent
a77eff9e87
commit
7912a2547b
@ -1 +0,0 @@
|
||||
full_page_writes = off
|
11
etc/postgresql/15/main/conf.d/optimizations-general.conf
Normal file
11
etc/postgresql/15/main/conf.d/optimizations-general.conf
Normal file
@ -0,0 +1,11 @@
|
||||
# https://vadosware.io/post/everything-ive-seen-on-optimizing-postgres-on-zfs-on-linux/
|
||||
# https://www.percona.com/sites/default/files/presentations/pg-Performance-Tuning.pdf
|
||||
|
||||
shared_buffers = 6GB
|
||||
work_mem = 1GB
|
||||
maintenance_work_mem = 1GB
|
||||
effective_io_concurrency = 100
|
||||
max_worker_processes = 12
|
||||
max_parallel_workers = 12
|
||||
max_parellel_workers_per_gather = 3
|
||||
max_parellel_workers_per_gather = 3
|
6
etc/postgresql/15/main/conf.d/optimizations-zfs.conf
Normal file
6
etc/postgresql/15/main/conf.d/optimizations-zfs.conf
Normal file
@ -0,0 +1,6 @@
|
||||
# https://vadosware.io/post/everything-ive-seen-on-optimizing-postgres-on-zfs-on-linux/
|
||||
|
||||
full_page_writes = off
|
||||
wal_init_zero = off
|
||||
wal_recycle = off
|
||||
effective_cache_size = 32GB
|
Loading…
Reference in New Issue
Block a user