Implement PM2 with nodejs app in localhost . 

Git repo : pm2-nodejs-localhost


app.js have a sample node js code , which creates a server on port 80 in localhost and render the content

pm2

pm2 is a process manager, which manages the running process in nodejs application. pm2 provides load balancing, zero downtime, and auto scaling of cluster based on the size of the processor. pm2 provides rich interface to monitor the status of process & logs of the process.


1


2

3


4


5

Using pm2 also can do auto scaling and balancing the load distribution among multiple instances.

To check load test, can install another npm package loadtest

6


7


8