mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-25 11:05:49 +03:00
Merge pull request #4894 from matrix-org/erikj/postgres_tuning
Add note on tuning postgres
This commit is contained in:
commit
11f2125885
2 changed files with 21 additions and 2 deletions
1
changelog.d/4895.misc
Normal file
1
changelog.d/4895.misc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Add some notes about tuning postgres for larger deployments.
|
|
@ -49,6 +49,24 @@ As with Debian/Ubuntu, postgres support depends on the postgres python connector
|
||||||
export PATH=/usr/pgsql-9.4/bin/:$PATH
|
export PATH=/usr/pgsql-9.4/bin/:$PATH
|
||||||
pip install psycopg2
|
pip install psycopg2
|
||||||
|
|
||||||
|
Tuning Postgres
|
||||||
|
===============
|
||||||
|
|
||||||
|
The default settings should be fine for most deployments. For larger scale
|
||||||
|
deployments tuning some of the settings is recommended, details of which can be
|
||||||
|
found at https://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server.
|
||||||
|
|
||||||
|
In particular, we've found tuning the following values helpful for performance:
|
||||||
|
|
||||||
|
- ``shared_buffers``
|
||||||
|
- ``effective_cache_size``
|
||||||
|
- ``work_mem``
|
||||||
|
- ``maintenance_work_mem``
|
||||||
|
- ``autovacuum_work_mem``
|
||||||
|
|
||||||
|
Note that the appropriate values for those fields depend on the amount of free
|
||||||
|
memory the database host has available.
|
||||||
|
|
||||||
Synapse config
|
Synapse config
|
||||||
==============
|
==============
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue