-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Postgres Tuning? #532
Comments
Looking at the "Database configuration" section for the postgres Docker image, it seems like we have a few ways to go about it:
Perhaps the latter means that we have to specify a full configuration? It's not just some overrides on top of a sane default configuration. So it may not work directly with this configuration tuning generator (other options may be necessary). Going with the former is likely better, but leads to a long and ugly command line. So I guess we should first investigate the config-file idea. |
Many postgres parameters can also be set on the connection or database level. So you can connect using psql and e.g.:
Edit: this is documented in pgtune:
|
@ptman oh that permanent. In that case alter system is a solution. I did think I read it is only uintil restart but I reread and I see it seems to be persistent :o |
I'm not entirely sure in case of docker. Is the postgresql.auto.conf file in a persistent location? |
Yes, Perhaps it won't survive Postgres upgrades though. We make a Postgres dump, relocate the |
If you need postgres tuning, you probably need workers as well and if you're using the commit from @eMPee584 your matrix-synapse.service is going to be super long already anyway, so honestly adding a bunch of
|
Worth noting that custom postgresql settings can be defined in the matrix-postgres role now, see this pull for details: #642 Might be time to close this issue. |
Would be nice to document it and also make sure it is using sane defaults |
Here's out postgres config for a 6 core 24GB server with 1 federation sender and around ~100 users, if it helps:
|
Hi is there a way to modify my postgres settings? I would like to do some tuning. (Using something like https://pgtune.leopard.in.ua/#/ ). Is there a way to set the generated variables easily?
The text was updated successfully, but these errors were encountered: