summary refs log tree commit diff
diff options
context:
space:
mode:
authorOlivier Wilkinson (reivilibre) <oliverw@matrix.org>2023-03-22 14:29:18 +0000
committerOlivier Wilkinson (reivilibre) <oliverw@matrix.org>2023-03-22 14:29:18 +0000
commit7f4c254e2dd085d1a5caea4c21927750debaa4cc (patch)
tree9410c5c8a73ededa2ec0c1bcb7bb857ed3883d76
parentcomplement hacks!!! (diff)
downloadsynapse-rei/lt_launch.tar.xz
We need more worker_connections!!! github/rei/lt_launch rei/lt_launch
-rwxr-xr-xdocker/configure_workers_and_start.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/docker/configure_workers_and_start.py b/docker/configure_workers_and_start.py
index 401f240392..d42cc07611 100755
--- a/docker/configure_workers_and_start.py
+++ b/docker/configure_workers_and_start.py
@@ -1044,7 +1044,11 @@ def main(args: List[str], environ: MutableMapping[str, str]) -> None:
     # Start supervisord, which will start Synapse, all of the configured worker
     # processes, redis, nginx etc. according to the config we created above.
     log("Starting supervisord")
+
+    os.system("sed -i s/worker_connections 768;/worker_connections 16384;/ /etc/nginx/nginx.conf")
+
     flush_buffers()
+
     os.execle(
         "/usr/local/bin/supervisord",
         "supervisord",