-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
High database usage by get_auth_chain_ids_chains
after no particular event
#17470
Comments
I enabled
Could this be a symptom of GHSA-3h7q-rfh9-xm4v ? EDIT: it does not seem so, I just updated to v1.111 and the issue persists. |
As it seems the problem came from intensive recursive SQL queries, I tried to issue a The |
As my best clue was the logs shown in #17470 (comment), I decided to find what rooms were affected. So I used the following query where SELECT room_id
FROM event_auth_chains AS chains
INNER JOIN events ON (chains.event_id = events.event_id)
WHERE chain_id = 444066; In my case, I had multiple long queries all linking to EDIT: hmm... not really, there are a lot of other rooms that show this behaviour |
same behavior on my side. Running |
Description
The CPU usage of my server started to increase after no particular action on my end. After digging a little, I did find that the
get_auth_chain_ids_chains
transaction started to take a lot more time that previously.Synapse exporter:
Postgres exporter:
Steps to reproduce
Homeserver
club1.fr
Synapse Version
1.103.0
Installation Method
Debian packages from packages.matrix.org
Database
PostgreSQL single server, restored from a backup
Workers
Single process
Platform
Linux club1.fr 5.10.0-31-amd64 #1 SMP Debian 5.10.221-1 (2024-07-14) x86_64 GNU/Linux
Configuration
Definitely some unusual config:
Relevant log output
Anything else that would be useful to know?
No response
The text was updated successfully, but these errors were encountered: