/load-balancer-node

A node application for uderstanding load balancing using nginx.

Primary LanguageJavaScript

Nginx Load Balancer for node application.

Setup

  • Install nginx

  • sudo apt-get install nginx

  • Install nodejs

  • sudo apt-get install nodejs

  • Install npm

  • sudo apt-get install npm

Installation

  • Download the latest version of the nginx-load-balancer-for-nodejs.

  • git clone repo.git

Configuration

  • Configure and customise the server.conf file for customising the nginx configuration.

Run

  • Run multiple instances of your node application in multiple terminals

  • OR

  • Run the node application with the help of PM2 (Process Manager)