From aee2fb3187074e0a4c9a15ecb46f7b634c065b0c Mon Sep 17 00:00:00 2001 From: richvdh Date: Thu, 14 Apr 2022 12:09:42 +0000 Subject: deploy: a743f7d33ebbd383fbe9bf70e024db79525d891c --- develop/systemd-with-workers/index.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'develop/systemd-with-workers/index.html') diff --git a/develop/systemd-with-workers/index.html b/develop/systemd-with-workers/index.html index 0d6a008397..3790d2e6e1 100644 --- a/develop/systemd-with-workers/index.html +++ b/develop/systemd-with-workers/index.html @@ -155,24 +155,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.

@@ -207,9 +207,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