https://github.com/ecto/axe
SHOW YOUR CLUSTER WHO'S BOSS
https://github.com/ecto/axe
Last synced: 9 months ago
JSON representation
SHOW YOUR CLUSTER WHO'S BOSS
- Host: GitHub
- URL: https://github.com/ecto/axe
- Owner: ecto
- Created: 2011-11-07T23:56:04.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2011-11-21T06:22:52.000Z (over 14 years ago)
- Last Synced: 2025-02-06T06:32:52.321Z (over 1 year ago)
- Language: JavaScript
- Homepage: http://andmyaxe.com/
- Size: 107 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# axe

# install
npm install axe
# usage
````javascript
var axe = require('axe');
axe.configure({
mesh: true,
autobalance: true,
});
axe.master(function(node, mesh){
setInterval(function(){
mesh.emit('ping');
});
});
axe.worker(function(node, mesh){
mesh.on('ping', function(){
console.log(node.id + ' ' + pong);
});
});
axe.on('start', function(){
console.log('axe started on port ' + this.port);
});
axe.start();
````
````javascript
var axe = require('axe');
axe.configure(require('config/axe.js'));
axe.master(require('master/main.js'));
axe.worker(require('worker/main.js'));
axe.start();
````