element-hq / element-hq/synapse

Fault-tolerant Matrix setup

Open
#2,068 0 comments 0 reactions 0 assignees View on GitHub
A-Workers T-Enhancement
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 22h
Merged PRs (30d)
51

Description

This issue has been migrated from [#2068](https://github.com/matrix-org/synapse/issues/2068).

---

Is it currently possible to create a fault-tolerant cluster of Synapse servers, where two or more Synapse servers look to the one PostgreSQL database?
As far as I can see, this is not possible now, because of stream_id generators (synapse/synapse/storage/util/id_generators.py), which are ok for one server but can have duplicate values in case of two or more servers.
I think the correct solution should use PSQL sequences for stream_id generation (I'm trying to implement it right now). What do you think?

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.