summary refs log tree commit diff
path: root/host/Rory-nginx/services/matrix/synapse/workers
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-07-04 21:54:54 +0200
committerRory& <root@rory.gay>2024-07-04 21:54:54 +0200
commitbdbb6af852edeee9b1276987aa3b429fc349f9d7 (patch)
treea50d853a9de5236a8b18d1dc7d05764acde163d7 /host/Rory-nginx/services/matrix/synapse/workers
parentFederation readers (diff)
downloadRory-Open-Architecture-bdbb6af852edeee9b1276987aa3b429fc349f9d7.tar.xz
Less workers, distribute federation requests by source ip
Diffstat (limited to 'host/Rory-nginx/services/matrix/synapse/workers')
-rw-r--r--host/Rory-nginx/services/matrix/synapse/workers/federation-inbound.nix1
-rw-r--r--host/Rory-nginx/services/matrix/synapse/workers/federation-reader.nix1
2 files changed, 2 insertions, 0 deletions
diff --git a/host/Rory-nginx/services/matrix/synapse/workers/federation-inbound.nix b/host/Rory-nginx/services/matrix/synapse/workers/federation-inbound.nix
index c2c84ec..9853601 100644
--- a/host/Rory-nginx/services/matrix/synapse/workers/federation-inbound.nix
+++ b/host/Rory-nginx/services/matrix/synapse/workers/federation-inbound.nix
@@ -68,6 +68,7 @@ in
     services.nginx.upstreams."federation_inbound" = {
       extraConfig = ''
         keepalive 32;
+        ip_hash;
       '';
       servers = lib.listToAttrs (
         lib.map (index: {
diff --git a/host/Rory-nginx/services/matrix/synapse/workers/federation-reader.nix b/host/Rory-nginx/services/matrix/synapse/workers/federation-reader.nix
index e48ba05..92987da 100644
--- a/host/Rory-nginx/services/matrix/synapse/workers/federation-reader.nix
+++ b/host/Rory-nginx/services/matrix/synapse/workers/federation-reader.nix
@@ -88,6 +88,7 @@ in
     services.nginx.upstreams."federation_reader" = {
       extraConfig = ''
         keepalive 32;
+        ip_hash;
       '';
       servers = lib.listToAttrs (
         lib.map (index: {