Sunday, 23 April 2017

PM2 Production Optimization

I just tried deploying node app on a "production" environment.

I use PM2 for process management in cluster mode.

My questions are:

  1. Why I can't see the console.log of the child_process I forked?

  2. I got 2 cores CPU hence 2 apps running on cluster mode using PM2. When I see the logs it seems that both do the same thing at the same time. Is it normal? or is there a way to choose which app to do which process?



via Kenan Christian

No comments:

Post a Comment