summary refs log tree commit diff
path: root/synapse/replication/http/__init__.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Update license headersPatrick Cloke2023-11-211-10/+16
|
* Persist CreateRoom events to DB in a batch (#13800)Shay2022-09-281-0/+2
|
* Faster room joins: fix race in recalculation of current room state (#13151)Sean Quah2022-07-071-0/+2
| | | | | | | | | | | Bounce recalculation of current state to the correct event persister and move recalculation of current state into the event persistence queue, to avoid concurrent updates to a room's current state. Also give recalculation of a room's current state a real stream ordering. Signed-off-by: Sean Quah <seanq@matrix.org>
* Add missing type hints to synapse.replication.http. (#11856)Patrick Cloke2022-02-081-1/+1
|
* Add type hints for most `HomeServer` parameters (#11095)Sean Quah2021-10-221-2/+7
|
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-141-1/+0
| | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>`
* Fix deleting pushers when using sharded pushers. (#9465)Erik Johnston2021-02-221-0/+2
|
* Allow moving account data and receipts streams off master (#9104)Erik Johnston2021-01-181-0/+2
|
* Typing worker needs to handle stream update requests (#7967)Erik Johnston2020-07-281-1/+1
| | | | | IIRC this doesn't break tests because its only hit on reconnection, or something. Basically, when a process needs to fetch missing updates for the `typing` stream it needs to query the writer instance via HTTP (as we don't write typing notifications to the DB), the problem was that the endpoint (`streams`) was only registered on master and specifically not on the typing writer worker.
* Merge different Resource implementation classes (#7732)Erik Johnston2020-07-031-1/+2
|
* Add option to move event persistence off master (#7517)Erik Johnston2020-05-221-1/+3
|
* Allow ReplicationRestResource to be added to workers (#7515)Erik Johnston2020-05-181-5/+8
| | | This allows workers to talk to each other over HTTP replication.
* Move catchup of replication streams to worker. (#7024)Erik Johnston2020-03-251-0/+2
| | | This changes the replication protocol so that the server does not send down `RDATA` for rows that happened before the client connected. Instead, the server will send a `POSITION` and clients then query the database (or master out of band) to get up to date.
* Fix caching devices for remote servers in worker.Erik Johnston2019-11-051-1/+9
| | | | | | | | When the `/keys/query` API is hit on client_reader worker Synapse may decide that it needs to resync some remote deivces. Usually this happens on master, and then gets cached. However, that fails on workers and so it falls back to fetching devices from remotes directly, which may in turn fail if the remote is down.
* Split out registration to workerErik Johnston2019-02-181-1/+3
| | | | | | | | This allows registration to be handled by a worker, though the actual write to the database still happens on master. Note: due to the in-memory session map all registration requests must be handled by the same worker.
* Add replication APIs for persisting federation eventsErik Johnston2018-08-061-1/+2
|
* run isortAmber Brown2018-07-091-1/+0
|
* Fix importsErik Johnston2018-03-141-4/+1
|
* Implement RoomMemberWorkerHandlerErik Johnston2018-03-131-0/+2
|
* Add replication http endpoint for event sendingErik Johnston2018-02-071-0/+31