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

Conversation

pnorman
Copy link
Collaborator

@pnorman pnorman commented Sep 12, 2023

These are based off of the osm2pgsql.org recommendations, scaled for the larger servers we run, as well as experience.

This should be merged after #613 and apply cleanly. If it doesn't apply cleanly, I'll rebase.

@tomhughes
Copy link
Member

What is a GUC exactly?

roles/tile.rb 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.

@pnorman
Copy link
Collaborator Author

pnorman commented Sep 14, 2023

What is a GUC exactly?

PostgreSQL configuration parameter

@@ -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

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.
@pnorman pnorman requested a review from tomhughes September 14, 2023 09:04
@tomhughes tomhughes merged commit fb78234 into openstreetmap:master Sep 14, 2023
86 of 97 checks passed
@pnorman pnorman deleted the tile_gucs branch September 14, 2023 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants