I am currently using Linode to deploy my application. I have 2 servers, 1 database server with 1 Load Balancer in front.
I am using Redis as the Database and NowJS to implement chat rooms. Everything works fine using Pub/Sub. Now, I want to use cluster to take advantage of multi-core server. However, when applying cluster, I ran into weird situation. Sometimes, the app works, sometimes it does not it is about 25% working and 75% not working (I ran 4 processes). Therefore, I can assume that cluster causes the nowJS to not working properly. Now, I have to make the decision
1.Switch to SocketIO and use RedisStore (can I still use pub/sub along with RedisStore for SocketIO ? or switch completely to RedisStore)
2.Forget about clustering and add more server if needed (Is it a waste of resources since multiple cores are not utilized)
P/s: I am sorry for my bad English, I am not native.