Solved

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

Posted on 2012-03-27
3
431 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VPS for routing recomendations 3 85
AWS EC2 HTTP & HTTPS 2 79
linux 13 109
Using sort and uniq to pare down large syslog 6 77
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
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 …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.

726 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