Production Applications with PM2
summary
PM2 is a production process manager for Node.js that claims 2 million downloads and ~10,000 GitHub stars, and ships a built‑in load balancer, cluster mode to use all CPUs, zero-downtime reloads and a simple deployment workflow driven by an ecosystem.json. It includes a module system (examples: pm2-logrotate, pm2-webshell) and integrates with keymetrics.io for monitoring. The project reports ~2,500 commits, 120 contributors and 750 tests; Docker works but requires foreground mode care and extra documentation.
AI-written summary · about
chapters (27)
- 0:00Intro
- 0:40Deploying to production is complex
- 2:19PM2: Some figures
- 4:51Installing PM2
- 5:03Setup PM2 No setup required! But...
- 6:00Launching a Node.js application
- 6:29Launching any kind of application
- 7:11Acting on processes
- 7:38Cluster mode EPM2.
- 8:10Why using the cluster mode?
- 8:59Starting an application cluster mode
- 9:34Managing clustered applications Reload without downtime
- 11:11Listing processes
- 11:54Monitoring CPU & Mem
- 14:06Inspecting logs
- 14:41Organizing applications PM
- 15:23Solution: JSON declaration
- 16:10Using the JSON declaration Start
- 17:17Extending the previous JSON
- 18:29Deployment commands
- 20:20What is a module?
- 21:43Installing a module
- 22:17Managing modules
- 22:46Module #1: pm2-logrotate
- 23:24Module #2: pm2-webshell
- 24:44Write your own module!
- 26:22Monitoring with Keymetrics
related talks
20mRabbitMQ and PM2 in Node.js for managing Multiple Processes
29mBreathe Into the Node.js
47mCreating Enterprise Web Applications with Node.js
02h 24mHow to Node.js - Part 2
13mLessons learned in production
40mDeploying node.js at scale
30mNodeJS: Patterns and Tools to Ship to Production with Confidence
27mProgressive Microservices with NodeJS
