diff --git a/roles/custom/matrix-synapse/defaults/main.yml b/roles/custom/matrix-synapse/defaults/main.yml index 0f7a3c7dc..0a4138ce3 100644 --- a/roles/custom/matrix-synapse/defaults/main.yml +++ b/roles/custom/matrix-synapse/defaults/main.yml @@ -544,9 +544,6 @@ matrix_synapse_password_config_localdb_enabled: true # Controls the number of events that Synapse caches in memory. matrix_synapse_event_cache_size: "100K" - - - # Controls cache sizes for Synapse. # Raise this to increase cache sizes or lower it to potentially lower memory use. # To learn more, see: @@ -560,14 +557,13 @@ matrix_synapse_caches_expire_caches: true matrix_synapse_caches_cache_entry_ttl: "1080m" matrix_synapse_caches_sync_response_cache_duration: "2m" matrix_synapse_caches_autotuning_min_cache_ttl: "30s" -# The Cache tune math used here is a derivative of the same math used to autotune sizes for postgres. +# The Cache tune math used here is a derivative of the same math used to autotune sizes for postgres. # The memtotal variable can in theory be overiden to make Synapse think it has less ram to work with. -# But if your at the point of considering that just override the math or put static values in. +# But if your at the point of considering that just override the math or put static values in. matrix_synapse_memtotal_kb: "{{ ansible_memtotal_mb*1024|int }}" matrix_synapse_caches_autotuning_max_cache_memory_usage: "{{ 2097152 if (matrix_synapse_memtotal_kb|int/8)/1024 >= 2048 else matrix_synapse_memtotal_kb|int/8 }}" matrix_synapse_caches_autotuning_target_cache_memory_usage: "{{ 1048576 if (matrix_synapse_memtotal_kb|int/16)/1024 >= 1024 else matrix_synapse_memtotal_kb|int/16 }}" - # Controls whether Synapse will federate at all. # Disable this to completely isolate your server from the rest of the Matrix network. #