A simple executable script to easily cluster an app
A command-line utility for node to launch apps in "clustered" mode
The cluster module is a very easy way to scale a node app across multiple CPU's. With clusterify you can develop your app without worrying about clustering at all. Just run
clusterify when you want to scale your app.
npm -g install clusterify
When run by itself, clusterify will automatically scale to the number of CPU's.
Clusterify will pass along environment variables and command line arguments to the worker processes.
To specify the number of workers to use, set the NODE_WORKERS environment variable:
NODE_WORKERS=10 clusterify myapp.js
- Worker respawning