Comparing version 0.4.7 to 0.4.8
@@ -527,3 +527,6 @@ /* | ||
// Recycle self when no of connections connection threshold | ||
// we'd like to have the threshold randomized in between [1, 1.5) of the given threshold | ||
// to avoid all workers die around the same time. This is in particular important for boxes of small number of cpu cores | ||
var threshold = self.options.connThreshold; | ||
threshold = threshold + Math.floor((Math.random() * threshold) / 2); | ||
var recycle = setInterval(function() { | ||
@@ -530,0 +533,0 @@ if(totalConns > threshold) { |
@@ -8,3 +8,3 @@ { | ||
"name": "cluster2", | ||
"version": "0.4.7", | ||
"version": "0.4.8", | ||
"repository": { | ||
@@ -11,0 +11,0 @@ "type": "git", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
105083
1759