Skip to content

maskodingku/load-balancer-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

load-balancer-nodejs

nodejs load balancing app to distribute http requests evenly across multiple servers.

1M requests routed to 10 proxies

How to use ?

  1. Please edit the file 'config.json'.
  2. enter the value 'host' and 'port' with the following format:
{
  "host" : "your-ip-server",
  "port" : port-server
}
  1. Perform package installation
npm install
  1. For a test run:
npm test
  1. If you want to run in production mode, please install the 'pm2' module.
npm install pm2 -g
  1. Then run the following command:
npm start

------------------------------------ **** ------------------------------

Thanks to :

  1. PM2 : https://www.npmjs.com/package/pm2
  2. http-proxy : https://www.npmjs.com/package/http-proxy
  3. load-balancers : https://www.npmjs.com/package/load-balancers

About

nodejs load balancing app to distribute http requests evenly across multiple servers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors