-node.default[:postgresql][:settings][database_version][:max_connections] = 500
-node.default[:postgresql][:settings][database_version][:shared_buffers] = "#{memory_gb / 4}GB"
-node.default[:postgresql][:settings][database_version][:work_mem] = "#{memory_gb * 128 / 50 / node[:cpu][:total]}MB"
-node.default[:postgresql][:settings][database_version][:maintenance_work_mem] = "2GB"
-node.default[:postgresql][:settings][database_version][:effective_io_concurrency] = "200"
-node.default[:postgresql][:settings][database_version][:max_worker_processes] = node[:cpu][:total] + node[:timescaledb][:max_background_workers] + 3
-node.default[:postgresql][:settings][database_version][:max_parallel_workers_per_gather] = node[:cpu][:total] / 2
-node.default[:postgresql][:settings][database_version][:max_parallel_workers] = node[:cpu][:total]
-node.default[:postgresql][:settings][database_version][:wal_buffers] = "16MB"
-node.default[:postgresql][:settings][database_version][:max_wal_size] = "1GB"
-node.default[:postgresql][:settings][database_version][:min_wal_size] = "512MB"
-node.default[:postgresql][:settings][database_version][:checkpoint_completion_target] = "0.9"
-node.default[:postgresql][:settings][database_version][:random_page_cost] = "1.1"
-node.default[:postgresql][:settings][database_version][:effective_cache_size] = "#{memory_gb * 3 / 4}GB"
-node.default[:postgresql][:settings][database_version][:default_statistics_target] = "500"
-node.default[:postgresql][:settings][database_version][:autovacuum_max_workers] = "10"
-node.default[:postgresql][:settings][database_version][:autovacuum_naptime] = "10"