Reduce the reconnect time when replication fails. (#6617)
This commit is contained in:
parent
0495097a7f
commit
6964ea095b
|
@ -0,0 +1 @@
|
||||||
|
Reduce the reconnect time when worker replication fails, to make it easier to catch up.
|
|
@ -46,7 +46,8 @@ class ReplicationClientFactory(ReconnectingClientFactory):
|
||||||
is required.
|
is required.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
maxDelay = 30 # Try at least once every N seconds
|
initialDelay = 0.1
|
||||||
|
maxDelay = 1 # Try at least once every N seconds
|
||||||
|
|
||||||
def __init__(self, hs, client_name, handler: AbstractReplicationClientHandler):
|
def __init__(self, hs, client_name, handler: AbstractReplicationClientHandler):
|
||||||
self.client_name = client_name
|
self.client_name = client_name
|
||||||
|
|
Loading…
Reference in New Issue