many duplicate _get_state_groups_from_groups
queries leading to OOMs
#10301
Labels
_get_state_groups_from_groups
queries leading to OOMs
#10301
This issue has been migrated from #10301.
We had a federation sender instance which died. On restart, it rapidly consumed all available ram and OOMed again.
Inspection from postgres side shows it is doing many duplicate queries of the form
This query is
_get_state_groups_from_groups
, which is called from_get_state_for_groups
. Although the latter has a cache, if many threads hit it at the same time, all will find the cache empty and go on to hit the database. I think we need a zero-timeoutResponseCache
on_get_state_groups_from_groups
.The text was updated successfully, but these errors were encountered: