Noodles Practicing Medicine

    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

    MIT-License

    Last publish

    Collaborators

    • yo_waka