element-hq / element-hq/synapse
Fault-tolerant Matrix setup
Open
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
Assessment
This issue has not been assessed yet.