This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Shuting down a room with 4k+ users takes more than 2h #7651
Labels
A-Performance
Performance, both client-facing and admin-facing
T-Enhancement
New features, changes in functionality, improvements in performance, or user-facing enhancements.
Z-Help-Wanted
We know exactly how to fix this issue, and would be grateful for any contribution
z-p3
(Deprecated Label)
Description
It is not actually an issue, more a painful behavior.
I tried to use the admin API to shut down a room with 4443 local members (no remote users) and 4450 state events. It worked but took 122 minutes!
Here is a screenshot showing the users joining the new roow, it is quite slow:

The leave rate from the previous room was similar.
I do not claim to understand exactly what happens, but this seems very long to me, in particular when we know that the API call is synchronous. I think this API should be asynchronous, like the purge history API is.
It should be noted that purging this room was surprisingly fast: it tooks only 52s.
Steps to reproduce
I don't think anyone actually want to reproduce it, but if you do here are the steps :p
curl -X POST https://<your HS domain/_synapse/admin/v1/shutdown_room/<room id>
Version information
If not matrix.org:
Version: 1.14.0
Install method: apt
The text was updated successfully, but these errors were encountered: