Socket
Socket
Sign inDemoInstall

cluster-service

Package Overview
Dependencies
6
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0-alpha3 to 2.0.0-alpha4

6

lib/commands/restart.js

@@ -37,3 +37,7 @@ var async = require("async"),

async.series(tasks, function(err) {
var limit = 1 +
Math.floor(
tasks.length * cservice.options.restartConcurrencyRatio
);
async.parallelLimit(tasks, limit, function(err) {
evt.locals.restartOnFailure = originalAutoRestart; // restore

@@ -40,0 +44,0 @@

@@ -41,3 +41,7 @@ var async = require("async"),

async.series(tasks, function(err) {
var limit = 1 +
Math.floor(
tasks.length * cservice.options.restartConcurrencyRatio
);
async.parallelLimit(tasks, limit, function(err) {
evt.locals.restartOnFailure = originalAutoRestart;

@@ -44,0 +48,0 @@

@@ -59,2 +59,3 @@ var os = require("os");

restartDelayMs: 100,
restartConcurrencyRatio: 0.33,
allowHttpGet: false, // useful for testing -- not safe for production use

@@ -61,0 +62,0 @@ restartsPerMinute: 10, // not yet supported

2

package.json
{
"name": "cluster-service",
"version": "2.0.0-alpha3",
"version": "2.0.0-alpha4",
"author": {

@@ -5,0 +5,0 @@ "name": "Aaron Silvas",

@@ -147,2 +147,5 @@ # cluster-service

(in seconds), the process will be restarted gracefully. Only one worker will be restarted at a time.
* `restartConcurrencyRatio` (default `0.33`) - The ratio of workers that can be restarted concurrently
during a restart or upgrade process. This can greatly improve the speed of restarts for applications
with many concurrent workers and/or slow initializing workers.
* `commands` - A single directory, an array of directories, or a comma-delimited list of directories

@@ -149,0 +152,0 @@ may be provided to auto-register commands found in the provided folders that match the ".js"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc