add example worker configs

This commit is contained in:
James 2022-05-07 16:44:47 +01:00
parent 9380e99597
commit ed4125190d
6 changed files with 110 additions and 0 deletions

View File

@ -0,0 +1,29 @@
version: 1
formatters:
precise:
format: '%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(request)s - %(message)s'
handlers:
console:
class: logging.StreamHandler
formatter: precise
loggers:
synapse.storage.SQL:
# beware: increasing this to DEBUG will make synapse log sensitive
# information such as access tokens.
level: INFO
root:
level: WARN
handlers: [console]
disable_existing_loggers: false

View File

@ -0,0 +1,9 @@
worker_app: synapse.app.federation_sender
worker_name: federation_sender_1
# The replication listener on the main synapse process.
worker_replication_host: synapse
worker_replication_http_port: 9093
worker_log_config: /data/federation_sender.log.config

View File

@ -0,0 +1,9 @@
worker_app: synapse.app.federation_sender
worker_name: federation_sender_2
# The replication listener on the main synapse process.
worker_replication_host: synapse
worker_replication_http_port: 9093
worker_log_config: /data/federation_sender.log.config

View File

@ -0,0 +1,17 @@
worker_app: synapse.app.generic_worker
worker_name: worker1
# The replication listener on the main synapse process.
worker_replication_host: synapse
worker_replication_http_port: 9093
worker_listeners:
- type: http
port: 8081
x_forwarded: true
resources:
- names:
- client
- federation
worker_log_config: /data/worker.log.config

View File

@ -0,0 +1,17 @@
worker_app: synapse.app.generic_worker
worker_name: worker2
# The replication listener on the main synapse process.
worker_replication_host: synapse
worker_replication_http_port: 9093
worker_listeners:
- type: http
port: 8081
x_forwarded: true
resources:
- names:
- client
- federation
worker_log_config: /data/worker.log.config

View File

@ -0,0 +1,29 @@
version: 1
formatters:
precise:
format: '%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(request)s - %(message)s'
handlers:
console:
class: logging.StreamHandler
formatter: precise
loggers:
synapse.storage.SQL:
# beware: increasing this to DEBUG will make synapse log sensitive
# information such as access tokens.
level: INFO
root:
level: WARN
handlers: [console]
disable_existing_loggers: false