Created Workers setup with nginx (markdown)

airblag 2020-03-27 12:53:32 +01:00
parent 384e4cad96
commit 9eb69d110b
1 changed files with 23 additions and 0 deletions

@ -0,0 +1,23 @@
**WIP**
The actual documentation for setting up workers is not really easy to follow :
https://github.com/matrix-org/synapse/tree/master/contrib/systemd-with-workers
https://github.com/matrix-org/synapse/blob/master/docs/workers.md
This is how I (try) to setup the workers.
**WARNING : SHOULD BE REVIEWED ! WIP ! Actually this breaks my setup in a lot of strange places**
# Background
* My setup is having around 400 users. mostly around 300 concurrent connections on day time. 4500 local rooms. Some big federated rooms too.
* Server is running in a VMware with 16 CPU and 32GB RAM (half of it for postgreSQL).
* DB is 14GB big
* nginx is used as a reverse proxy
* Synapse homeserver process was hammering with 100-120%CPU all day long
# Which workers are meaningful ?
First, I wanted to check what endpoints are asked the most in my installation :