diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2019-03-20 16:02:25 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-20 16:02:25 +0000 |
commit | a902d131804890ee6cc4137a669be92ceb2253c4 (patch) | |
tree | 439196e5d19779f54a5018c3c6a38024aa5fd7c6 /synapse/config | |
parent | Merge pull request #4894 from matrix-org/erikj/postgres_tuning (diff) | |
download | synapse-a902d131804890ee6cc4137a669be92ceb2253c4.tar.xz |
Batch up outgoing read-receipts to reduce federation traffic. (#4890)
Rate-limit outgoing read-receipts as per #4730.
Diffstat (limited to 'synapse/config')
-rw-r--r-- | synapse/config/ratelimiting.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/synapse/config/ratelimiting.py b/synapse/config/ratelimiting.py index 898a19dd8c..5a68399e63 100644 --- a/synapse/config/ratelimiting.py +++ b/synapse/config/ratelimiting.py @@ -42,6 +42,10 @@ class RatelimitConfig(Config): self.federation_rc_reject_limit = config.get("federation_rc_reject_limit", 50) self.federation_rc_concurrent = config.get("federation_rc_concurrent", 3) + self.federation_rr_transactions_per_room_per_second = config.get( + "federation_rr_transactions_per_room_per_second", 50, + ) + def default_config(self, **kwargs): return """\ ## Ratelimiting ## @@ -111,4 +115,12 @@ class RatelimitConfig(Config): # single server # #federation_rc_concurrent: 3 + + # Target outgoing federation transaction frequency for sending read-receipts, + # per-room. + # + # If we end up trying to send out more read-receipts, they will get buffered up + # into fewer transactions. + # + #federation_rr_transactions_per_room_per_second: 50 """ |