diff options
author | Olivier Wilkinson (reivilibre) <oliverw@matrix.org> | 2023-11-16 15:26:11 +0000 |
---|---|---|
committer | Olivier Wilkinson (reivilibre) <oliverw@matrix.org> | 2023-11-17 12:03:56 +0000 |
commit | 26073fa77889836833e870ff1d0847638fe4ebe8 (patch) | |
tree | e693650b4641b989c30b43b89c8c3e599b91511d | |
parent | Convert listener_resources and endpoint_patterns to Set[str] (diff) | |
download | synapse-26073fa77889836833e870ff1d0847638fe4ebe8.tar.xz |
Tweak comments
-rwxr-xr-x | docker/configure_workers_and_start.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/docker/configure_workers_and_start.py b/docker/configure_workers_and_start.py index 47292eecc1..98958d52af 100755 --- a/docker/configure_workers_and_start.py +++ b/docker/configure_workers_and_start.py @@ -82,21 +82,21 @@ MAIN_PROCESS_UNIX_SOCKET_PUBLIC_PATH = "/run/main_public.sock" MAIN_PROCESS_UNIX_SOCKET_PRIVATE_PATH = "/run/main_private.sock" -# Workers with exposed endpoints needs either "client", "federation", or "media" listener_resources -# Watching /_matrix/client needs a "client" listener -# Watching /_matrix/federation needs a "federation" listener -# Watching /_matrix/media and related needs a "media" listener -# Stream Writers require "client" and "replication" listeners because they -# have to attach by instance_map to the master process and have client endpoints. @dataclass class WorkerTemplate: listener_resources: Set[str] = field(default_factory=set) endpoint_patterns: Set[str] = field(default_factory=set) - # (worker_name) -> {} + # (worker_name) -> {config} shared_extra_conf: Callable[[str], Dict[str, Any]] = lambda _worker_name: {} worker_extra_conf: str = "" +# Workers with exposed endpoints needs either "client", "federation", or "media" listener_resources +# Watching /_matrix/client needs a "client" listener +# Watching /_matrix/federation needs a "federation" listener +# Watching /_matrix/media and related needs a "media" listener +# Stream Writers require "client" and "replication" listeners because they +# have to attach by instance_map to the master process and have client endpoints. WORKERS_CONFIG: Dict[str, WorkerTemplate] = { "pusher": WorkerTemplate(), "user_dir": WorkerTemplate( |