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;
    }
});

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i node-kluster

      Weekly Downloads

      0

      Version

      0.0.1

      License

      BSD

      Last publish

      Collaborators

      • yaroslavgaponov