updated customPostgresql.conf to match pi hardware

This commit is contained in:
AreaOfZero 2023-06-27 07:04:08 +00:00
parent e0369a5afc
commit 924ad20d87

View file

@ -1,24 +1,44 @@
# DB Version: 15 # Generated by PGConfig 3.1.0 (1d600ea0d1d79f13dd7ed686f9e2befc1fcf9226)
# OS Type: linux # https://api.pgconfig.org/v1/tuning/get-config?format=conf&include_pgbadger=true&log_format=csvlog&max_connections=200&pg_version=15&environment_name=WEB&total_ram=4GB&cpus=4&drive_type=SSD&arch=x86-64&os_type=linux
# DB Type: web
# Total Memory (RAM): 8 GB
# CPUs num: 4
# Data Storage: ssd
max_connections = 200 # Memory Configuration
shared_buffers = 2GB shared_buffers = 1GB
effective_cache_size = 6GB effective_cache_size = 3GB
maintenance_work_mem = 512MB work_mem = 5MB
maintenance_work_mem = 205MB
# Checkpoint Related Configuration
min_wal_size = 2GB
max_wal_size = 3GB
checkpoint_completion_target = 0.9 checkpoint_completion_target = 0.9
checkpoint_timeout = 86400 wal_buffers = -1
wal_buffers = 16MB
default_statistics_target = 100 # Network Related Configuration
listen_addresses = '*'
max_connections = 200
# Storage Configuration
random_page_cost = 1.1 random_page_cost = 1.1
effective_io_concurrency = 200 effective_io_concurrency = 200
work_mem = 5242kB
min_wal_size = 1GB # Worker Processes Configuration
max_wal_size = 30GB max_worker_processes = 8
max_worker_processes = 4
max_parallel_workers_per_gather = 2 max_parallel_workers_per_gather = 2
max_parallel_workers = 4 max_parallel_workers = 2
max_parallel_maintenance_workers = 2
# Logging configuration for pgbadger
logging_collector = on
log_checkpoints = on
log_connections = on
log_disconnections = on
log_lock_waits = on
log_temp_files = 0
lc_messages = 'C'
# Adjust the minimum time to collect the data
log_min_duration_statement = '10s'
log_autovacuum_min_duration = 0
# CSV Configuration
log_destination = 'csvlog'