element-hq / element-hq/synapse

Extend send dummy event to remove really old extremities

Open
#8,725 0 comments 0 reactions 0 assignees View on GitHub
A-Performance
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 22h
Merged PRs (30d)
51

Description

This issue has been migrated from [#8725](https://github.com/matrix-org/synapse/issues/8725).

---

The current send dummy event mechanism will try and reduce the number of extremities in a room to below a threshold. However, if one of the extremities is really old then state res across a small number of extremities can still take quite a lot of resources. We should change the behaviour of the mechanism to try and remove old extremities, even if the count of extremities is below the threshold.

Contributor guide

Open the contributing guide

Research direction

Start by locating Synapse's current send dummy event mechanism and trace how it counts room extremities and applies its threshold. The change is complete when the mechanism also removes sufficiently old extremities even when the total count is below that threshold; the issue names no files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, distributed-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.