element-hq / element-hq/synapse
Try and fail if there are multiple workers running with the same worker name
Open
T-Task
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 600
- Avg merge
- 5d 22h
- Merged PRs (30d)
- 51
Description
This issue has been migrated from [#9345](https://github.com/matrix-org/synapse/issues/9345).
---
A bunch of stuff assumes that worker names are unique, especially workers that write to streams (and most workers write to the caches stream).
One possible way of doing this is to use postgres application locks, so that we can check every time a postgres connection is created that the running instance is only one with the given worker name. (This is slightly complicated as there will be multiple DB connections from the same process at the same time)
Contributor guide
Assessment
This issue has not been assessed yet.