-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Replication request exceeds max size when trying to join room #9956
Comments
Hmm we probably shouldn't be limiting the size of replication traffic? |
Or at least the limit should probably be fairly big. I have no idea, what it currently is, but a few hundred megabytes is probably reasonable? |
For the record, the current limit is 1024, which sounds quite low to me. |
Having the same issue now in #steamlug:matrix.org and got the report that this causes each time my bot tries to join to do a "tried to join but made no change" membership event. So it seems like it joins but synapse doesnt realize it joined |
Yes, if that request fails a proper join even is sent, you synapse just fails to process the response. |
Yeah in this case it caused hundreds of join events and most likely even explains the extrem high load I had on join replication on master |
That's the default in the |
For what is worth my server (running 1.34) seemingly was affected by this issue as well, and was a show stopper in joining a very large number of federated rooms. This seems to be badly affecting Synapse workers setups with sharded event persisters. |
Until something better will come from upstream I temporarily came up with this patch: |
I think #10082 might fix this? |
I'm hoping it will be fixed by this, I suppose it is still possible to hit this error but should be unlikely. |
It looks like it would fix it for most cases, but it will fail with 101 events, that all have the maximum event size, I suppose. |
We probably should reduce the batch size to account for that just to be certain. @erikjohnston to review |
Yeah, looks like we cap request size to 200 events, and we're currently batching into 1000 events. |
this was introduced by #9817. |
Description
I'm getting the following error when trying to join #irc:matrix.org:
I have a few workers with an event_creator and persister as well as a master and a few federation workers. This is from the event_creator log. Increasing the maximum size in
synapse/synapse/http/site.py
Line 106 in 3ff2251
Steps to reproduce
Version information
If not matrix.org: neko.dev
Version: 1.33.1
Install method: custom ebuild
The text was updated successfully, but these errors were encountered: