-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Synchrotrons always wake up sync streams for presence updates #8955
Comments
I think I found a great spot to poke this to model this behavior. However, I also think I need a little more information for my testing branch before I offer a fix. (I also need to make sure my assumption that the notifier from presence is called with a The code for synapse/synapse/handlers/presence.py Lines 1502 to 1535 in 78cfa55
Which condition doesn't pass muster? Quick summary of what it looks like:
Do nothing for:
Keeping in mind, some unit tests may have to be adjusted based on how aggressively this changes. Complement tests should not, as they should be 'correct' behavior based on spec. For Monolith deployments: For Worker deployments: So, it looks like
For this part, I think this may have been done? |
When calculating presence changes we decide whether we should actively wake up sync streams, or if they should just be bundled up the next time we send a response for another reason. We do not appear to propagate whether to wake up sync streams across replication, and we appear to always notify for presence updates:
synapse/synapse/app/generic_worker.py
Lines 381 to 390 in 6d02eb2
It's unclear how much this will help.
(Note that we batch up presence updates that we don't notify for and persist/replicate them once a minute).
The text was updated successfully, but these errors were encountered: