1
0
mirror of https://github.com/spantaleev/matrix-docker-ansible-deploy.git synced 2024-12-12 08:43:55 +02:00
matrix-docker-ansible-deploy/roles/matrix-synapse
Slavi Pantaleev 70796703d3 Run Synapse workers in their own containers
This switches the `docker exec` method of spawning
Synapse workers inside the `matrix-synapse` container with
dedicated containers for each worker.

We also have dedicated systemd services for each worker,
so this are now:
- more consistent with everything else (we don't use systemd
instantiated services anywhere)
- we don't need the "parse systemd instance name into worker name +
port" part
- we don't need to keep track of PIDs manually
- we don't need jq (less depenendencies)
- workers dying would be restarted by systemd correctly, like any other
service
- `docker ps` shows each worker separately and we can observe resource
usage
2021-01-25 12:14:46 +02:00
..
defaults Improvements around Synapse worker/metrics ports exposure 2021-01-25 08:25:43 +02:00
files Run Synapse workers in their own containers 2021-01-25 12:14:46 +02:00
tasks Run Synapse workers in their own containers 2021-01-25 12:14:46 +02:00
templates Run Synapse workers in their own containers 2021-01-25 12:14:46 +02:00
vars Whitelist /_matrix/key requests for going to generic workers on the federation port 2021-01-25 09:46:50 +02:00