X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/f1f0af5f339a3c3f3f510eaad8296fb6d7e5b779..dcedd2b079eb2b695c4febe9941f1a052ceafa0f:/cookbooks/postgresql/attributes/default.rb?ds=sidebyside diff --git a/cookbooks/postgresql/attributes/default.rb b/cookbooks/postgresql/attributes/default.rb index fd1afcea1..aa3e4b8ac 100644 --- a/cookbooks/postgresql/attributes/default.rb +++ b/cookbooks/postgresql/attributes/default.rb @@ -1,6 +1,7 @@ default[:postgresql][:versions] = [] default[:postgresql][:clusters] = {} -default[:postgresql][:monitor_tables] = true +default[:postgresql][:monitor_database] = "postgres" +default[:postgresql][:monitor_queries] = false default[:postgresql][:settings][:defaults][:port] = "5432" default[:postgresql][:settings][:defaults][:max_connections] = "100" default[:postgresql][:settings][:defaults][:ssl] = "true" @@ -9,11 +10,11 @@ default[:postgresql][:settings][:defaults][:temp_buffers] = "8MB" default[:postgresql][:settings][:defaults][:work_mem] = "4MB" default[:postgresql][:settings][:defaults][:maintenance_work_mem] = "64MB" default[:postgresql][:settings][:defaults][:max_stack_depth] = "2MB" -default[:postgresql][:settings][:defaults][:effective_io_concurrency] = "1" +default[:postgresql][:settings][:defaults][:effective_io_concurrency] = "256" 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][:wal_level] = "replica" default[:postgresql][:settings][:defaults][:fsync] = "on" default[:postgresql][:settings][:defaults][:synchronous_commit] = "on" default[:postgresql][:settings][:defaults][:wal_buffers] = "-1" @@ -26,9 +27,11 @@ default[:postgresql][:settings][:defaults][:min_wal_size] = "80MB" default[:postgresql][:settings][:defaults][:archive_mode] = "off" default[:postgresql][:settings][:defaults][:max_wal_senders] = "10" default[:postgresql][:settings][:defaults][:max_replication_slots] = "10" +default[:postgresql][:settings][:defaults][:wal_keep_size] = "0" default[:postgresql][:settings][:defaults][:hot_standby] = "on" default[:postgresql][:settings][:defaults][:hot_standby_feedback] = "off" -default[:postgresql][:settings][:defaults][:random_page_cost] = "4.0" +default[:postgresql][:settings][:defaults][:seq_page_cost] = "1.0" +default[:postgresql][:settings][:defaults][:random_page_cost] = "1.1" default[:postgresql][:settings][:defaults][:cpu_tuple_cost] = "0.01" default[:postgresql][:settings][:defaults][:effective_cache_size] = "4GB" default[:postgresql][:settings][:defaults][:default_statistics_target] = "100"