summary refs log tree commit diff
path: root/docs/workers.md
diff options
context:
space:
mode:
authorreivilibre <oliverw@matrix.org>2022-05-06 11:43:53 +0100
committerGitHub <noreply@github.com>2022-05-06 11:43:53 +0100
commitc2d50e9f6c5f7b01cbd8bf1dca36cb8c0e7b007f (patch)
tree979a900eca42c6baa389b30e8514cfb27791dc0d /docs/workers.md
parentMerge branch 'master' into develop (diff)
downloadsynapse-c2d50e9f6c5f7b01cbd8bf1dca36cb8c0e7b007f.tar.xz
Add the `notify_appservices_from_worker` configuration option (superseding `notify_appservices`) to allow a generic worker to be designated as the worker to send traffic to Application Services. (#12452)
Diffstat (limited to 'docs/workers.md')
-rw-r--r--docs/workers.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/workers.md b/docs/workers.md

index afdcd785e4..1d049b6c4f 100644 --- a/docs/workers.md +++ b/docs/workers.md
@@ -435,6 +435,23 @@ An example for a dedicated background worker instance: {{#include systemd-with-workers/workers/background_worker.yaml}} ``` +#### Notifying Application Services + +You can designate one worker to send output traffic to Application Services. + +Specify its name in the shared configuration as follows: + +```yaml +notify_appservices_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.appservice` +worker application type. + + ### `synapse.app.pusher` Handles sending push notifications to sygnal and email. Doesn't handle any @@ -453,6 +470,9 @@ pusher_instances: ### `synapse.app.appservice` +**Deprecated as of Synapse v1.58.** [Use `synapse.app.generic_worker` with the +`notify_appservices_from_worker` option instead.](#notifying-application-services) + Handles sending output traffic to Application Services. Doesn't handle any REST endpoints itself, but you should set `notify_appservices: False` in the shared configuration file to stop the main synapse sending appservice notifications.