• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 435
  • Last Modified:

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

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
Nilesh Havire
Asked:
Nilesh Havire
  • 2
1 Solution
 
ThorrssonCommented:
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
 
Nilesh HavireAuthor Commented:
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
 
ThorrssonCommented:
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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now