clu

clu

A nodejs cluster manager.

Showing:

Popularity

Downloads/wk

5

GitHub Stars

9

Maintenance

Last Commit

6yrs ago

Contributors

1

Package

Dependencies

8

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial