// catch the uncaught errors that weren't wrapped in a domain or try catch statement
// do not use this in modules, but only in applications, as otherwise we could have multiple of these bound
process.on('uncaughtException', function(err) {
// handle the error safely
console.log(err);
});--
You received this message because you are subscribed to the Google Groups "Node Cape Town" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodecpt+u...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
Visit this group at http://groups.google.com/group/nodecpt.
For more options, visit https://groups.google.com/groups/opt_out.
Len, that whole dshaw presentation was super educational for me. Thanks!!
I have tried clusters and domains and it's worked quite well. Just wanted to find out if anyone has used clusters successfully with socket.io? (I've tried socket.io-clusterhub and redisStore to manage connection pooling of the websocket connections across the different running processes, but had intermittent results)
Also http keep-alive keeps some of the cluster.workers connections open, as Ian mentioned this morning on gtalk, which means the cluster.worker doesn't close properly, after an uncaughtException (unless process.exit(1) is called in that cluster.worker, with a setTimeout).
Has anyone had a working implementation of nodejs clusters and socket.io and which socketio store (io.set('store', store)) did you use to pool the websocket connections?
--
You received this message because you are subscribed to the Google Groups "Node Cape Town" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodecpt+u...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
Visit this group at http://groups.google.com/group/nodecpt.
Hi Rudolf,
Thank you for the link and info. Going to try redisStore again. I realised that if you leave the serverURL parameter out of io.connect() in the client, it ascertains the server itself and works best for heroku servers, better than specifying the serverURL explicitly as the first parameter.
Will try clustering again in the coming week as one heroku dyno has 4 CPUs available, so it's a noticeable performance increase and helps with error handling.
Best,
Ruan
You received this message because you are subscribed to a topic in the Google Groups "Node Cape Town" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nodecpt/yS4Zh_UGuZ8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nodecpt+u...@googlegroups.com.