KEY_EXPIRE = 3h
# Timeout KRPC requests to nodes after this time.
-KRPC_TIMEOUT = 14s
+KRPC_TIMEOUT = 9s
# KRPC requests are resent using exponential backoff starting with this delay.
# The request will first be resent after the delay set here.
# The request will be resent again after twice the delay set here. etc.
-# e.g. if TIMEOUT is 14 sec., and INITIAL_DELAY is 2 sec., then requests will
+# e.g. if TIMEOUT is 9 sec., and INITIAL_DELAY is 2 sec., then requests will
# be resent at times 0, 2 (2 sec. later), and 6 (4 sec. later), and then will
-# timeout at 14.
+# timeout at 9.
KRPC_INITIAL_DELAY = 2s
# whether to spew info about the requests/responses in the protocol
'KEY_EXPIRE': '3h', # 3 hours
# Timeout KRPC requests to nodes after this time.
- 'KRPC_TIMEOUT': '14s',
+ 'KRPC_TIMEOUT': '9s',
# KRPC requests are resent using exponential backoff starting with this delay.
# The request will first be resent after the delay set here.
# The request will be resent again after twice the delay set here. etc.
- # e.g. if TIMEOUT is 14 sec., and INITIAL_DELAY is 2 sec., then requests will
+ # e.g. if TIMEOUT is 9 sec., and INITIAL_DELAY is 2 sec., then requests will
# be resent at times 0, 2 (2 sec. later), and 6 (4 sec. later), and then will
- # timeout at 14.
+ # timeout at 9.
'KRPC_INITIAL_DELAY': '2s',
# whether to spew info about the requests/responses in the protocol
'STORE_REDUNDANCY': 3, 'RETRIEVE_VALUES': -10000,
'MAX_FAILURES': 3, 'LOCAL_OK': True,
'MIN_PING_INTERVAL': 900,'BUCKET_STALENESS': 3600,
- 'KRPC_TIMEOUT': 14, 'KRPC_INITIAL_DELAY': 2,
+ 'KRPC_TIMEOUT': 9, 'KRPC_INITIAL_DELAY': 2,
'KEY_EXPIRE': 3600, 'SPEW': True, }
def setUp(self):
'STORE_REDUNDANCY': 3, 'RETRIEVE_VALUES': -10000,
'MAX_FAILURES': 3, 'LOCAL_OK': True,
'MIN_PING_INTERVAL': 900,'BUCKET_STALENESS': 3600,
- 'KRPC_TIMEOUT': 14, 'KRPC_INITIAL_DELAY': 2,
+ 'KRPC_TIMEOUT': 9, 'KRPC_INITIAL_DELAY': 2,
'KEY_EXPIRE': 3600, 'SPEW': True, }
def setUp(self):
'STORE_REDUNDANCY': 3, 'RETRIEVE_VALUES': -10000,
'MAX_FAILURES': 3, 'LOCAL_OK': True,
'MIN_PING_INTERVAL': 900,'BUCKET_STALENESS': 3600,
- 'KRPC_TIMEOUT': 14, 'KRPC_INITIAL_DELAY': 2,
+ 'KRPC_TIMEOUT': 9, 'KRPC_INITIAL_DELAY': 2,
'KEY_EXPIRE': 3600, 'SPEW': True, }
def setUp(self):
'STORE_REDUNDANCY': 3, 'RETRIEVE_VALUES': -10000,
'MAX_FAILURES': 3, 'LOCAL_OK': True,
'MIN_PING_INTERVAL': 900,'BUCKET_STALENESS': 3600,
- 'KRPC_TIMEOUT': 14, 'KRPC_INITIAL_DELAY': 2,
+ 'KRPC_TIMEOUT': 9, 'KRPC_INITIAL_DELAY': 2,
'KEY_EXPIRE': 3600, 'SPEW': True, }
def _done(self, val):
"""Check for a unrecoverable timeout, otherwise resend."""
self.later = None
delay = datetime.now() - self.start
- if delay > timedelta(seconds = self.config.get('KRPC_TIMEOUT', 14)):
+ if delay > timedelta(seconds = self.config.get('KRPC_TIMEOUT', 9)):
log.msg('%r timed out after %0.2f sec' %
(self.tid, delay.seconds + delay.microseconds/1000000.0))
self.protocol.timeOut(self.tid, self.method)
from stats import StatsLogger
af = Receiver()
a = hostbroker(af, StatsLogger(None, None),
- {'KRPC_TIMEOUT': 14, 'KRPC_INITIAL_DELAY': 2, 'SPEW': False})
+ {'KRPC_TIMEOUT': 9, 'KRPC_INITIAL_DELAY': 2, 'SPEW': False})
a.protocol = KRPC
p = reactor.listenUDP(port, a)
return af, a, p
<term><option>KRPC_TIMEOUT = <replaceable>time</replaceable></option></term>
<listitem>
<para>The <replaceable>time</replaceable> to wait before KRPC requests timeout.
- (Default is 14 seconds.)</para>
+ (Default is 9 seconds.)</para>
</listitem>
</varlistentry>
<varlistentry>
<para>The <replaceable>time</replaceable> to start with when resending KRPC requests using exponential backoff.
The request will first be resent after the delay set here.
The request will be resent again after twice the delay set here, and so on.
- e.g. if TIMEOUT is 14 sec., and INITIAL_DELAY is 2 sec., then requests will
+ e.g. if TIMEOUT is 9 sec., and INITIAL_DELAY is 2 sec., then requests will
be resent at times 0, 2 (2 sec. later), and 6 (4 sec. later), and then will
- timeout at 14. (Default is 2 seconds.)</para>
+ timeout at 9. (Default is 2 seconds.)</para>
</listitem>
</varlistentry>
<varlistentry>
KEY_EXPIRE = 3h
# Timeout KRPC requests to nodes after this time.
-KRPC_TIMEOUT = 14s
+KRPC_TIMEOUT = 9s
# KRPC requests are resent using exponential backoff starting with this delay.
# The request will first be resent after the delay set here.
# The request will be resent again after twice the delay set here. etc.
-# e.g. if TIMEOUT is 14 sec., and INITIAL_DELAY is 2 sec., then requests will
+# e.g. if TIMEOUT is 9 sec., and INITIAL_DELAY is 2 sec., then requests will
# be resent at times 0, 2 (2 sec. later), and 6 (4 sec. later), and then will
-# timeout at 14.
+# timeout at 9.
KRPC_INITIAL_DELAY = 2s
# whether to spew info about the requests/responses in the protocol