mirror of
https://github.com/element-hq/synapse
synced 2024-07-07 12:32:50 +00:00
We need more worker_connections!!!
This commit is contained in:
parent
de402248a8
commit
7f4c254e2d
|
@ -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
|
# Start supervisord, which will start Synapse, all of the configured worker
|
||||||
# processes, redis, nginx etc. according to the config we created above.
|
# processes, redis, nginx etc. according to the config we created above.
|
||||||
log("Starting supervisord")
|
log("Starting supervisord")
|
||||||
|
|
||||||
|
os.system("sed -i s/worker_connections 768;/worker_connections 16384;/ /etc/nginx/nginx.conf")
|
||||||
|
|
||||||
flush_buffers()
|
flush_buffers()
|
||||||
|
|
||||||
os.execle(
|
os.execle(
|
||||||
"/usr/local/bin/supervisord",
|
"/usr/local/bin/supervisord",
|
||||||
"supervisord",
|
"supervisord",
|
||||||
|
|
Loading…
Reference in a new issue