npm.io
0.0.6 • Published 9 years ago

monkey-scale

Licence
ISC
Version
0.0.6
Deps
9
Vulns
2
Weekly
0

monkey-scale

Automatically scale you node clusters up and down. Also monitor your cluster's performance.


const express = require("express");
const app = express();
const monkey = require("monkey");

// normal configuration
app.set("port", 3000);
app.get("/", function(req,res) {
  res.send("<h1>Your Server</h1>");
})

// monkey will listen to the port specified
// pass empty parameters for default configuration
monkey(app, {});

// or set minimum and maximum number of workers
monkey(app, {threshold:4,limit:8});

Keywords