summary refs log tree commit diff
path: root/host/Rory-nginx/services/matrix/synapse/caches.nix
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-07-03 23:23:11 +0200
committerRory& <root@rory.gay>2024-07-04 14:45:02 +0200
commit61c94c0cd250d18114c6c889e55636d94d1475f1 (patch)
tree3131eb3db0ce1404e9641a301f8dd1d06a682628 /host/Rory-nginx/services/matrix/synapse/caches.nix
parentMore senders (diff)
downloadRory-Open-Architecture-61c94c0cd250d18114c6c889e55636d94d1475f1.tar.xz
Synapse main cleanup
Diffstat (limited to 'host/Rory-nginx/services/matrix/synapse/caches.nix')
-rw-r--r--host/Rory-nginx/services/matrix/synapse/caches.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/host/Rory-nginx/services/matrix/synapse/caches.nix b/host/Rory-nginx/services/matrix/synapse/caches.nix
index d129076..6196129 100644
--- a/host/Rory-nginx/services/matrix/synapse/caches.nix
+++ b/host/Rory-nginx/services/matrix/synapse/caches.nix
@@ -1,12 +1,12 @@
 {
-  gc_min_interval = ["5m" "30m" "60m"];
-  gc_thresholds = [1000 500 250];
+  gc_min_interval = [ "15m" "30m" "60m" ];
+  gc_thresholds = [ 10000 5000 2500 ];
   event_cache_size = "12000K"; #defaults to 10K
   caches = {
-    global_factor = 50000.0;
+    global_factor = 500000.0;
     cache_entry_ttl = "24h";
-    expire_caches = true;
-    sync_response_cache_duration = "15s"; #6h
+    expire_caches = false;
+    sync_response_cache_duration = "15s";
     cache_autotuning = {
       max_cache_memory_usage = "65536M";
       target_cache_memory_usage = "32768M";