summary refs log tree commit diff
path: root/host/Rory-nginx
diff options
context:
space:
mode:
Diffstat (limited to 'host/Rory-nginx')
-rwxr-xr-xhost/Rory-nginx/services/matrix/synapse/synapse-main.nix8
-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
3 files changed, 6 insertions, 4 deletions
diff --git a/host/Rory-nginx/services/matrix/synapse/synapse-main.nix b/host/Rory-nginx/services/matrix/synapse/synapse-main.nix
index 42a880d..c8bfe86 100755
--- a/host/Rory-nginx/services/matrix/synapse/synapse-main.nix
+++ b/host/Rory-nginx/services/matrix/synapse/synapse-main.nix
@@ -15,13 +15,13 @@
     withJemalloc = true;
 
     nginxVirtualHostName = "matrix.rory.gay";
-    federationSenders = 32;
+    federationSenders = 8;
     pushers = 2;
     mediaRepoWorkers = 8;
-    clientReaders = 16;
+    clientReaders = 4;
 
-    federationReaders = 16;
-    federationInboundWorkers = 16;
+    federationReaders = 8;
+    federationInboundWorkers = 8;
 
     enableAppserviceWorker = true;
     enableBackgroundWorker = true;
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: {