1
0
Commit Graph

18736 Commits

Author SHA1 Message Date
Erik Johnston
fc17e4e62e fix logging contexts 2021-05-04 18:09:03 +01:00
Erik Johnston
0d9d84dac0 fix logging contexts 2021-05-04 18:06:23 +01:00
Erik Johnston
04db7b9581 Merge branch 'erikj/limit_how_often_gc' into erikj/test_send 2021-05-04 17:59:35 +01:00
Erik Johnston
24965fc073 Merge branch 'erikj/efficient_presence_join' into erikj/test_send 2021-05-04 17:59:31 +01:00
Erik Johnston
5b031e2da3 Merge branch 'erikj/fix_presence_joined' into erikj/test_send 2021-05-04 17:59:16 +01:00
Erik Johnston
14b70bbd9f Merge branch 'erikj/refactor_keyring' into erikj/test_send 2021-05-04 17:57:57 +01:00
Erik Johnston
d4175abe52 Allow fetching events 2021-05-04 17:57:46 +01:00
Erik Johnston
b76fe71627 Fix remote resource 2021-05-04 17:57:46 +01:00
Erik Johnston
7f237d5639 Remove key_ready 2021-05-04 17:57:46 +01:00
Erik Johnston
f37c5843d3 Merge branch 'erikj/refactor_keyring' into erikj/test_send 2021-05-04 17:37:22 +01:00
Erik Johnston
d6ae1aef46 Merge remote-tracking branch 'origin/develop' into erikj/test_send 2021-05-04 17:37:15 +01:00
Erik Johnston
3bfd3c55f9 Refactor keyring 2021-05-04 17:36:02 +01:00
Erik Johnston
cad5a47621 Bugfix newsfile 2021-05-04 15:54:39 +01:00
Erik Johnston
e3bc4617fc Time external cache response time (#9904) 2021-05-04 15:14:22 +01:00
Erik Johnston
7e3d333b28 Move newsfile 2021-05-04 14:51:28 +01:00
Erik Johnston
b5169b68e9 Document default. Add type annotations. Correctly convert to seconds 2021-05-04 14:23:02 +01:00
Erik Johnston
4a8a483060 Fix store.get_users_in_room_with_profiles 2021-05-04 14:09:44 +01:00
Andrew Morgan
b85821aca2 Add port parameter to the sample config for psycopg2 args (#9911)
Adds the `port` option with the default value to the sample config file.
2021-05-04 13:28:59 +01:00
Erik Johnston
8624333cd9 Correctly invalidate get_users_in_room_with_profiles cache 2021-05-04 13:27:28 +01:00
Erik Johnston
4caa84b279 Use lists instead of sets where appropriate 2021-05-04 13:16:15 +01:00
Erik Johnston
48cf260c7a Process state deltas in presence by room 2021-05-04 13:16:02 +01:00
Erik Johnston
7e5f78a698 Convert other uses of get_current_users_in_room and add warning 2021-05-04 13:02:18 +01:00
Erik Johnston
43c9acda4c Config 2021-05-04 11:49:13 +01:00
Erik Johnston
bd04fb6308 Code review 2021-05-04 10:47:32 +01:00
Erik Johnston
d3a6e38c96 Apply suggestions from code review
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2021-05-04 10:40:18 +01:00
Erik Johnston
aa1a026509 Stuff 2021-04-30 15:19:31 +01:00
Erik Johnston
260c760d69 Don't log response 2021-04-30 15:18:17 +01:00
Erik Johnston
49da5e9ec4 Chunk _check_sigs_and_hash_and_fetch 2021-04-30 15:17:50 +01:00
Erik Johnston
3b2991e3fb Log memory usage 2021-04-30 15:00:22 +01:00
Erik Johnston
aec80899ab Merge branch 'erikj/stream_deserealize' into erikj/test_send 2021-04-30 14:21:58 +01:00
Erik Johnston
68f1d258d9 Use ijson 2021-04-30 14:19:27 +01:00
Erik Johnston
8481bacc93 Merge branch 'erikj/efficient_presence_join' into erikj/test_send 2021-04-30 13:37:08 +01:00
Erik Johnston
68b6106ce5 Newsfile 2021-04-30 13:36:50 +01:00
Erik Johnston
0ed608cf56 Increase perf of handling presence when joining large rooms.
We ended up doing a *lot* of duplicate work, and e.g. ended up doing n^2
worth of `is_mine_id(..)` checks across all joined users.
2021-04-30 13:34:15 +01:00
Erik Johnston
ac0143c4ac Record size of incoming bytes 2021-04-30 10:24:19 +01:00
Erik Johnston
f5a25c7b53 Merge branch 'erikj/limit_how_often_gc' into erikj/test_send 2021-04-30 10:14:23 +01:00
Erik Johnston
5813719696 Merge branch 'erikj/fix_presence_joined' into erikj/test_send 2021-04-30 10:14:18 +01:00
Erik Johnston
6640fb467f Use correct name 2021-04-29 17:44:54 +01:00
Erik Johnston
0c8cd62149 Newsfile 2021-04-29 17:36:34 +01:00
Erik Johnston
996c0ce3d5 Use get_current_users_in_room from store and not StateHandler 2021-04-29 17:35:47 +01:00
Erik Johnston
938efeb595 Add some logging 2021-04-29 16:41:16 +01:00
Erik Johnston
4a3a9597f5 Merge remote-tracking branch 'origin/develop' into erikj/test_send 2021-04-29 16:41:04 +01:00
Andrew Morgan
4d624f467a Merge tag 'v1.33.0rc2' into develop
Synapse 1.33.0rc2 (2021-04-29)
==============================

Bugfixes
--------

- Fix tight loop when handling presence replication when using workers. Introduced in v1.33.0rc1. ([\#9900](https://github.com/matrix-org/synapse/issues/9900))
2021-04-29 14:35:14 +01:00
Andrew Morgan
d11f2dfee5 typo in changelog v1.33.0rc2 2021-04-29 14:31:14 +01:00
Patrick Cloke
bb4b11846f Add missing type hints to handlers and fix a Spam Checker type hint. (#9896)
The user_may_create_room_alias method on spam checkers
declared the room_alias parameter as a str when in reality it is
passed a RoomAlias object.
2021-04-29 07:17:28 -04:00
Andrew Morgan
e9444cc74d 1.33.0rc2 2021-04-29 11:45:37 +01:00
ThibF
0085dc5abc Delete room endpoint (#9889)
Support the delete of a room through DELETE request and mark
previous request as deprecated through documentation.

Signed-off-by: Thibault Ferrante <thibault.ferrante@pm.me>
2021-04-29 10:31:45 +01:00
Erik Johnston
351f886bc8 Newsfile 2021-04-28 14:55:46 +01:00
Erik Johnston
79627b3a3c Limit how often GC happens by time.
Synapse can be quite memory intensive, and unless care is taken to tune
the GC thresholds it can end up thrashing, causing noticable performance
problems for large servers. We fix this by limiting how often we GC a
given generation, regardless of current counts/thresholds.

This does not help with the reverse problem where the thresholds are set
too high, but that should only happen in situations where they've been
manually configured.

Adds a `gc_min_seconds_between` config option to override the defaults.

Fixes #9890.
2021-04-28 14:51:31 +01:00
Erik Johnston
802560211a Merge remote-tracking branch 'origin/release-v1.33.0' into develop 2021-04-28 14:43:10 +01:00