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 Add matrix_synapse_additional_loggers_auto and matrix_synapse_additional_loggers_custom 2023-08-30 12:53:20 +03:00
goofys Add matrix_synapse_uid, matrix_synapse_gid and matrix_synapse_username 2023-02-17 17:16:50 +02:00
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 Add matrix_synapse_uid, matrix_synapse_gid and matrix_synapse_username 2023-02-17 17:16:50 +02:00
import_synapse_sqlite_db.yml Restore --tags=import-synapse-sqlite-db support 2023-05-02 13:34:42 +03:00
init.yml Rename Synapse worker preset name (room-workers -> specialized-workers) 2024-01-20 12:40:55 +02:00
main.yml Fix Synapse sub-component (worker, S3, ..) uninstallation 2023-08-29 14:53:28 +03:00
register_user.yml /usr/local/bin/matrix-synapse-register-user -> /matrix/synapse/bin/register-user 2022-11-27 09:26:18 +02:00
self_check_client_api.yml Replace most import_tasks calls with include_tasks for improved performance 2022-11-24 11:33:45 +02:00
self_check_federation_api.yml Replace most import_tasks calls with include_tasks for improved performance 2022-11-24 11:33:45 +02:00
setup_install.yml Add some missing install-all/install-synapse tags to Synapse role 2023-07-28 08:40:49 +03:00
setup_uninstall.yml Fix Synapse sub-component (worker, S3, ..) uninstallation 2023-08-29 14:53:28 +03:00
update_user_password.yml Switch from matrix-postgres to com.devture.ansible.role.postgres 2022-11-27 08:04:31 +02:00
validate_config.yml Increase Synapse caches and enable cache-autotuning by default (#3017) 2024-02-14 12:02:06 +02:00