New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

clu

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clu

Manage your node cluster. With zero downtime

  • 0.3.10
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by40%
Maintainers
1
Weekly downloads
 
Created
Source

clu

UNMAINTAINED – But turns out this module still works with node 6

A cluster manager with a built in CLI and a simple API for plugins. clu will spawn the requested number of workers, which will share the same port. This way the load gets distributed across all workers and multiple cores can be used effectively. It uses the node cluster API to do this.

Inspired by cluster.

Features:

  • built in CLI (optional)
  • zero downtime restarts
  • restarts workers one after another
  • add or remove workers on the fly
  • uses the node cluster API

Build Status Dependency Status

Getting Started

  1. npm install --save clu

  2. Create a server.js that starts your app.

    var clu = require('clu');
    
    clu.createCluster({
      exec: './app.js',
      workers: 2,
      silent: false,
      silentWorkers: true,
      cli: true
    });
    // short: clu.createCluster('./app.js');
    
    clu.use(clu.repl());
    
  3. Start your cluster with node server start

Use node server --help for a list of all commands.

You can also start the server with node server. This will start the server in the foreground.

Documentation

Plugins

Plugins can be used like this:

var cluDnode = require('clu-dnode');
clu.use(cluDnode());
clu.use(clu.repl('myRepl.sock'));

Built in:

  • clu.repl() - a repl interface

Official:

3rd Party: contact me if you create any :)

License

MIT

Keywords

FAQs

Package last updated on 30 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc