2013-05-24 17:24:31 +08:00
2013-05-21 18:27:49 +08:00
2013-05-23 15:44:38 +08:00
2013-05-23 15:25:50 +08:00
2013-05-23 15:44:38 +08:00
2013-05-23 18:47:44 +08:00
2013-05-23 18:47:44 +08:00

PM2

The next generation process manager for Node.js.

Build Status

Features

  • Clusterize your Node networked script natively

  • Monitor process/clustered processes health (status, memory, cpu usage, restarted time) via CLI (htop like)

  • Monitor server health (processes, cpu core...) via JSON api

  • Manage your applications configuration via JSON or via CLI

  • Forever keep alive process

  • Log streaming in realtime

  • Builtin log uncaughtException

  • Log code grabbed from log.io

  • Log uncaught exception

  • Track restarted time

  • Dump current processes and resurect (upstart)

Installation

npm install -g pm2

Quick start

Test

npm test

A new paradigm

Javascript is single core processing. PM2 bring the creation of multi core JS, very easily.

Requirements

  • Script must be "stateless"
  • Node version must be > 0.8
  • Doesn't work (not tried) on Win

Roadmap

  • Remote administration via CLI
  • Inter process communication channel (message bus)
  • Remote require
  • Auto start of the script at start (upstart)
  • V8 GC memory leak detection
  • Monitoring on full time
  • Api endpoint benchmark

License

Description
Node.js Production Process Manager with a built-in Load Balancer.
Readme 24 MiB
Languages
JavaScript 81.3%
Shell 17.6%
Smarty 1%