Marcel Partap
c8f051a42d
Track workers endpoint list in repo instead of regenerating on user side
пре 5 година
Marcel Partap
414b812a29
synapse role workers setup: make configs clean action remote compatible
Many people probably didn't even know this - that ansible can be
quite a bit picky about what it will be willing to work with remotely.
Thanks @maxklenk !
пре 5 година
Marcel Partap
d5932ca393
synapse role workers setup: execute the endpoint extraction locally
Thanks @maxklenk !
пре 5 година
Marcel Partap
f3d2797d9c
synapse workers: make awk script invocation handle paths with spaces
(quoting ftw)
пре 5 година
Marcel Partap
cce90b187a
synapse workers: fix undefined variable cases when removing workers
пре 5 година
Marcel Partap
2d1b9f2dbf
synapse workers: reworkings + get endpoints from upstream docs via awk
(yes, a bit awkward and brittle… xD)
пре 5 година
Marcel Partap
a4125d5446
synapse workers: polishing, cleansing and installation of jq dependency
пре 5 година
Marcel Partap
501efee07e
synapse workers: supply systemd with actual worker PIDs (requires jq)
also, worker.yaml.j2:
- hone worker_name
- remove worker_pid_file entry (would only be used if worker_daemonize
set to true; also, synapse only knows about the container namespace
and thus can not provide the required host-view PID)
пре 5 година
Marcel Partap
cf452fdf0a
Fix corner-cases found through testing (aka ansible is nuts)
пре 5 година
Marcel Partap
353bc7c362
Add initial support for synapse workers
· needs documentation; no checks yet for port clashes or typos in worker name
· according to https://github.com/matrix-org/synapse/wiki/Workers-setup-with-nginx#results
about 90% of requests go to the synchrotron endpoint
· thus, the synchrotron worker is especially suited to be load-balanced
· most of the other workers are documented to support only a single instance
· https://github.com/matrix-org/synapse/blob/master/docs/workers.md
пре 5 година