summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-05-07 18:34:16 +0200
committerRory& <root@rory.gay>2024-07-04 14:45:02 +0200
commit014930eae0f65854919c4cebff95b78d33dadf8e (patch)
tree30fb67718b36204bd121925bdb999f8aeedc8074
parentmaybe i should nix and not yaml (diff)
downloadRory-Open-Architecture-014930eae0f65854919c4cebff95b78d33dadf8e.tar.xz
Raise synapse cache, decrease connection pool
-rwxr-xr-xhost/Rory-nginx/services/matrix/synapse.nix14
1 files changed, 8 insertions, 6 deletions
diff --git a/host/Rory-nginx/services/matrix/synapse.nix b/host/Rory-nginx/services/matrix/synapse.nix
index 61270c8..98d5d3d 100755
--- a/host/Rory-nginx/services/matrix/synapse.nix
+++ b/host/Rory-nginx/services/matrix/synapse.nix
@@ -26,16 +26,18 @@ in
 
       federation = {
         client_timeout = "60s";
-        max_short_retries = 6;
-        max_short_retry_delay = "10s";
+        max_short_retries = 12;
+        max_short_retry_delay = "5s";
         max_long_retries = 5;
         max_long_retry_delay = "30s";
       };
 
-      event_cache_size = "1200K"; #defaults to 10K
+      gc_min_interval = ["5m", "30m", "60m"];
+      gc_thresholds = [1000, 500, 250]
+      event_cache_size = "12000K"; #defaults to 10K
       caches = {
-        global_factor = 5000.0;
-        cache_entry_ttl = "12h";
+        global_factor = 50000.0;
+        cache_entry_ttl = "24h";
         expire_caches = true;
         sync_response_cache_duration = "6h";
         cache_autotuning = {
@@ -90,7 +92,7 @@ in
           host = "127.0.0.1";
           application_name = "matrix-synapse (rory.gay)";
           cp_min = 5;
-          cp_max = 50;
+          cp_max = 10;
           #cp_reconnect_interval = "True";
         };
       };