Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

High CPU/DB usage from ReplicationUserDevicesResyncRestServlet #13518

Closed
richvdh opened this issue Aug 12, 2022 · 3 comments
Closed

High CPU/DB usage from ReplicationUserDevicesResyncRestServlet #13518

richvdh opened this issue Aug 12, 2022 · 3 comments

Comments

@richvdh
Copy link
Member

richvdh commented Aug 12, 2022

Sometimes our main process sees high CPU and DB usage due to thousands of requests to ReplicationUserDevicesResyncRestServlet:

image

We should find out what is calling this, and stop it doing so.

@richvdh
Copy link
Member Author

richvdh commented Aug 12, 2022

(this is enough CPU and DB usage to stop synapse responding to other requests, which is problematic)

@squahtx
Copy link
Contributor

squahtx commented Aug 12, 2022

May possibly have the same cause as #12890, where we saw a client endlessly retry POST /_matrix/client/v3/keys/query (which calls ReplicationUserDevicesResyncRestServlet) because it kept timing out. Each request went into a linearizer queue, behind previous requests, which guaranteed another timeout.

@richvdh
Copy link
Member Author

richvdh commented Aug 12, 2022

Yes, that looks right. I'll close this in favour of #12890.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants