Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Workers setup with nginx

airblag edited this page Mar 27, 2020 · 8 revisions

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 :