feat(synapse): allow using multiple federation workers
This commit is contained in:
parent
4b1d5c7de4
commit
494c86088a
@ -20,7 +20,7 @@
|
||||
with_items:
|
||||
- "matrix_synapse_workers_appservice_workers_count"
|
||||
- "matrix_synapse_workers_pusher_workers_count"
|
||||
- "matrix_synapse_workers_federation_sender_workers_count"
|
||||
# - "matrix_synapse_workers_federation_sender_workers_count"
|
||||
|
||||
- name: (Deprecation) Catch and report renamed settings
|
||||
fail:
|
||||
|
@ -2848,7 +2848,9 @@ opentracing:
|
||||
# Disables sending of outbound federation transactions on the main process.
|
||||
# Uncomment if using a federation sender worker.
|
||||
#
|
||||
#send_federation: false
|
||||
{% if matrix_synapse_workers_federation_sender_workers_count|int > 0 %}
|
||||
send_federation: false
|
||||
{% endif %}
|
||||
|
||||
# It is possible to run multiple federation sender workers, in which case the
|
||||
# work is balanced across them.
|
||||
@ -2858,8 +2860,13 @@ opentracing:
|
||||
# started, to ensure that all instances are running with the same config (otherwise
|
||||
# events may be dropped).
|
||||
#
|
||||
#federation_sender_instances:
|
||||
# - federation_sender1
|
||||
{% if matrix_synapse_workers_federation_sender_workers_count != 0%}
|
||||
federation_sender_instances:
|
||||
{% for i in range(0, matrix_synapse_workers_federation_sender_workers_count|int)|list %}
|
||||
# -dd federation_sender1
|
||||
- federation_sender:{{ i | int }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
# When using workers this should be a map from `worker_name` to the
|
||||
# HTTP replication listener of the worker, if configured.
|
||||
|
Loading…
Reference in New Issue
Block a user