This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Several write operations still occur on the main process when /register
is routed to workers
#13379
Labels
A-Registration
Creating an account
A-Workers
Problems related to running Synapse in Worker Mode (or replication)
T-Enhancement
New features, changes in functionality, improvements in performance, or user-facing enhancements.
It's possible to route
POST /_matrix/client/v3/register
to workers. This allows offloading most of the work involved in registration to the main process. A few operations occur on the main process (here is where the logic splits between worker and main process):synapse/synapse/storage/databases/main/registration.py
Lines 2103 to 2191 in 53b77b2
I think the only operation in this method that can't currently be completed by a worker is:
synapse/synapse/storage/databases/main/registration.py
Lines 2186 to 2189 in 53b77b2
But the rest could potentially be delegated to the worker process.
I don't believe that these operations are particularly resource intensive.
The text was updated successfully, but these errors were encountered: