@@ -101,19 +101,19 @@ postgresql_extensions: []
101
101
102
102
# postgresql parameters to bootstrap dcs (are parameters for example)
103
103
postgresql_parameters :
104
- - {option: "max_connections", value: "100 "}
104
+ - {option: "max_connections", value: "300 "}
105
105
- {option: "superuser_reserved_connections", value: "5"}
106
106
- {option: "max_locks_per_transaction", value: "64"} # raise this value (ex. 512) if you have queries that touch many different tables (partitioning)
107
107
- {option: "max_prepared_transactions", value: "0"}
108
108
- {option: "huge_pages", value: "try"} # or "on" if you set "vm_nr_hugepages" in kernel parameters
109
- - {option: "shared_buffers", value: "512MB "} # please change this value
109
+ - {option: "shared_buffers", value: "20GB "} # please change this value
110
110
- {option: "work_mem", value: "128MB"} # please change this value
111
111
- {option: "maintenance_work_mem", value: "256MB"} # please change this value
112
- - {option: "effective_cache_size", value: "4GB "} # please change this value
113
- - {option: "checkpoint_timeout", value: "15min "}
112
+ - {option: "effective_cache_size", value: "40GB "} # please change this value
113
+ - {option: "checkpoint_timeout", value: "30min "}
114
114
- {option: "checkpoint_completion_target", value: "0.9"}
115
115
- {option: "min_wal_size", value: "2GB"} # for PostgreSQL 9.5 and above (for 9.4 use "checkpoint_segments")
116
- - {option: "max_wal_size", value: "4GB "} # for PostgreSQL 9.5 and above (for 9.4 use "checkpoint_segments")
116
+ - {option: "max_wal_size", value: "64GB "} # for PostgreSQL 9.5 and above (for 9.4 use "checkpoint_segments")
117
117
- {option: "wal_buffers", value: "32MB"}
118
118
- {option: "default_statistics_target", value: "1000"}
119
119
- {option: "seq_page_cost", value: "1"}
@@ -133,13 +133,14 @@ postgresql_parameters:
133
133
- {option: "archive_command", value: "cd ."} # not doing anything yet with WAL-s
134
134
# - {option: "archive_command", value: "wal-g wal-push %p"} # archive WAL-s using WAL-G
135
135
# - {option: "archive_command", value: "pgbackrest --stanza={{ pgbackrest_stanza }} archive-push %p"} # archive WAL-s using pgbackrest
136
- - {option: "wal_level", value: "replica "} # "replica" for PostgreSQL 9.6 and above (for 9.4, 9.5 use "hot_standby")
136
+ - {option: "wal_level", value: "logical "} # "replica" for PostgreSQL 9.6 and above (for 9.4, 9.5 use "hot_standby")
137
137
- {option: "wal_keep_segments", value: "130"}
138
+ - {option: "wal_compression", value: "on"}
138
139
- {option: "max_wal_senders", value: "10"}
139
140
- {option: "max_replication_slots", value: "10"}
140
141
- {option: "hot_standby", value: "on"}
141
142
- {option: "wal_log_hints", value: "on"}
142
- - {option: "shared_preload_libraries", value: "pg_stat_statements,auto_explain "}
143
+ - {option: "shared_preload_libraries", value: "pg_stat_statements,pg_stat_kcache,pg_wait_sampling "}
143
144
- {option: "pg_stat_statements.max", value: "10000"}
144
145
- {option: "pg_stat_statements.track", value: "all"}
145
146
- {option: "pg_stat_statements.save", value: "off"}
0 commit comments