From aee2fb3187074e0a4c9a15ecb46f7b634c065b0c Mon Sep 17 00:00:00 2001 From: richvdh Date: Thu, 14 Apr 2022 12:09:42 +0000 Subject: deploy: a743f7d33ebbd383fbe9bf70e024db79525d891c --- develop/print.html | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) (limited to 'develop/print.html') diff --git a/develop/print.html b/develop/print.html index ddcc4966e8..c48a8ea9e6 100644 --- a/develop/print.html +++ b/develop/print.html @@ -9048,12 +9048,10 @@ worker_replication_host: 127.0.0.1 worker_replication_http_port: 9093 worker_listeners: - - type: http - port: 8083 - resources: - - names: - - client - - federation + - type: http + port: 8083 + resources: + - names: [client, federation] worker_log_config: /home/matrix/synapse/config/worker1_log_config.yaml @@ -9463,24 +9461,24 @@ require. Additionally, to group the required services, it sets up a

See the folder system for the systemd unit files.

The folder workers -contains an example configuration for the federation_reader worker.

+contains an example configuration for the generic_worker worker.

Synapse configuration files

See the worker documentation for information on how to set up the configuration files and reverse-proxy correctly. -Below is a sample federation_reader worker configuration file.

-
worker_app: synapse.app.federation_reader
-worker_name: federation_reader1
+Below is a sample generic_worker worker configuration file.

+
worker_app: synapse.app.generic_worker
+worker_name: generic_worker1
 
 worker_replication_host: 127.0.0.1
 worker_replication_http_port: 9093
 
 worker_listeners:
-    - type: http
-      port: 8011
-      resources:
-          - names: [federation]
+  - type: http
+    port: 8011
+    resources:
+      - names: [client, federation]
 
-worker_log_config: /etc/matrix-synapse/federation-reader-log.yaml
+worker_log_config: /etc/matrix-synapse/generic-worker-log.yaml
 

Systemd manages daemonization itself, so ensure that none of the configuration files set either daemonize or worker_daemonize.

@@ -9515,9 +9513,9 @@ systemctl stop matrix-synapse.target # Restart the master alone systemctl start matrix-synapse.service -# Restart a specific worker (eg. federation_reader); the master is +# Restart a specific worker (eg. generic_worker); the master is # unaffected by this. -systemctl restart matrix-synapse-worker@federation_reader.service +systemctl restart matrix-synapse-worker@generic_worker.service # Add a new worker (assuming all configs are set up already) systemctl enable matrix-synapse-worker@federation_writer.service -- cgit 1.5.1