These are based off of the osm2pgsql.org recommendations, scaled
for the larger servers we run, as well as experience running
PostgreSQL in a large variety of environments.
:postgresql => {
:settings => {
:defaults => {
:postgresql => {
:settings => {
:defaults => {
- :shared_buffers => "8GB",
- :maintenance_work_mem => "7144MB",
:effective_cache_size => "16GB"
}
}
:effective_cache_size => "16GB"
}
}
:postgresql => {
:settings => {
:defaults => {
:postgresql => {
:settings => {
:defaults => {
- :shared_buffers => "8GB",
- :maintenance_work_mem => "7144MB",
:effective_cache_size => "16GB"
}
}
:effective_cache_size => "16GB"
}
}
:postgresql => {
:settings => {
:defaults => {
:postgresql => {
:settings => {
:defaults => {
- :shared_buffers => "8GB",
- :maintenance_work_mem => "7144MB",
:effective_cache_size => "16GB"
}
}
:effective_cache_size => "16GB"
}
}
:postgresql => {
:settings => {
:defaults => {
:postgresql => {
:settings => {
:defaults => {
- :shared_buffers => "8GB",
- :maintenance_work_mem => "7144MB",
:effective_cache_size => "16GB"
}
}
:effective_cache_size => "16GB"
}
}
:postgresql => {
:settings => {
:defaults => {
:postgresql => {
:settings => {
:defaults => {
- :shared_buffers => "8GB",
- :maintenance_work_mem => "7144MB",
:effective_cache_size => "16GB"
}
}
:effective_cache_size => "16GB"
}
}
:postgresql => {
:settings => {
:defaults => {
:postgresql => {
:settings => {
:defaults => {
- :shared_buffers => "8GB",
- :maintenance_work_mem => "7144MB",
:effective_cache_size => "16GB"
}
}
:effective_cache_size => "16GB"
}
}
:postgresql => {
:settings => {
:defaults => {
:postgresql => {
:settings => {
:defaults => {
- :shared_buffers => "8GB",
- :maintenance_work_mem => "7144MB",
:effective_cache_size => "16GB"
}
}
:effective_cache_size => "16GB"
}
}
:postgresql => {
:settings => {
:defaults => {
:postgresql => {
:settings => {
:defaults => {
- :shared_buffers => "8GB",
- :maintenance_work_mem => "7144MB",
:effective_cache_size => "16GB"
}
}
:effective_cache_size => "16GB"
}
}
:settings => {
:defaults => {
:max_connections => "250",
:settings => {
:defaults => {
:max_connections => "250",
- :temp_buffers => "32MB",
+ :shared_buffers => "16GB",
+ :maintenance_work_mem => "8GB",
:max_parallel_workers_per_gather => "0",
:wal_level => "minimal",
:wal_buffers => "1024kB",
:wal_writer_delay => "500ms",
:max_parallel_workers_per_gather => "0",
:wal_level => "minimal",
:wal_buffers => "1024kB",
:wal_writer_delay => "500ms",
+ :checkpoint_timeout => "60min"
:commit_delay => "10000",
:commit_delay => "10000",
- :max_wal_size => "2880MB",
+ :max_wal_size => "10GB",
:max_wal_senders => "0",
:jit => "off",
:track_activity_query_size => "16384",
:max_wal_senders => "0",
:jit => "off",
:track_activity_query_size => "16384",
:postgresql => {
:settings => {
:defaults => {
:postgresql => {
:settings => {
:defaults => {
- :shared_buffers => "8GB",
- :maintenance_work_mem => "7144MB",
:effective_cache_size => "16GB"
}
}
:effective_cache_size => "16GB"
}
}