X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/a68381ff0b21ebe57d7cef919c34c4e31460bc45..f1cfd16d358496bafb94dfc8c40585fdc6567963:/cookbooks/postgresql/attributes/default.rb?ds=inline diff --git a/cookbooks/postgresql/attributes/default.rb b/cookbooks/postgresql/attributes/default.rb index c7eeecff8..770c0dbea 100644 --- a/cookbooks/postgresql/attributes/default.rb +++ b/cookbooks/postgresql/attributes/default.rb @@ -1,5 +1,6 @@ default[:postgresql][:versions] = [] default[:postgresql][:clusters] = {} +default[:postgresql][:monitor_tables] = true default[:postgresql][:settings][:defaults][:port] = "5432" default[:postgresql][:settings][:defaults][:max_connections] = "100" default[:postgresql][:settings][:defaults][:ssl] = "true" @@ -9,6 +10,9 @@ default[:postgresql][:settings][:defaults][:work_mem] = "1MB" default[:postgresql][:settings][:defaults][:maintenance_work_mem] = "16MB" default[:postgresql][:settings][:defaults][:max_stack_depth] = "2MB" default[:postgresql][:settings][:defaults][:effective_io_concurrency] = "1" +default[:postgresql][:settings][:defaults][:max_worker_processes] = "8" +default[:postgresql][:settings][:defaults][:max_parallel_workers_per_gather] = "2" +default[:postgresql][:settings][:defaults][:max_parallel_workers] = "8" default[:postgresql][:settings][:defaults][:wal_level] = "minimal" default[:postgresql][:settings][:defaults][:fsync] = "on" default[:postgresql][:settings][:defaults][:synchronous_commit] = "on" @@ -28,12 +32,19 @@ default[:postgresql][:settings][:defaults][:hot_standby_feedback] = "off" default[:postgresql][:settings][:defaults][:random_page_cost] = "4.0" default[:postgresql][:settings][:defaults][:cpu_tuple_cost] = "0.01" default[:postgresql][:settings][:defaults][:effective_cache_size] = "128MB" +default[:postgresql][:settings][:defaults][:default_statistics_target] = "100" default[:postgresql][:settings][:defaults][:jit] = "on" default[:postgresql][:settings][:defaults][:log_min_duration_statement] = "-1" default[:postgresql][:settings][:defaults][:track_activity_query_size] = "1024" +default[:postgresql][:settings][:defaults][:log_autovacuum_min_duration] = "-1" default[:postgresql][:settings][:defaults][:autovacuum_max_workers] = "3" +default[:postgresql][:settings][:defaults][:autovacuum_naptime] = "1min" default[:postgresql][:settings][:defaults][:autovacuum_vacuum_scale_factor] = "0.2" default[:postgresql][:settings][:defaults][:autovacuum_analyze_scale_factor] = "0.1" +default[:postgresql][:settings][:defaults][:autovacuum_freeze_max_age] = "200000000" +default[:postgresql][:settings][:defaults][:autovacuum_multixact_freeze_max_age] = "400000000" +default[:postgresql][:settings][:defaults][:shared_preload_libraries] = [] +default[:postgresql][:settings][:defaults][:max_locks_per_transaction] = "64" default[:postgresql][:settings][:defaults][:user_name_maps] = {} default[:postgresql][:settings][:defaults][:early_authentication_rules] = [] default[:postgresql][:settings][:defaults][:late_authentication_rules] = []