smallappcluster
Example on how to achieve zero downtime deployment using Node.js cluster. Barebone Sails.js application running in multiple processes and listening for restart signal (SIGUSR2) to recycle worker processes with newly deployed code.
To run:
- Clone to local
- At command line:
npm install
- At command line:
sails lift
- Visit from browser:
http://localhost:1337/chat