5

I'm trying to setup a production environment with a frontend running nginx and a backend with multiple nodejs applications using pm2 for process management.

The idea is to allow horizontal scalability on the backend (and optional vertical). Is good idea use a load balancing with nginx (upstream) and also multiple process on the backend with pm2? It could be conflictive or not necessary?

If using load balance on the frontend can create multiple backend machines with a single process (horizontal). Or can use nginx only as http server and use pm2 multiprocess on the backend (vertical). Or use nginx load balance and pm2 multiprocess (horizontal and vertical)

In the past we have had problems with resizing machines in our rackspace cloud, so i prefer to balance from the frontend in horizontal.

Jordifreek
  • 51
  • 2

0 Answers0