summary refs log tree commit diff
path: root/synapse/replication/tcp/client.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-02-26 15:12:29 +0000
committerErik Johnston <erik@matrix.org>2019-02-26 15:12:33 +0000
commit25814921f1900e92b50830d6616762b174e82773 (patch)
tree904ebeed1660a6fb6f2c812df52ca956e1f5d7ea /synapse/replication/tcp/client.py
parentFix tightloop over connecting to replication server (diff)
downloadsynapse-25814921f1900e92b50830d6616762b174e82773.tar.xz
Increase the max delay between retry attempts
Otherwise if you have many workers they can easily take out master with
their connection attempts
Diffstat (limited to 'synapse/replication/tcp/client.py')
-rw-r--r--synapse/replication/tcp/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/replication/tcp/client.py b/synapse/replication/tcp/client.py
index 914cd24b55..51f90655d0 100644
--- a/synapse/replication/tcp/client.py
+++ b/synapse/replication/tcp/client.py
@@ -39,7 +39,7 @@ class ReplicationClientFactory(ReconnectingClientFactory):
     Accepts a handler that will be called when new data is available or data
     is required.
     """
-    maxDelay = 5  # Try at least once every N seconds
+    maxDelay = 30  # Try at least once every N seconds
 
     def __init__(self, hs, client_name, handler):
         self.client_name = client_name