update pg config according to pgtune + pleroma docs

This commit is contained in:
red 2025-06-08 19:35:35 -04:00
parent 0fbf0e398f
commit d67d15fcf3

View file

@ -30,19 +30,20 @@ data:
# DB Version: 17 # DB Version: 17
# OS Type: linux # OS Type: linux
# DB Type: web # DB Type: web
# Total Memory (RAM): 4 GB # Total Memory (RAM): 8 GB
# Connections num: 20
# Data Storage: ssd # Data Storage: ssd
max_connections = 200 max_connections = 20
shared_buffers = 1GB shared_buffers = 2GB
effective_cache_size = 3GB effective_cache_size = 6GB
maintenance_work_mem = 256MB maintenance_work_mem = 512MB
checkpoint_completion_target = 0.9 checkpoint_completion_target = 0.9
wal_buffers = 16MB wal_buffers = 16MB
default_statistics_target = 100 default_statistics_target = 100
random_page_cost = 1.1 random_page_cost = 1.1
effective_io_concurrency = 200 effective_io_concurrency = 200
work_mem = 5041kB work_mem = 74898kB
huge_pages = off huge_pages = off
min_wal_size = 1GB min_wal_size = 1GB
max_wal_size = 4GB max_wal_size = 4GB