Dienstag, 21. Juni 2011

Simple Loadbalancer with NodeJS HTTPS -> HTTP(S) Servers

Here I use NodeJS with a combination of the module node-http-proxy
To loadbalance requests to several server listening to https oder http

When you have installed NPM like this
curl http://npmjs.org/install.sh | sh
then you can install node-http-proxy by:
npm install http-proxy

 Now you can use this file proxy.js:

you can start the load-balancer like this:
node proxy.js

Keine Kommentare:

Kommentar veröffentlichen