element-hq / element-hq/synapse

Try and fail if there are multiple workers running with the same worker name

Open
#9,345 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.