element-hq / element-hq/synapse
Disable `send_federation` on main process when `federation_sender` worker connects
Open
A-Federation
T-Enhancement
z-p4
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 600
- Avg merge
- 5d 22h
- Merged PRs (30d)
- 51
Description
This issue has been migrated from [#4809](https://github.com/matrix-org/synapse/issues/4809).
---
**Description:**
Would it be possible that Synapse sets `send_federation: false` internally, when a *federation_sender* connects to the replication port? The same with `enable_media_repo: false` and *media_repository*. Maybe it's possible to flip *send_federation* back, when the worker disconnects.
Maybe Synapse could also tell a second instance to not start, if another work of this kind is already running?
Contributor guide
Assessment
This issue has not been assessed yet.