Location of logconfiguration fixed.

This commit is contained in:
Hans van Zijst 2024-12-11 16:59:08 +01:00 committed by Hans van Zijst
parent 03d08e9473
commit 9db7b6e78a

View file

@ -178,10 +178,9 @@ replication socket to communicate with the rest. We probably want a few of
these workers. The configuration should look like this:
```
worker_app: "synapse.app.generic_worker" # Always this unless
"synapse.app.media_repository"
worker_app: "synapse.app.generic_worker" # Always this unless "synapse.app.media_repository"
worker_name: "clientsync1" # Name of worker specified in instance map
worker_log_config: "/data/log.config/client_sync.log.config" # Log config file
worker_log_config: "/etc/matrix-synapse/logconf.d/clientsync.yaml" # Log config file
worker_listeners:
# Include for any worker in the instance map above:
@ -211,7 +210,7 @@ Configuration should look like this:
```
worker_app: "synapse.app.generic_worker"
worker_name: "roomworker1"
worker_log_config: "/data/log.config/rooms.log.config"
worker_log_config: "/etc/matrix-synapse/logconf.d/roomworker.yaml"
worker_listeners:
- path: "/run/matrix-synapse/inbound_roomworker1.sock"
@ -228,13 +227,21 @@ worker_listeners:
### Mediaworker
To make sure the worker takes care of handling media, and not the main
process, we have to add `enable_media_repo: False` to the configuration file.
Then you create the worker, like this:
process. You need to tell the main process to to keep its hands off media, and
which worker will take care of it:
```
enable_media_repo: false
media_instance_running_background_jobs: "mediaworker1"
```
Then define the worker, like this:
```
worker_app: "synapse.app.media_repository"
worker_name: "mediaworker1"
worker_log_config: "/data/log.config/media.log.config"
worker_log_config: "/etc/matrix-synapse/logconf.d/mediaworker.yaml"
worker_listeners:
- path: "/run/matrix-synapse/inbound_mediaworker1.sock"
@ -243,3 +250,5 @@ worker_listeners:
resources:
- names: [media]
```