summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory&::Emma <root@rory.gay>2023-11-29 21:32:27 +0000
committerRory&::Emma <root@rory.gay>2023-11-29 21:32:27 +0000
commitecebc2f62de74ffe9818de610f95e835b32ff531 (patch)
treebea33b602c64157f7e2eb2391c5e653c6323e49c
parentUpdates (diff)
downloadRory-Open-Architecture-ecebc2f62de74ffe9818de610f95e835b32ff531.tar.xz
Update synapse cache settings
Diffstat (limited to '')
-rw-r--r--flake.lock6
-rwxr-xr-xhost/Rory-nginx/services/matrix/synapse.nix8
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";
         };