Solved

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

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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

Suggested Solutions

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

911 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

21 Experts available now in Live!

Get 1:1 Help Now