| @@ -74,7 +74,7 @@ Synapse's presence feature which tracks which users are online and which are off | |||||
| If you have enough compute resources (CPU & RAM), you can make Synapse better use of them by [enabling load-balancing with workers](configuring-playbook-synapse.md#load-balancing-with-workers). | If you have enough compute resources (CPU & RAM), you can make Synapse better use of them by [enabling load-balancing with workers](configuring-playbook-synapse.md#load-balancing-with-workers). | ||||
| Tuning Synapse's cache factor can help reduce RAM usage. [See the upstream documentation](https://github.com/element-hq/synapse#help-synapse-is-slow-and-eats-all-my-ram-cpu) for more information on what value to set the cache factor to. Use the variable `matrix_synapse_caches_global_factor` to set the cache factor. | |||||
| Tuning Synapse's cache factor can help reduce RAM usage. Use the variable `matrix_synapse_caches_global_factor` to set the cache factor. | |||||
| [Tuning your PostgreSQL database](maintenance-postgres.md#tuning-postgresql) could also improve Synapse performance. The playbook tunes the integrated Postgres database automatically, but based on your needs you may wish to adjust tuning variables manually. If you're using an [external Postgres database](configuring-playbook-external-postgres.md), you will aslo need to tune Postgres manually. | [Tuning your PostgreSQL database](maintenance-postgres.md#tuning-postgresql) could also improve Synapse performance. The playbook tunes the integrated Postgres database automatically, but based on your needs you may wish to adjust tuning variables manually. If you're using an [external Postgres database](configuring-playbook-external-postgres.md), you will aslo need to tune Postgres manually. | ||||
| @@ -548,8 +548,7 @@ matrix_synapse_event_cache_size: "100K" | |||||
| # Raise this to increase cache sizes or lower it to potentially lower memory use. | # Raise this to increase cache sizes or lower it to potentially lower memory use. | ||||
| # To learn more, see: | # To learn more, see: | ||||
| # - https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html#caching | # - https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html#caching | ||||
| # - https://github.com/element-hq/synapse#help-synapse-eats-all-my-ram | |||||
| # - https://github.com/element-hq/synapse/issues/3939 | |||||
| # - https://github.com/matrix-org/synapse/issues/3939 | |||||
| matrix_synapse_caches_global_factor: 10 | matrix_synapse_caches_global_factor: 10 | ||||
| matrix_synapse_caches_expire_caches: true | matrix_synapse_caches_expire_caches: true | ||||
| matrix_synapse_caches_cache_entry_ttl: "30m" | matrix_synapse_caches_cache_entry_ttl: "30m" | ||||
| @@ -760,7 +760,7 @@ federation_domain_whitelist: {{ matrix_synapse_federation_domain_whitelist|to_js | |||||
| # The number of events to cache in memory. Not affected by | # The number of events to cache in memory. Not affected by | ||||
| # caches.global_factor. | # caches.global_factor. | ||||
| # | # | ||||
| event_cache_size: "{{ matrix_synapse_event_cache_size }}" | |||||
| event_cache_size: {{ matrix_synapse_event_cache_size | to_json }} | |||||
| caches: | caches: | ||||
| # Controls the global cache factor, which is the default cache factor | # Controls the global cache factor, which is the default cache factor | ||||