This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
slow cleanup in device_lists_outbound_pokes
#16480
Labels
A-Database
DB stuff like queries, migrations, new/remove columns, indexes, unexpected entries in the db
A-Performance
Performance, both client-facing and admin-facing
S-Major
Major functionality / product severely impaired, no satisfactory workaround.
T-Defect
Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
There is a cleanup job called
prune_old_outbound_device_pokes
(https://github.com/matrix-org/synapse/blob/v1.93.0/synapse/storage/databases/main/devices.py#L1297-L1388) which periodically attempts to clear out thedevice_lists_outbound_pokes
table a bit.The SELECT query can sometimes be very slow and IO-intensive. Sometimes it even takes longer than the 1 hour request timeout, meaning that it gets stuck without ever making any progress.
@erikjohnston suggests:
The text was updated successfully, but these errors were encountered: