diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2019-03-20 16:04:35 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-20 16:04:35 +0000 |
commit | cdb803616195c76306b30328af9da7cb2b32c960 (patch) | |
tree | 69d932c9342dabfe24521baf03c505ee075b8ca2 /synapse/config/server.py | |
parent | Batch up outgoing read-receipts to reduce federation traffic. (#4890) (diff) | |
download | synapse-cdb803616195c76306b30328af9da7cb2b32c960.tar.xz |
Add a config option for torture-testing worker replication. (#4902)
Setting this to 50 or so makes a bunch of sytests fail in worker mode.
Diffstat (limited to 'synapse/config/server.py')
-rw-r--r-- | synapse/config/server.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/config/server.py b/synapse/config/server.py index 499eb30bea..08e4e45482 100644 --- a/synapse/config/server.py +++ b/synapse/config/server.py @@ -126,6 +126,11 @@ class ServerConfig(Config): self.public_baseurl += '/' self.start_pushers = config.get("start_pushers", True) + # (undocumented) option for torturing the worker-mode replication a bit, + # for testing. The value defines the number of milliseconds to pause before + # sending out any replication updates. + self.replication_torture_level = config.get("replication_torture_level") + self.listeners = [] for listener in config.get("listeners", []): if not isinstance(listener.get("port", None), int): |