Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
howto_deploy_synapse_with_multiple_workers [2022/03/03 18:20] – [HowTo Deploy with Multiple Workers using docker-compose] homer | howto_deploy_synapse_with_multiple_workers [2023/05/24 22:16] (aktuell) – [Log config] homer | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
< | < | ||
# HowTo Deploy Synapse with Multiple Workers using docker-compose | # HowTo Deploy Synapse with Multiple Workers using docker-compose | ||
+ | ## Status: Working Again (25th of May 2023) | ||
+ | The update to v1.84.0 broke my setup today. The [Upgrade-Info](https:// | ||
+ | |||
## Status: Finally working!!! (1st of March 2022) | ## Status: Finally working!!! (1st of March 2022) | ||
I can finally announce a working docker-compose setup with 2 workers for [Matrix-Synapse](https:// | I can finally announce a working docker-compose setup with 2 workers for [Matrix-Synapse](https:// | ||
Zeile 6: | Zeile 9: | ||
## Scope | ## Scope | ||
I document my relevant config files except my homeserver.yaml. For briefness I will only show the small parts of it that are relevant for having the workers to communicate successfully with the main process. It's assumed that you have an already working homeserver.yaml based on a monolithic synapse setup. I will try to comment some critical details so that you will know what to adapt and what to adopt. | I document my relevant config files except my homeserver.yaml. For briefness I will only show the small parts of it that are relevant for having the workers to communicate successfully with the main process. It's assumed that you have an already working homeserver.yaml based on a monolithic synapse setup. I will try to comment some critical details so that you will know what to adapt and what to adopt. | ||
+ | |||
+ | If you're looking for an example of synapse with workers _without_ docker you might want to visit https:// | ||
### Thnx | ### Thnx | ||
... go out to Sloth (@sleuth: | ... go out to Sloth (@sleuth: | ||
Zeile 246: | Zeile 251: | ||
``` | ``` | ||
worker_app: synapse.app.generic_worker | worker_app: synapse.app.generic_worker | ||
- | worker_name: | + | worker_name: |
- | worker_replication_host: | + | |
- | worker_replication_http_port: | + | |
worker_listeners: | worker_listeners: | ||
- type: http | - type: http | ||
port: 8084 | port: 8084 | ||
resources: | resources: | ||
- | - names: | + | - names: |
- | - client | + | - type: http |
+ | port: 9094 | ||
+ | resources: | ||
+ | - names: [replication] | ||
+ | |||
+ | send_federation: | ||
worker_log_config: | worker_log_config: | ||
``` | ``` | ||
Zeile 262: | Zeile 272: | ||
``` | ``` | ||
worker_app: synapse.app.generic_worker | worker_app: synapse.app.generic_worker | ||
- | worker_name: | + | worker_name: |
- | worker_replication_host: | + | |
- | worker_replication_http_port: | + | |
worker_listeners: | worker_listeners: | ||
- type: http | - type: http | ||
port: 8083 | port: 8083 | ||
resources: | resources: | ||
- | - names: | + | - names: |
- | - federation | + | - type: http |
+ | port: 9092 | ||
+ | resources: | ||
+ | - names: [replication] | ||
+ | |||
+ | send_federation: | ||
worker_log_config: | worker_log_config: | ||
Zeile 281: | Zeile 295: | ||
formatters: | formatters: | ||
precise: | precise: | ||
- | | + | |
filters: | filters: | ||
Zeile 362: | Zeile 376: | ||
# Worker | # Worker | ||
worker_replication_secret: | worker_replication_secret: | ||
+ | |||
+ | # The following block was added to be compatible with v1.84.0 which broke my former config on the 24th of May 2023. Check also the Worker configs above! | ||
+ | instance_map: | ||
+ | main: | ||
+ | host: matrix-synapse | ||
+ | port: 9093 | ||
+ | tls: false | ||
+ | generic_worker2: | ||
+ | host: matrix-federation | ||
+ | port: 9092 | ||
+ | tls: false | ||
+ | generic_worker1: | ||
+ | host: matrix-client | ||
+ | port: 9094 | ||
+ | tls: false | ||
+ | |||
+ | |||
redis: | redis: | ||
enabled: true | enabled: true |