From ecebc2f62de74ffe9818de610f95e835b32ff531 Mon Sep 17 00:00:00 2001 From: "Rory&::Emma" Date: Wed, 29 Nov 2023 21:32:27 +0000 Subject: Update synapse cache settings --- flake.lock | 6 +++--- host/Rory-nginx/services/matrix/synapse.nix | 8 +++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/flake.lock b/flake.lock index 4c10be4..f484198 100644 --- a/flake.lock +++ b/flake.lock @@ -266,11 +266,11 @@ }, "nixpkgs-rory": { "locked": { - "lastModified": 1700644969, - "narHash": "sha256-duY9+55pFkSQLjJGHYKaCd7MaHXzkYiDUAImhGEGjps=", + "lastModified": 1701265472, + "narHash": "sha256-zVOimU5+eb3jMM+k2U/rAJTCc4dU1nNHM/uQ2A9GLiM=", "owner": "TheArcaneBrony", "repo": "nixpkgs", - "rev": "7559cef0a8c5aa507691d8d76b8b7dc9cbd5863f", + "rev": "9eb247bae34dc2db97cd7bb3b68a65e0eea800e9", "type": "github" }, "original": { diff --git a/host/Rory-nginx/services/matrix/synapse.nix b/host/Rory-nginx/services/matrix/synapse.nix index d41072e..dcc9a10 100755 --- a/host/Rory-nginx/services/matrix/synapse.nix +++ b/host/Rory-nginx/services/matrix/synapse.nix @@ -27,10 +27,12 @@ event_cache_size = "30K"; #defaults to 10K caches = { - global_factor = 1.0; - sync_response_cache_duration = "30m"; + global_factor = 50.0; + cache_entry_ttl = "60m"; + expire_caches = true; + sync_response_cache_duration = "5m"; cache_autotuning = { - max_cache_memory_usage = "2048M"; + max_cache_memory_usage = "4096M"; target_cache_memory_usage = "1024M"; min_cache_ttl = "30m"; }; -- cgit 1.4.1