Skip to content

Batch outbound device list poke replication notifications#19529

Open
sandhose wants to merge 3 commits intodevelopfrom
quenting/batch-device-outbound-pokes-replication
Open

Batch outbound device list poke replication notifications#19529
sandhose wants to merge 3 commits intodevelopfrom
quenting/batch-device-outbound-pokes-replication

Conversation

@sandhose
Copy link
Member

@sandhose sandhose commented Mar 5, 2026

Move notify_replication() and send_device_messages() from inside the per-row loop to after each batch of room-poke conversions. This allows the outbound pokes to be coalesced into fewer RDATA messages by the deduplication in DeviceListsStream._update_function (see #19528), rather than trickling out one at a time.

Follow up from #19528

sandhose added 3 commits March 5, 2026 11:14
Move notify_replication() and send_device_messages() from inside the
per-row loop to after each batch of room-poke conversions. This allows
the outbound pokes to be coalesced into fewer RDATA messages by the
deduplication in DeviceListsStream._update_function, rather than
trickling out one at a time.
@sandhose sandhose marked this pull request as ready for review March 5, 2026 10:19
@sandhose sandhose requested a review from a team as a code owner March 5, 2026 10:19
Comment on lines -1148 to -1154
hosts, immediate=False
)
# TODO: when called, this isn't in a logging context.
# This leads to log spam, sentry event spam, and massive
# memory usage.
# See https://github.com/matrix-org/synapse/issues/12552.
# log_kv(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed because we don't care about it anymore?

If this is the case, we should close #12559 (previously matrix-org/synapse#12559) (linked from matrix-org/synapse#12552)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants