Replace synapse.app.pusher and synapse.app.federation_sender with synapse.app.generic_worker

Related to https://github.com/matrix-org/synapse/commit/3479599387164aca2613e88d169719
This commit is contained in:
Slavi Pantaleev 2023-01-17 15:55:49 +02:00
parent 34745b5206
commit 424f79df3a

View file

@ -46,7 +46,7 @@
id: "federation-sender-{{ item }}" id: "federation-sender-{{ item }}"
name: "matrix-synapse-worker-federation-sender-{{ item }}" name: "matrix-synapse-worker-federation-sender-{{ item }}"
type: 'federation_sender' type: 'federation_sender'
app: 'federation_sender' app: 'generic_worker'
webserving: false webserving: false
port: 0 port: 0
metrics_port: "{{ matrix_synapse_workers_federation_sender_workers_metrics_range_start + item }}" metrics_port: "{{ matrix_synapse_workers_federation_sender_workers_metrics_range_start + item }}"
@ -58,14 +58,13 @@
matrix_synapse_federation_sender_instances: "{{ matrix_synapse_federation_sender_instances + [item.ansible_facts.worker.name] }}" matrix_synapse_federation_sender_instances: "{{ matrix_synapse_federation_sender_instances + [item.ansible_facts.worker.name] }}"
with_items: "{{ matrix_synapse_workers_list_results_federation_sender_workers.results }}" with_items: "{{ matrix_synapse_workers_list_results_federation_sender_workers.results }}"
# This type of worker can only have a count of 1, at most
- name: Build pusher workers - name: Build pusher workers
ansible.builtin.set_fact: ansible.builtin.set_fact:
worker: worker:
id: "pusher-{{ item }}" id: "pusher-{{ item }}"
name: "matrix-synapse-worker-pusher-{{ item }}" name: "matrix-synapse-worker-pusher-{{ item }}"
type: 'pusher' type: 'pusher'
app: 'pusher' app: 'generic_worker'
webserving: false webserving: false
port: 0 port: 0
metrics_port: "{{ matrix_synapse_workers_pusher_workers_metrics_range_start + item }}" metrics_port: "{{ matrix_synapse_workers_pusher_workers_metrics_range_start + item }}"