2019-10-21 16:53:58 +02:00
|
|
|
'use strict'
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
DIAL_TIMEOUT: 30e3, // How long in ms a dial attempt is allowed to take
|
|
|
|
MAX_PARALLEL_DIALS: 100, // Maximum allowed concurrent dials
|
2019-12-04 13:53:32 +01:00
|
|
|
MAX_PER_PEER_DIALS: 4, // Allowed parallel dials per DialRequest
|
2021-07-09 08:46:24 +02:00
|
|
|
MAX_ADDRS_TO_DIAL: 25, // Maximum number of allowed addresses to attempt to dial
|
2019-12-11 16:05:59 +01:00
|
|
|
METRICS: {
|
|
|
|
computeThrottleMaxQueueSize: 1000,
|
|
|
|
computeThrottleTimeout: 2000,
|
|
|
|
movingAverageIntervals: [
|
|
|
|
60 * 1000, // 1 minute
|
|
|
|
5 * 60 * 1000, // 5 minutes
|
|
|
|
15 * 60 * 1000 // 15 minutes
|
|
|
|
],
|
|
|
|
maxOldPeersRetention: 50
|
|
|
|
}
|
2019-10-21 16:53:58 +02:00
|
|
|
}
|