Skip to content

Commit

Permalink
Set reasonable PostgreSQL GUCs for tile servers
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pnorman committed Sep 14, 2023
1 parent 200d328 commit 90bd81a
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 20 deletions.
2 changes: 0 additions & 2 deletions roles/balerion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
:postgresql => {
:settings => {
:defaults => {
:shared_buffers => "8GB",
:maintenance_work_mem => "7144MB",
:effective_cache_size => "16GB"
}
}
Expand Down
2 changes: 0 additions & 2 deletions roles/bowser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
:postgresql => {
:settings => {
:defaults => {
:shared_buffers => "8GB",
:maintenance_work_mem => "7144MB",
:effective_cache_size => "16GB"
}
}
Expand Down
2 changes: 0 additions & 2 deletions roles/culebre.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
:postgresql => {
:settings => {
:defaults => {
:shared_buffers => "8GB",
:maintenance_work_mem => "7144MB",
:effective_cache_size => "16GB"
}
}
Expand Down
2 changes: 0 additions & 2 deletions roles/nidhogg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
:postgresql => {
:settings => {
:defaults => {
:shared_buffers => "8GB",
:maintenance_work_mem => "7144MB",
:effective_cache_size => "16GB"
}
}
Expand Down
2 changes: 0 additions & 2 deletions roles/odin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
:postgresql => {
:settings => {
:defaults => {
:shared_buffers => "8GB",
:maintenance_work_mem => "7144MB",
:effective_cache_size => "16GB"
}
}
Expand Down
2 changes: 0 additions & 2 deletions roles/palulukon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
:postgresql => {
:settings => {
:defaults => {
:shared_buffers => "8GB",
:maintenance_work_mem => "7144MB",
:effective_cache_size => "16GB"
}
}
Expand Down
2 changes: 0 additions & 2 deletions roles/piasa.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
:postgresql => {
:settings => {
:defaults => {
:shared_buffers => "8GB",
:maintenance_work_mem => "7144MB",
:effective_cache_size => "16GB"
}
}
Expand Down
2 changes: 0 additions & 2 deletions roles/pyrene.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
:postgresql => {
:settings => {
:defaults => {
:shared_buffers => "8GB",
:maintenance_work_mem => "7144MB",
:effective_cache_size => "16GB"
}
}
Expand Down
6 changes: 4 additions & 2 deletions roles/tile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,16 @@
:settings => {
:defaults => {
:max_connections => "250",
:temp_buffers => "32MB",
:shared_buffers => "16GB",
:work_mem => "128MB",
:maintenance_work_mem => "8GB",
:max_parallel_workers_per_gather => "0",
:wal_level => "minimal",
:wal_buffers => "1024kB",
:wal_writer_delay => "500ms",
:checkpoint_timeout => "60min"
:commit_delay => "10000",
:max_wal_size => "2880MB",
:max_wal_size => "10GB",
:max_wal_senders => "0",
:jit => "off",
:track_activity_query_size => "16384",
Expand Down
2 changes: 0 additions & 2 deletions roles/ysera.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
:postgresql => {
:settings => {
:defaults => {
:shared_buffers => "8GB",
:maintenance_work_mem => "7144MB",
:effective_cache_size => "16GB"
}
}
Expand Down

0 comments on commit 90bd81a

Please sign in to comment.