Skip to content
Snippets Groups Projects
Commit 7ee92dd8 authored by Dan Notestein's avatar Dan Notestein
Browse files

autovacuum settings that can only be set in postgres.conf, reduce default...

autovacuum settings that can only be set in postgres.conf, reduce default work_mem to 64MB, plus small tweaks
parent b7870f22
No related branches found
No related tags found
4 merge requests!627merge in fix for get_current_block_age,!626Fix get_current_block_age function to avoid healthcheck fails,!622merge develop to master,!605autovacuum settings that can only be set in postgres.conf, reduce default work_mem to 64MB, plus small tweaks
Pipeline #114371 passed
...@@ -119,7 +119,6 @@ max_connections = 100 # (change requires restart) ...@@ -119,7 +119,6 @@ max_connections = 100 # (change requires restart)
# - Memory - # - Memory -
shared_buffers = 128MB # min 128kB
# (change requires restart) # (change requires restart)
#huge_pages = try # on, off, or try #huge_pages = try # on, off, or try
# (change requires restart) # (change requires restart)
...@@ -222,8 +221,8 @@ dynamic_shared_memory_type = posix # the default is the first option ...@@ -222,8 +221,8 @@ dynamic_shared_memory_type = posix # the default is the first option
# - Checkpoints - # - Checkpoints -
#checkpoint_timeout = 5min # range 30s-1d #checkpoint_timeout = 5min # range 30s-1d
max_wal_size = 1GB max_wal_size = 12GB
min_wal_size = 80MB min_wal_size = 1GB
#checkpoint_completion_target = 0.5 # checkpoint target duration, 0.0 - 1.0 #checkpoint_completion_target = 0.5 # checkpoint target duration, 0.0 - 1.0
#checkpoint_flush_after = 256kB # measured in pages, 0 disables #checkpoint_flush_after = 256kB # measured in pages, 0 disables
#checkpoint_warning = 30s # 0 disables #checkpoint_warning = 30s # 0 disables
...@@ -788,11 +787,11 @@ external_pid_file = '/var/run/postgresql/17-main.pid' # write an extra PID fil ...@@ -788,11 +787,11 @@ external_pid_file = '/var/run/postgresql/17-main.pid' # write an extra PID fil
idle_in_transaction_session_timeout=60000 #ms idle_in_transaction_session_timeout=60000 #ms
shared_buffers = 16GB shared_buffers = 16GB
effective_cache_size = 8GB effective_cache_size = 16GB
maintenance_work_mem = 4GB maintenance_work_mem = 4GB
work_mem = 1024MB work_mem = 64MB
checkpoint_completion_target = 0.8 checkpoint_completion_target = 0.9
checkpoint_timeout = 60min checkpoint_timeout = 60min
wal_buffers = 512MB wal_buffers = 512MB
...@@ -807,6 +806,10 @@ max_wal_senders = 0 ...@@ -807,6 +806,10 @@ max_wal_senders = 0
# Set to 4 to build indexes faster # Set to 4 to build indexes faster
max_parallel_maintenance_workers = 4 max_parallel_maintenance_workers = 4
# these have to be set in postgresql.conf, cannot be set later
autovacuum_max_workers = 5
autovacuum_vacuum_cost_limit = 5000
# Allows overriding above configuration settings # Allows overriding above configuration settings
# include files ending in '.conf' from # include files ending in '.conf' from
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment