1 var cluster = require('cluster');
2 var os = require('os');
4 if (cluster.isMaster) {
5 console.log('master running on pid %d', process.pid);
6 for (var i = 0, n = os.cpus().length; i < n; ++i) cluster.fork();
8 require(__dirname + '/http_simple.js');