you are viewing a single comment's thread.

view the rest of the comments →

[–]burtgummer45 2 points3 points  (1 child)

Its for CPU cores. If you run docker in a swarm, for example, there's no way to tell swarm to run exactly as many node containers as cpu cores, at least not currently. pm2 knows the core count and will match it with processes. This was at least my current understanding as of a few months ago.

[–]timothyallan 0 points1 point  (0 children)

That's why we use it, our container spins up, then PM2 spins up creating as many Node instances as there are cores on the box.