Hi, when I start this for some reason. I am seeing CPU spike to 100% when using with the cluster module:
MongoStore = require('socket.io-mongo')
cluster = require('cluster')
numCPUs = require('os').cpus().length;
// This is what the workers will do.
workers = function() {
io = require('socket.io').listen(8080);
io.configure(function() {
io.set('store', new MongoStore())
})
}
// Start forking if you are the master
if (cluster.isMaster) {
for (var i = 0; i < numCPUs; i++) { cluster.fork() }
} else { workers() }
node: 0.8.14
socket.io-mongo: 0.0.8
socket.io: 0.9.13
Hi, when I start this for some reason. I am seeing CPU spike to 100% when using with the cluster module:
node: 0.8.14
socket.io-mongo: 0.0.8
socket.io: 0.9.13