-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Outgoing presence exploded in 1.35.0rc1 #10153
Comments
The two presence related PRs in v1.35.0 are #10014 and #9823. #10014 attempted to prevent presence updates from being accidentally deleted, whereas #9823 deals with optional functionality to send all known user presence to a local or remote user when requested by a Synapse module. I'm currently looking at the latter as it may explain a large spike in traffic... |
I don't see anything unusual in either PR. #10014 fixed the insertion of rows into the #9823 messes about with sending large numbers of user presence out, though I don't see how this could happen unless the Attempting to reproduce the bug on a homeserver without a federation sender has failed, while another with a federation sender does exhibit similar behaviour (but only after upgrading it from v1.35.1 to v1.36.0rc1 + #10149)... |
I actually have one duplicated in the |
CPU usage increase (~1.5-2x) since the upgrade 1.34.0 -> 1.35.1
I also see periodic cpu spikes (exactly every minute) accompanied by a lot of Open FDs for federation_sender also looks unusual. Before the upgrade open FDs was ~100/worker, with occasional spikes up to 1500/worker. Now they constantly hold ~1500 open FDs. Version information
|
For the sake of completeness, I just heard someone float the idea that federation patterns are likely to change now that the libera.chat bridge is up and running on its own homeserver, rather than being part of matrix.org. But it seems like the observed issues are happening at a variety of times most closely associated with server upgrades. |
While I would expect federation patterns to change, I don't think it makes sense, that I am sending 20x as much presence because of an additional server. Inbound traffic barely changed. |
I'm also seeing an increase of incoming presence. I have presence disabled, but it is taking a large hit on my system, making it struggle keeping up. |
I think #10163 should fix this, but it fixes a bug that I think has been there since v1.33.0? |
When using a federation sender we'd send out all local presence updates over federation even when they shouldn't be. Fixes #10153.
When using a federation sender we'd send out all local presence updates over federation even when they shouldn't be. Fixes #10153.
I would appreciate if people could try the linked patch (which has now merged to |
Will this be in the next rc or in 1.37rc1? If it is the latter, I'll just add the patch to my patchset, otherwise I would wait until rc2. |
The branch |
When using a federation sender we'd send out all local presence updates over federation even when they shouldn't be. Fixes #10153.
Thank you both, we have ended up releasing a v1.36.0rc2 with a fix for this in |
Description
There seems to be a huge spike in outgoing presence right after 1.35.0rc1 was released. Incoming presence also went up, but not as much.
My federation sender is also having trouble with metrics after the 1.36.0rc1 upgrade (which is what I was looking into when I noticed the presence problem), but that might be a separate issue:
Version information
events
stream writer), appservice sender, media repoThe text was updated successfully, but these errors were encountered: