Q55: What is the relationship between Node.js core Cluster module and PM2?
PM2 wraps Node.js core cluster module under the hood, managing process lifecycles, health monitoring, load balancing, and dynamic scaling through simple configurations.
Key Takeaways
- PM2 builds upon the built-in Node.js cluster capabilities.
- Provides operational management, automatic restarts, and CLI controls.
Knowledge Check
What PM2 CLI flag activates cluster mode automatically for available CPU cores?