phase in initial steps of worker for runa
This commit is contained in:
parent
53dbaf5b52
commit
bde6eb5642
15 changed files with 3259 additions and 11 deletions
|
|
@ -289,6 +289,13 @@ listeners:
|
|||
- names: [client, federation]
|
||||
compress: false
|
||||
|
||||
- port: 9093
|
||||
bind_addresses: ['::', '0.0.0.0']
|
||||
type: http
|
||||
resources:
|
||||
- names: [replication]
|
||||
|
||||
|
||||
# example additional_resources:
|
||||
#
|
||||
#additional_resources:
|
||||
|
|
@ -2900,6 +2907,12 @@ opentracing:
|
|||
# host: localhost
|
||||
# port: 8034
|
||||
|
||||
instance_map:
|
||||
main:
|
||||
host: 'synapse-main'
|
||||
port: 9093
|
||||
|
||||
|
||||
# Experimental: When using workers you can define which workers should
|
||||
# handle event persistence and typing notifications. Any worker
|
||||
# specified here must also be in the instance_map.
|
||||
|
|
@ -2927,13 +2940,13 @@ opentracing:
|
|||
redis:
|
||||
# Uncomment the below to enable Redis support.
|
||||
#
|
||||
#enabled: true
|
||||
enabled: true
|
||||
|
||||
# Optional host and port to use to connect to redis. Defaults to
|
||||
# localhost and 6379
|
||||
#
|
||||
#host: localhost
|
||||
#port: 6379
|
||||
host: redis
|
||||
port: 6379
|
||||
|
||||
# Optional password if configured on the Redis instance
|
||||
#
|
||||
|
|
|
|||
|
|
@ -0,0 +1,14 @@
|
|||
worker_app: synapse.app.generic_worker
|
||||
worker_name: synapse-generic-worker-sync
|
||||
|
||||
worker_listeners:
|
||||
- type: http
|
||||
port: 8083
|
||||
resources:
|
||||
- names: [client]
|
||||
- type: http
|
||||
port: 9083
|
||||
resources:
|
||||
- names: [replication]
|
||||
|
||||
worker_log_config: /data/generic-worker-log.yaml
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
worker_app: synapse.app.generic_worker
|
||||
worker_name: synapse-worker-federation
|
||||
|
||||
worker_listeners:
|
||||
- type: http
|
||||
port: 8008
|
||||
resources:
|
||||
- names:
|
||||
- client
|
||||
- federation
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
worker_app: synapse.app.generic_worker
|
||||
worker_name: synapse-worker-generic
|
||||
|
||||
worker_listeners:
|
||||
- type: http
|
||||
port: 8008
|
||||
resources:
|
||||
- names:
|
||||
- client
|
||||
- federation
|
||||
10
ansible/roles/docker-compose/files/synapse/config/synapse-worker-sync.yaml
Executable file
10
ansible/roles/docker-compose/files/synapse/config/synapse-worker-sync.yaml
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
worker_app: synapse.app.generic_worker
|
||||
worker_name: synapse-worker-sync
|
||||
|
||||
worker_listeners:
|
||||
- type: http
|
||||
port: 8008
|
||||
resources:
|
||||
- names:
|
||||
- client
|
||||
- federation
|
||||
Loading…
Add table
Add a link
Reference in a new issue