I want to run 2 node.js application on single server , using pm2 and those application need to deploy via puppet.Could you please advise is this possible.
Regards, Bala
YOu can run same nodejs app as a cluster via pm2. https://github.com/Unitech/pm2#commands-overview
pm2 start app.js -i 4 # Start 4 instances of application in cluster mode
So it balances your processes as well. it has nothing to do with puppet.
To run multi diff node apps you can check the process.yml
http://pm2.keymetrics.io/docs/usage/application-declaration/
and than
# Start all applications
$ pm2 start process.json