matrix-docker-ansible-deploy/roles/custom/matrix-synapse/templates/synapse
Catalan Lover 9eab0292d4
Increase Synapse caches and enable cache-autotuning by default (#3017)
* Modify Synapse Cache Factor to use Auto Tune

Synapse has the ability to as it calls in its config auto tune caches.

This ability lets us set very high cache factors and then instead limit our resource use.

Defaults for this commit are 1/10th of what Element apparently runs for EMS stuff and matrix.org on Cache Factor and upstream documentation defaults for auto tune.

* Add vars to Synapse main.yml to control cache related config

This commit adds various cache related vars to main.yml for Synapse.

Some are auto tune and some are just adding explicit ways to control upstream vars.

* Updated Auto Tune figures

Autotuned figures have been bumped in consultation with other community members as to a reasonable level. Please note these defaults are more on the one of each workers side than they are on the monolith Side.

* Fix YML Error

The playbook is not happy with the previous state of this patch so this commit hopefully fixes it

* Add to_json to various Synapse tuning related configs

* Fix incorrect indication in homeserver.yaml.j2

* Minor cleanups

* Synapse Cache Autotuning Documentation

* Upgrade Synapse Cache Autotune to auto configure memory use

* Update Synapse Tuning docs to reflect automatic memory use configuration

* Fix Linting errors in synapses main.yml

* Rename variables for consistency (matrix_synapse_caches_autotuning_* -> matrix_synapse_cache_autotuning_*)

* Remove FIX ME comment about Synapse's `cache_autotuning`

`docs/maintenance-synapse.md` and `roles/custom/matrix-synapse/defaults/main.yml`
already contains documentation about these variables and the default values we set.

* Improve "Tuning caches and cache autotuning" documentation for Synapse

* Announce larger Synapse caches and cache auto-tuning

---------

Co-authored-by: Slavi Pantaleev <slavi@devture.com>
2024-02-14 12:02:06 +02:00
..
bin
customizations
ext/s3-storage-provider Fix s3-storage migrate and shell (#3136) 2024-01-27 18:03:37 +02:00
prometheus Rename label-related variables for homeservers 2024-01-14 10:48:54 +02:00
systemd Added extra systemd service arguments to synapse workers and proxy companion 2024-01-24 13:14:34 -06:00
homeserver.yaml.j2 Increase Synapse caches and enable cache-autotuning by default (#3017) 2024-02-14 12:02:06 +02:00
labels.j2 Remove some useless oidc variables and /_synapse/oidc route handling 2024-01-17 14:45:19 +02:00
synapse.log.config.j2
worker-labels.j2 Fix some comments in worker-labels for Synapse 2024-02-03 18:53:17 +02:00
worker.yaml.j2 Enable HTTP resources for new worker types 2024-01-16 16:51:23 -06:00