Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6948839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:52:32+00:00 2026-05-27T13:52:32+00:00

I am currently using Linode to deploy my application. I have 2 servers, 1

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T13:52:33+00:00Added an answer on May 27, 2026 at 1:52 pm

    I’m not sure what you were saying about 25% and 75%, but if you are referring to cpu / memory you should know that Node is very efficient when it doesn’t have stuff to do, so that can explain the situation.

    Also, the only way to use multiple cores is to spawn more processes (thus use cluster).

    The fact that you are using RedisStore (so Socket.IO can keep connection data in memory instead of a single process => to scale outside one process) and Redis for pub/sub is excellent, you can use these standalone with Socket.IO also (NowJS is another layer of abstraction above Socket.IO).

    So you should use multiple processes and then try to scale horizontally (upgrade your machine) and only after try to scale vertically (adding more machines).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently using Windows Server 2008 Standard and have several Hyper V machines.
Currently using System.Web.UI.WebControls.FileUpload wrapped in our own control. We have licenses for Telerik. I
Im currently using a java application to run commands on a unix box by
I am currently using the community edition of jasperReports Server 4.1.0 build 20110626_0015. basically,
I am currently using matplotlib.pyplot to create graphs and would like to have the
I'm currently using exif_read_data to load the information from JPG, JPEG, TIFF and TIF
I am currently using Dozer to map to sets of objects. I have a
Currently using cocos2d. I have a plist data name myplist.plist. Inside the plist are
I am currently using Java to communicate with device through Serial communication. I have
I am currently using mixpanel with the default 'mixpanel' gem for analytics and have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.