Sorry if this question is to 'newbie' but I can't see how to do it / how it works.
1/ I am creating an API using node.js, API serving some front apps
2/ To get it robust I use pm2 (great product), having nginx as proxy, fine
3/ But how could I handle multiple instance of my node.js api ? My node.js is listening on a single port (8080 for instance). I can't have 4 processes listening on the same port, do pm2 dispatch the calls between instances (so acting as a kind of proxy indeed).
so so, does it has something to do with the cluster mode ?
Any clue will be appreciated
Greg
via Gregoire Mulliez
No comments:
Post a Comment