-
Notifications
You must be signed in to change notification settings - Fork 67
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
Conversation
What is a GUC exactly? |
:work_mem => "128MB", | ||
:maintenance_work_mem => "8GB", |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
PostgreSQL configuration parameter |
@@ -21,8 +21,6 @@ | |||
:postgresql => { | |||
:settings => { | |||
:defaults => { | |||
:shared_buffers => "8GB", | |||
:maintenance_work_mem => "7144MB", |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
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.