Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set reasonable PostgreSQL GUCs for tile servers #614

Merged
merged 1 commit into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're going to drop this from the per-server configuration do we not want to add a shared setting? Otherwise it will drop to the 64Mb default?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a rebase mistake wiped out that change

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a rebase mistake wiped out that change

: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",
tomhughes marked this conversation as resolved.
Show resolved Hide resolved
:work_mem => "128MB",
:maintenance_work_mem => "8GB",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is also currently configured on a per-server basis.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've got cases where it's configured both on a role level and a server level. I'll remove the setting of it for many of the servers where the defaults make sense.

: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
Loading