Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tag: v0.1.0
Fetching contributors…

Cannot retrieve contributors at this time

38 lines (24 sloc) 0.588 kb

Mixture - Heterogeneous cluster task manager

Install

npm install mixture

Cluster more.

var mix = require('mixture').mix()

var ioPort = 8880
  , nodeId = 0

// announce data server
mix.task('announce').fork('data.js');

// socket.io instances
var socketio = mix.task('socket.io', { filename: 'app.js' })

for (var i = 0; i < count; i++) {
  ioPort++;
  nodeId++;

  var worker = socketio.fork({ args: [ioPort, nodeId] })
}

Sample Apps

License

  • MIT
Jump to Line
Something went wrong with that request. Please try again.