strong-pm - 一个功能强大的 Node.js 进程管理工具
jopen
9年前
StrongLoop PM是一个功能强大的 Node.js 进程管理工具,内置负载平衡,监控,多主机部署和图形控制台。
特性
- 构建,打包和您的Node应用部署到本地或远程系统
- Aggregate & rotate logs
- 内置的负载均衡
- 保持进程和集群永远可用
- Profile CPU to find event loop stalls
- Profile memory to find leaks
- View performance metrics on your application
- Use graphical tool or CLI
- Docker support
Installation
Requirements:gitneeds to be installed
Install the client-side CLI and GUI (slc arc):
npm install -g strongloop slc -h
Run app
slc start app.js
Or to deploy and manage remotely, install the manager on a production server using npm:
npm install -g strong-pm && sl-pm-install
Or using docker:
curl -sSL http://strong-pm.io/docker.sh | sudo /bin/sh
Great for production!
- Supports remote deploy and management
- Git-based deploy for easy deployment versioning and rollback
- Deployment does not have external dependencies (production hosts don't have to fetch from npmjs.org or Git)
- Docker support
- Built and supported by Node core maintainers at StrongLoop, battle-tested by enterprise customers
Build & Deploy
- Multi-host deploy
- Deploy multiple applications to one Process Manager
- Zero-downtime application restarts and upgrades
- Install dependencies, run custom build steps, and prune development dependencies without affecting your source tree
- SSH, HTTP, or Git-based deploy
Profile
- Heap snapshots and CPU profiles
- Profile applications to find performance bottlenecks
- Trigger CPU profiling when the Node event loop stalls
Manage processes and clusters
- Use all available CPU cores
- Automatic restart on failure
- Log aggregation and management
- Change cluster size, view clustering info remotely
- Set up secure access via SSH / HTTPS
- Manage Nginx load-balancer for multi-host deployments
Metrics
- View performance metrics such as event loop times, CPU and memory consumption
- Publish metrics to StatsD-compatible servers, and view in 3rd-party consoles such as:
- DataDog
- Graphite
- Splunk
- Even syslog and raw log files
- See Integrating with third-party consoles for details.
- Third-party probe metrics, for example for Memcached, backends such as MongoDB, Redis, MySQL, and so on.