npm promotes metadefinitions
    Have ideas to improve npm?Join in the discussion! »

    node-kluster

    0.0.1 • Public • Published

    Info

    Kluster - library for create cluster solution base on weakly connected nodes.

    Example

     
    var Kluster = require("./index");
     
    var metadata = {
        url: "http://nodejs.com",
        version: "1.3.5.6",
        enable: true,
        entryPoints:  ["http://123.11.23.1:8787", "http://123.11.23.1:8788", "http://123.11.23.1:8789"]
    };
     
    var kluster = new Kluster(metadata);
    kluster.onNewNodeMetadata(
        function(metadata, info) {
            console.log(metadata);
        }
    );
    kluster.start();
     
    process.on("exit", function() {
        if (kluster) {
            kluster.stop();
            kluster = null;
        }
    });
     

    Keywords

    none

    Install

    npm i node-kluster

    DownloadsWeekly Downloads

    1

    Version

    0.0.1

    License

    BSD

    Last publish

    Collaborators

    • avatar