Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 0adecca

Browse files
authored
Add sample worker files for pusher and federation_sender (#14077)
Signed-off-by: Dirk Klimpel <[email protected]>
1 parent 2295095 commit 0adecca

File tree

4 files changed

+29
-0
lines changed

4 files changed

+29
-0
lines changed

changelog.d/14077.doc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add sample worker files for `pusher` and `federation_sender`.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
worker_app: synapse.app.federation_sender
2+
worker_name: federation_sender1
3+
4+
# The replication listener on the main synapse process.
5+
worker_replication_host: 127.0.0.1
6+
worker_replication_http_port: 9093
7+
8+
worker_log_config: /etc/matrix-synapse/federation-sender-log.yaml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
worker_app: synapse.app.pusher
2+
worker_name: pusher_worker1
3+
4+
# The replication listener on the main synapse process.
5+
worker_replication_host: 127.0.0.1
6+
worker_replication_http_port: 9093
7+
8+
worker_log_config: /etc/matrix-synapse/pusher-worker-log.yaml

docs/workers.md

+12
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,12 @@ pusher_instances:
488488
- pusher_worker2
489489
```
490490

491+
An example for a pusher instance:
492+
493+
```yaml
494+
{{#include systemd-with-workers/workers/pusher_worker.yaml}}
495+
```
496+
491497

492498
### `synapse.app.appservice`
493499

@@ -518,6 +524,12 @@ federation_sender_instances:
518524
- federation_sender2
519525
```
520526

527+
An example for a federation sender instance:
528+
529+
```yaml
530+
{{#include systemd-with-workers/workers/federation_sender.yaml}}
531+
```
532+
521533
### `synapse.app.media_repository`
522534

523535
Handles the media repository. It can handle all endpoints starting with:

0 commit comments

Comments
 (0)