From 629497902be3ed0426848332c68a9a9fdfda3bbc Mon Sep 17 00:00:00 2001
From: DMRobertson
To change the default behavior, use the following sub-options:
disable_default_event_types
: boolean. Set to true
to disable the above
+
disable_default_event_types
: boolean. Set to true
to disable the above
defaults. If this is enabled, only the event types listed in
additional_event_types
are shared. Defaults to false
.
additional_event_types
: A list of additional state events to include in the
-events to be shared. By default, this list is empty (so only the default event
+
additional_event_types
: A list of additional state events to include in the
+events to be shared. By default, this list is empty (so only the default event
types are shared).
Each entry in this list should be either a single string or a list of two -strings.
+strings.t
represents all events with type t
(i.e.
with no restrictions on state keys).[t, s]
represents a single event with type t
and
+[t, s]
represents a single event with type t
and
state key s
. The same type can appear in two entries with different state
keys: in this situation, both state keys are included in prejoin state.run_background_tasks_on: worker1
update_user_directory_from_worker
The worker that is used to +update the user directory. If not provided this defaults to the main process.
+Example configuration:
+update_user_directory_from_worker: worker1
+
+Added in Synapse 1.59.0.
+notify_appservices_from_worker
The worker that is used to +send output traffic to Application Services. If not provided this defaults +to the main process.
+Example configuration:
+notify_appservices_from_worker: worker1
+
+Added in Synapse 1.59.0.
+media_instance_running_background_jobs
The worker that is used to run
+background tasks for media repository. If running multiple media repositories
+you must configure a single instance to run the background tasks. If not provided
+this defaults to the main process or your single media_repository
worker.
Example configuration:
+media_instance_running_background_jobs: worker1
+
+Added in Synapse 1.16.0.
+redis
Configuration for Redis when using workers. This must be enabled when using workers. This setting has the following sub-options:
@@ -10709,7 +10736,8 @@ worker_log_config: /etc/matrix-synapse/background-worker-log.yamlYou can designate one generic worker to update the user directory.
-Specify its name in the shared configuration as follows:
+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 @@ -10725,16 +10753,36 @@ worker application type.
You can designate one generic worker to send output traffic to Application Services. Doesn't handle any REST endpoints itself, but you should specify its name in the -shared configuration as follows:
+shared configuration +as follows: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.
You can designate generic worker to sending push notifications to +a push gateway such as +sygnal and email.
+This will stop the main process sending push notifications.
+The workers responsible for sending push notifications can be defined using the
+pusher_instances
+option. For example:
pusher_instances:
+ - pusher_worker1
+ - pusher_worker2
+
+Multiple workers can be added to this map, in which case the work is balanced +across them. Ensure the main process and all pusher workers are restarted after changing +this option.
+These workers don't need to accept incoming HTTP requests to send push notifications, +so no additional reverse proxy configuration is required for pusher workers.
+This style of configuration supersedes the legacy synapse.app.pusher
+worker application type.
synapse.app.pusher
It is likely this option will be deprecated in the future and is not recommended for new
-installations. Instead, use synapse.app.generic_worker
with the pusher_instances
.
synapse.app.generic_worker
with the pusher_instances
.
Handles sending push notifications to sygnal and email. Doesn't handle any
REST endpoints itself, but you should set
start_pushers: false
in the
@@ -10767,7 +10815,7 @@ shared configuration file to stop the main synapse sending appservice notificati
Note this worker cannot be load-balanced: only one instance should be active.
synapse.app.federation_sender
It is likely this option will be deprecated in the future and not recommended for
-new installations. Instead, use synapse.app.generic_worker
with the federation_sender_instances
.
synapse.app.generic_worker
with the federation_sender_instances
.
Handles sending federation traffic to other servers. Doesn't handle any
REST endpoints itself, but you should set
send_federation: false
@@ -10831,7 +10879,9 @@ worker_listeners:
worker_log_config: /etc/matrix-synapse/media-worker-log.yaml
Note that if running multiple media repositories they must be on the same server -and you must configure a single instance to run the background tasks, e.g.:
+and you must specify a single instance to run the background tasks in the +shared configuration, +e.g.:media_instance_running_background_jobs: "media-repository-1"
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).