diff options
author | Erik Johnston <erik@matrix.org> | 2019-06-17 18:04:42 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-06-18 15:02:18 +0100 |
commit | b42f90470f00831bfd9b7ebca19111ed229599b0 (patch) | |
tree | 9e6a7011d237f4149567fb3e2cf2e32b39879d11 /synapse/config | |
parent | Merge pull request #5385 from matrix-org/erikj/reduce_http_exceptions (diff) | |
download | synapse-b42f90470f00831bfd9b7ebca19111ed229599b0.tar.xz |
Add experimental option to reduce extremities.
Adds new config option `cleanup_extremities_with_dummy_events` which periodically sends dummy events to rooms with more than 10 extremities. THIS IS REALLY EXPERIMENTAL.
Diffstat (limited to 'synapse/config')
-rw-r--r-- | synapse/config/server.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/config/server.py b/synapse/config/server.py index 7d56e2d141..6e5b46e6c3 100644 --- a/synapse/config/server.py +++ b/synapse/config/server.py @@ -317,6 +317,12 @@ class ServerConfig(Config): _check_resource_config(self.listeners) + # An experimental option to try and periodically clean up extremities + # by sending dummy events. + self.cleanup_extremities_with_dummy_events = config.get( + "cleanup_extremities_with_dummy_events", False, + ) + def has_tls_listener(self): return any(l["tls"] for l in self.listeners) |