Solved

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

Posted on 2012-03-27
3
429 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
ID: 37798763
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
ID: 37827935
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
ID: 37827982
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

813 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

10 Experts available now in Live!

Get 1:1 Help Now