matrix-docker-ansible-deploy/roles/custom/matrix-synapse/tasks
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
..
ext
goofys
rust-synapse-compress-state Use devture_postgres_container_network for all rust-synapse-compress-state tasks 2024-02-08 11:46:59 +02:00
synapse Added extra systemd service arguments to synapse workers and proxy companion 2024-01-24 13:14:34 -06:00
import_media_store.yml
import_synapse_sqlite_db.yml
init.yml Rename Synapse worker preset name (room-workers -> specialized-workers) 2024-01-20 12:40:55 +02:00
main.yml
register_user.yml
self_check_client_api.yml
self_check_federation_api.yml
setup_install.yml
setup_uninstall.yml
update_user_password.yml
validate_config.yml Increase Synapse caches and enable cache-autotuning by default (#3017) 2024-02-14 12:02:06 +02:00