aboutsummaryrefslogtreecommitdiff
path: root/userapi
diff options
context:
space:
mode:
authorKegsay <kegan@matrix.org>2021-03-30 10:01:32 +0100
committerGitHub <noreply@github.com>2021-03-30 10:01:32 +0100
commitf8d3a762c49a1dafe4e484a2440ade2bb6ba32ac (patch)
tree8d60967b3e93ba1387a0fa746e32dc1b23ed3572 /userapi
parent0ee1c56ffd6910de9bd268df0333c0135c42bff3 (diff)
Add a per-room mutex to federationapi when processing transactions (#1810)
* Add a per-room mutex to federationapi when processing transactions This has numerous benefits: - Prevents us doing lots of state resolutions in busy rooms. Previously, room forks would always result in a state resolution being performed immediately, without checking if we were already doing this in a different transaction. Now they will queue up, resulting in fewer calls to `/state_ids`, `/g_m_e`, etc. - Prevents memory usage from growing too large as a result and potentially OOMing. And costs: - High traffic rooms will be slightly slower due to head-of-line blocking from other servers, though this has always been an issue as roomserver has a per-room mutex already. * Fix unit tests * Correct mutex lock ordering
Diffstat (limited to 'userapi')
0 files changed, 0 insertions, 0 deletions