riak-bot

0.0.2 • Public • Published

riak-bot

riak node configuration, discovery & auto clustering

// TODO: node reip, cluster join/plan/commit

// TODO: actually discover

Example:


// instantiate
var
    rb = require('riak-bot')
 	, node = new rb({ 
        bind : '0.0.0.0'
        , host : '127.0.0.1'
        , name : 'ohai'
        , key : 'riak' // ring cookie
        , directory: './' // config path
    })
;

// update some stuff maybe?
node.set('name', 'riak');

// write the configs
node.configure();

// catch some errors
node.on('error', function(err) { 

    console.log([ '[', (new Date()).toLocaleString(), '] ', err ].join(''));
});

Package Sidebar

Install

npm i riak-bot

Weekly Downloads

2

Version

0.0.2

License

BSD

Last publish

Collaborators

  • nexxy
  • s5fs