Solved

How to add multiple listner in HA proxy configuration for Load Balancing

Posted on 2012-03-27
3
424 Views
Last Modified: 2012-05-08
Hello All,

I Need help for configure Load balancing in HA proxy, I want to add multiple host on listner port,
I have  domain as per network diagram, I already done www.example.com which is working on IIS and load balance working fine but i want to also distribute load for Static.example.com and content.example.com, this Sub domain  which is point on 8080 port of Tomcat-1 & 2 server, all Domain is Point on firewall & there is some rules to distribute to destination
So my question is how to add multiple listner in HA proxy configuration

I have add listen webfarm 192.168.1.100:80  but this is working for only www.example.com
Network-Diagram.jpg
haproxy.txt
0
Comment
Question by:Nilesh Havire
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
Thorrsson earned 500 total points
Comment Utility
Something like this:

listen  8080
  bind *:8080
  balance roundrobin
  mode http
    server tomcat-1 tomcat-1:8080 check inter 5000
    server tomcat-2 tomcat-2:8080 check inter 5000
0
 

Author Comment

by:Nilesh Havire
Comment Utility
Sorry for late reply,
actuly

I Need help for configure Load balancing for my WEB Server, I want to distrubute Load because every day now and I think I can gain more than 10000 visitors, I have one elearing Application which is run on IIS & Tomcat,  I have domain as per network diagram, www.example.com is running on IIS and lms.example.com running on Tomcat

Presently it's working on only Single Server but now i want to distribute load

can you give me any example please
0
 
LVL 10

Expert Comment

by:Thorrsson
Comment Utility
The example still works, two webservers that share a central content location and central DB (or cluster of DB servers and a iSCSI mount?)

Listen (port to listen on.. 80?)
bind (*= all IPs.. or specify one: port)
balance roundrobin will roundrobin requests to multiple backend servers (web servers)
mode http or https
server <name> <fqdn:port>
server <name2> <fqdn2:port>
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now