1
0
mirror of https://github.com/ArcticFoxes-net/Synapse-Ubuntu-ZFS synced 2024-11-18 00:21:32 -05:00

Add postgres optimizations

This commit is contained in:
Tommy 2023-08-25 17:37:31 -07:00 committed by GitHub
parent a77eff9e87
commit 7912a2547b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 1 deletions

View File

@ -1 +0,0 @@
full_page_writes = off

View 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

View 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