summary refs log tree commit diff
path: root/synapse/push/httppusher.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-08-29Fix coverage in sytest and use plugins for buildkite (#5922)Amber Brown8-32/+92
2019-08-28Add a link to python's logging config schema (#5926)Jorik Schellekens3-2/+5
2019-08-28Let synctl use a config directory. (#5904)Jorik Schellekens3-6/+15
* Let synctl use a config directory.
2019-08-28Update total_events and total_event_bytes on new events.Olivier Wilkinson (reivilibre)1-0/+6
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-28Add incremental counting for rooms' total events and total event bytes.Olivier Wilkinson (reivilibre)1-0/+106
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-28Add `total_event_bytes` to room statistics schema.Olivier Wilkinson (reivilibre)2-0/+3
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-28Removing entry for 5903Will Hunt1-1/+0
2019-08-28Use the v2 lookup API for 3PID invites (#5897)Andrew Morgan4-9/+166
Fixes https://github.com/matrix-org/synapse/issues/5861 Adds support for the v2 lookup API as defined in [MSC2134](https://github.com/matrix-org/matrix-doc/pull/2134). Currently this is only used for 3PID invites. Sytest PR: https://github.com/matrix-org/sytest/pull/679
2019-08-28Config templating (#5900)Jorik Schellekens9-46/+366
Template config files * Imagine a system composed entirely of x, y, z etc and the basic operations.. Wait George, why XOR? Why not just neq? George: Eh, I didn't think of that.. Co-Authored-By: Erik Johnston <erik@matrix.org>
2019-08-28Implement a structured logging output system. (#5680)Amber Brown31-82/+1328
2019-08-28Address code review comments github/rei/rss_inc3 rei/rss_inc3Olivier Wilkinson (reivilibre)1-24/+30
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-28Fix a cache-invalidation bug for worker-based deployments (#5920)Richard van der Hoff2-8/+17
Some of the caches on worker processes were not being correctly invalidated when a room's state was changed in a way that did not affect the membership list of the room. We need to make sure we send out cache invalidations even when no memberships are changing.
2019-08-28Typographical corrections in docker/README (#5921)Victor Goff1-5/+5
2019-08-28Code formatting (Black) github/rei/rss_inc2 rei/rss_inc2Olivier Wilkinson (reivilibre)1-1/+3
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-28Update synapse/storage/stats.pyreivilibre1-1/+1
Co-Authored-By: Erik Johnston <erik@matrix.org>
2019-08-27Clean up code with improved naming and hoist around functions.Olivier Wilkinson (reivilibre)1-79/+91
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-27Use `DeferredLock` instead of `threading.Lock`Olivier Wilkinson (reivilibre)2-4/+6
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-27Fix logic error.Olivier Wilkinson (reivilibre)1-1/+2
`absolute_fields` being None shouldn't preclude completion of a current stats row. Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-27Fix logic error.Olivier Wilkinson (reivilibre)1-1/+2
`absolute_fields` being None shouldn't preclude completion of a current stats row. Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-27Invalidate `get_earliest_token_for_stats` cache as required.Olivier Wilkinson (reivilibre)1-0/+1
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-27For user stats, handle other membership transitions properly.Olivier Wilkinson (reivilibre)2-7/+3
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-27Update `_purge_room_txn` to take account of separated stats tablesOlivier Wilkinson (reivilibre)1-1/+2
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-27Rename `room_state` table to `room_stats_state`Olivier Wilkinson (reivilibre)3-2/+5
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-27Remove obsolete `OldCollectionRequired` as old collection is obsolete.Olivier Wilkinson (reivilibre)1-6/+0
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-27For user stats, handle other membership transitions properly.Olivier Wilkinson (reivilibre)1-12/+16
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-27No-op if no membership change and thus simplify verbose dict updates.Olivier Wilkinson (reivilibre)1-28/+14
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-27Adapt to stats now working in millisecondsOlivier Wilkinson (reivilibre)1-1/+1
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-27Fix off by one error in SRV result shufflingErik Johnston1-8/+13
2019-08-27Don't include the room & user stats docs in this PR.Olivier Wilkinson (reivilibre)1-146/+0
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-27Switch to milliseconds in room/user stats for consistency.Olivier Wilkinson (reivilibre)3-10/+8
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-27Code formatting (Black)Olivier Wilkinson (reivilibre)1-5/+5
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-27Lock tables in upsert fall-backs.Olivier Wilkinson (reivilibre)1-0/+2
Should not be too much of a performance concern as this code won't be hit on Postgres, which large deployments should be using. Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-27Apply minor suggestions from reviewOlivier Wilkinson (reivilibre)1-4/+3
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-27Clarify `_update_stats_delta_txn` by adding code comments and kwargs.Olivier Wilkinson (reivilibre)1-16/+18
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-27Apply suggestions from code reviewreivilibre1-2