0
donuts
4y

For a Node API is there a difference between starting cluster mode using a PM2 vs calling cluster.fork() inside the first instance?

I have some apps that create the cluster internally and others via PM2 but I don't know why or why it makes a difference... Other than the cluster processes not showing up in pm2 list

Comments
  • 0
    PM2 can be configured to use either child process scaling or fork behavior via the cluster api. Outside of that, it's just convenience, management and other quality of life features.
Add Comment