Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Does there exist a simple Load Balancer app for development on Windows? I am running a pair of JBoss 5.x instances in a cluster on a single machine. Normally , this configuration is load balanced by a nice hardware load balancer but I am wondering if there is a simple piece of software to enable load balancing in my Eclipse dev environment.

Basically, for example, I want a load balancer running on port 11111 that round-robins between the 2 clustered JBoss instances on ssl ports 8443 and 8543 . (or http port if thats not possible)

I know that Glassfish has a built-in load balancer but I can't use Glassfish.

One idea I have is to try to setup a separate instance of Tomcat with the "balancer" web app. Im trying that now... not sure if it will work... and its a complicated setup and I wish there was something really easy.

share|improve this question
    
This would be better off on serverfault.com –  Sasha Chedygov Jan 20 '10 at 1:31
add comment

3 Answers 3

up vote 1 down vote accepted

You could use Apache HTTP Server with the mod_proxy_balancer module.

share|improve this answer
add comment

You can use use Nginx !! Install nginx and add config file !!!

http {
  upstream myproject {
    server 127.0.0.1:8000;
    server 127.0.0.1:8001;
  }

  server {
    listen 80;
    server_name localhost;
    location / {
      proxy_pass http://myproject;
    }
  }
}
share|improve this answer
add comment

Instead of load balancing between ports, why not bind each instance to a specific loopback IP address. The whole 127.0.0.0/8 network is loopback (not just 127.0.0.1). If you configure your processes to bind to 127.0.0.2 and 127.0.0.3 (or whatever you want) then you can do IP round robin. This can be done with DNS if you wish.

You could also write a wrapper that binds to an IP/port and will randomly forward the connection to one of the servers, and just pass the data through.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.