Node cluster

1.npm install -g pm2 # install pm2 globally
2.pm2 start app.js -i max # -i Enable load-balancer and cluster features, max number of core
3.pm2 l # list all processes
4.pm2 monit # for monitoring

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s