~/talk

Production Applications with PM2

Talkat JSConf.Asia 2015 · 2015-11-19..11-20· [nodejs]
slides:none on file

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

  1. 0:00Intro
  2. 0:40Deploying to production is complex
  3. 2:19PM2: Some figures
  4. 4:51Installing PM2
  5. 5:03Setup PM2 No setup required! But...
  6. 6:00Launching a Node.js application
  7. 6:29Launching any kind of application
  8. 7:11Acting on processes
  9. 7:38Cluster mode EPM2.
  10. 8:10Why using the cluster mode?
  11. 8:59Starting an application cluster mode
  12. 9:34Managing clustered applications Reload without downtime
  13. 11:11Listing processes
  14. 11:54Monitoring CPU & Mem
  15. 14:06Inspecting logs
  16. 14:41Organizing applications PM
  17. 15:23Solution: JSON declaration
  18. 16:10Using the JSON declaration Start
  19. 17:17Extending the previous JSON
  20. 18:29Deployment commands
  21. 20:20What is a module?
  22. 21:43Installing a module
  23. 22:17Managing modules
  24. 22:46Module #1: pm2-logrotate
  25. 23:24Module #2: pm2-webshell
  26. 24:44Write your own module!
  27. 26:22Monitoring with Keymetrics
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.