Giter Club home page Giter Club logo

division's People

Contributors

setthase avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

riston lazlojuly

division's Issues

debuging process 'close' issue

While in debug mode (node.exe --debug-brk=50429 --nolazy WEBS.js )
process shutdown with 'close' and 'restart' as well, does not work

So when you trying to shutdown, with 'close' and startup new one or ('restart') with 'watch' its just make more processes)

I think its some nodejs issue;

p.s. i dont think its really problem, its just is;
p.p.s in normal mode there is no this problem;

Found in win8.1, nodejs 4.2.6, debug with webstorm 11.0

1.0 release anytime soon?

Hi, I've been 0.4.5 for quite some time, but it doesn't seem to work well with iojs. Are you planning on publishing 1.0 anytime soon? Thanks!

multiple cluster instances issue

Hi, i trying to setup multiple clusters ( http and websocket servers ) in one app, but after running second instance of division (new division()) the first one becomes my second configuration..
its a bug or its not possible to make few cluster configuration in one app?
To easy check that just need to shutdown one process of first cluster instance.. and app reload cluster from second one..
Os: win8.1
nodejs version: 4.2.6

var async= require("async");`
var division= require('division');

// cluster global config
var clusterSize= require('os').cpus().length / 2;

async.series([
    function( callback ){
        var http = new division( { path: 'cluster/http.js', size: clusterSize } );
        // Configuration for development environment
        http.configure('development', () => {
            http.use('debug');
        });

        // Configuration for production environment
        http.configure('production', () => {
            http.enable('silent');
        });

        http.set('args', ['--http']);

        // Start your application as a cluster!
        http.run( () => callback() );
    },
    function( callback ){
        var ws = new division( { path: 'cluster/webs.js', size: 0 } );
        // Configuration for development environment
        ws.configure('development', () => {
            ws.use('debug');
        });

        // Configuration for production environment
        ws.configure('production', () => {
            ws.enable('silent');
        });

        ws.set('args', ['--websocket']);

        // Start your application as a cluster!
        ws.run( () => callback() );
    }
], ( e ) => {
    if( e )
        return console.error( e );
    console.log( "init" );
});

`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.