Saturday, 30 November 2019

Running 2 or more node apps, process/cpu allocation?

I've been trying to look for a thorough explanation online but haven't been able to find anything. If I have a VPS with 2 cpus, and I run two separate node apps on that machine, how does node determine which cpu to run on? I'm not talking about running the same app in cluster mode- If I have two apps that do different things, but want to utilize my VPS thoroughly - will running node app.js then node otherApp.jsbe enough?What is actually happening here differently than if the app was the same and using cluster mode?

Submitted November 30, 2019 at 07:08PM by pomeloanthony

No comments:

Post a Comment