Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for simple OOB Round Robin load balancing #220

Closed
kul opened this issue Mar 29, 2012 · 1 comment
Closed

Add support for simple OOB Round Robin load balancing #220

kul opened this issue Mar 29, 2012 · 1 comment

Comments

@kul
Copy link

kul commented Mar 29, 2012

It would be great to provide some simple Round Robin Load balancing OOB.Like

var options =
{
balance:
{
'localhost:'localhost:8181',
'localhost':'localhost:8182'
}
};

var proxyServer = httpProxy.createServer(options);
proxyServer.listen(80);

@Marak
Copy link
Contributor

Marak commented Mar 29, 2012

I'm not sure if it's a good idea to include balancing logic in the core module. Balancing should be the responsibility of another library.

I did add a simple http load balancing example to the project. :-)

https://github.com/nodejitsu/node-http-proxy/blob/master/examples/balancer/simple-balancer.js

@Marak Marak closed this as completed Mar 29, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants