From 0759e55db6a460a3e9ec1c1abfa088585e931516 Mon Sep 17 00:00:00 2001 From: DMRobertson Date: Tue, 10 May 2022 12:18:36 +0000 Subject: deploy: 2aad0ae57fc4fa4a57b2764065687e00b99de82a --- develop/workers.html | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'develop/workers.html') diff --git a/develop/workers.html b/develop/workers.html index 0d0aec5c7d..495acf8d34 100644 --- a/develop/workers.html +++ b/develop/workers.html @@ -520,7 +520,7 @@ background tasks. For example, to move background tasks to a dedicated worker, the shared configuration would include:

run_background_tasks_on: background_worker
 
-

You might also wish to investigate the update_user_directory and +

You might also wish to investigate the update_user_directory_from_worker and media_instance_running_background_jobs settings.

An example for a dedicated background worker instance:

worker_app: synapse.app.generic_worker
@@ -532,8 +532,17 @@ worker_replication_http_port: 9093
 
 worker_log_config: /etc/matrix-synapse/background-worker-log.yaml
 
+

Updating the User Directory

+

You can designate one generic worker to update the user directory.

+

Specify its name in the shared configuration as follows:

+
update_user_directory_from_worker: worker_name
+
+

This work cannot be load-balanced; please ensure the main process is restarted +after setting this option in the shared configuration!

+

This style of configuration supersedes the legacy synapse.app.user_dir +worker application type.

Notifying Application Services

-

You can designate one worker to send output traffic to Application Services.

+

You can designate one generic worker to send output traffic to Application Services.

Specify its name in the shared configuration as follows:

notify_appservices_from_worker: worker_name
 
@@ -552,7 +561,7 @@ pusher instances by their worker name, e.g.:

- pusher_worker2

synapse.app.appservice

-

Deprecated as of Synapse v1.58. Use synapse.app.generic_worker with the +

Deprecated as of Synapse v1.59. Use synapse.app.generic_worker with the notify_appservices_from_worker option instead.

Handles sending output traffic to Application Services. Doesn't handle any REST endpoints itself, but you should set notify_appservices: False in the @@ -601,6 +610,8 @@ and you must configure a single instance to run the background tasks, e.g.:

Note that if a reverse proxy is used , then /_matrix/media/ must be routed for both inbound client and federation requests (if they are handled separately).

synapse.app.user_dir

+

Deprecated as of Synapse v1.59. Use synapse.app.generic_worker with the +update_user_directory_from_worker option instead.

Handles searches in the user directory. It can handle REST endpoints matching the following regular expressions:

^/_matrix/client/(r0|v3|unstable)/user_directory/search$
-- 
cgit 1.4.1