npm

Need private packages and team management tools?Check out npm Orgs. »

bowl

0.1.1 • Public • Published

Bowl

Bowl is a Node.js module for running worker script in multi-core using "cluster" module.

Bowl provides a monitoring mechanism to check worker process, and restart workers gracefully. In addition, it is also possible to hot deploy detecting a change in the directory or file, and extend the master process by plugin scripts.

Usage

Install

You can also install from npm.

npm install -g bowl

By CLI

Please see help.

% bowl -h
// display how to specify options and can be specified

By module

/path/to/project/index.js

var Bowl = require('bowl');
 
var bowl = new Bowl({
  exec: './app.js',
  forks: require('os').cpus().length,
  watch: ['app', 'lib', 'app.js'],
  plugins: ['plugins/foo.js', 'plugins/bar.js']
});
 
bowl.run(function(err) {
  console.log('Bowl has started');
});

Keywords

none

install

npm i bowl

Downloadsweekly downloads

0

version

0.1.1

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability