mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-03-27 12:51:05 +00:00
18 lines
493 B
JavaScript
18 lines
493 B
JavaScript
'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
|
|
MAX_PER_PEER_DIALS: 4, // Allowed parallel dials per DialRequest
|
|
METRICS: {
|
|
computeThrottleMaxQueueSize: 1000,
|
|
computeThrottleTimeout: 2000,
|
|
movingAverageIntervals: [
|
|
60 * 1000, // 1 minute
|
|
5 * 60 * 1000, // 5 minutes
|
|
15 * 60 * 1000 // 15 minutes
|
|
],
|
|
maxOldPeersRetention: 50
|
|
}
|
|
}
|