From 0759e55db6a460a3e9ec1c1abfa088585e931516 Mon Sep 17 00:00:00 2001
From: DMRobertson
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
+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.
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 Deprecated as of Synapse v1.59. Use Handles sending output traffic to Application Services. Doesn't handle any
REST endpoints itself, but you should set Note that if a reverse proxy is used , then Deprecated as of Synapse v1.59. Use Handles searches in the user directory. It can handle REST endpoints matching
the following regular expressions:synapse.app.generic_worker
with the
+synapse.app.generic_worker
with the
notify_appservices_from_worker
option instead.notify_appservices: False
in the
@@ -601,6 +610,8 @@ and you must configure a single instance to run the background tasks, e.g.:/_matrix/media/
must be routed for both inbound client and federation requests (if they are handled separately).
+synapse.app.user_dir
synapse.app.generic_worker
with the
+update_user_directory_from_worker
option instead.^/_matrix/client/(r0|v3|unstable)/user_directory/search$
--
cgit 1.4.1