diff options
author | Erik Johnston <erik@matrix.org> | 2019-02-18 17:53:31 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-02-18 17:53:31 +0000 |
commit | a9b5ea6fc1e26ff791118b67af01fdad8e9c68c8 (patch) | |
tree | 3fc801c2c0ba1106363da1344dffc52728335f2d /synapse/replication | |
parent | Merge pull request #4632 from matrix-org/erikj/basic_sentry (diff) | |
download | synapse-a9b5ea6fc1e26ff791118b67af01fdad8e9c68c8.tar.xz |
Batch cache invalidation over replication
Currently whenever the current state changes in a room invalidate a lot of caches, which cause *a lot* of traffic over replication. Instead, lets batch up all those invalidations and send a single poke down the replication streams. Hopefully this will reduce load on the master process by substantially reducing traffic.
Diffstat (limited to 'synapse/replication')
-rw-r--r-- | synapse/replication/slave/storage/_base.py | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/synapse/replication/slave/storage/_base.py b/synapse/replication/slave/storage/_base.py |