Should I use pm2 for my node js app?

My app right now is running on 4 distributed VMs that each have one shared CPU.

Now, if I upgrade these to VMs with 2 shared CPUs, my node JS app will still only use one core as far as I’m aware.

If I want to utilize both cores, I think I’ll need to use something like PM2. PM2 has an option where it tries to run your app in as many instances as possible given the resources.

But will running my app using PM2 create any problems?

Don’t use pm2, the overhead isn’t worth it; use Cluster | Node.js v22.5.1 Documentation

maybe run multiple instance with a single core. Or use Bun, I think it can run on multiple cores but I’m not sure

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.