Update synapse cache settings
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";
};
|