We need more worker_connections!!!

This commit is contained in:
Olivier Wilkinson (reivilibre) 2023-03-22 14:29:18 +00:00
parent de402248a8
commit 7f4c254e2d

View file

@ -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",