Very Basic configuration entries that we need to add:
frontend app_serers *:80
default_backend apps
backend apps
server servername1 ipadddiress:80 check
server servername1 ipadddiress:80 check
HAProxy and Unison
-------------------
Yes I have a great experience with HAProxy. I setup Haproxy for a Newsportal. The website was highly hitting traffic, so I have configured his load balancer cluster with the help of HAproxy, Unison and MySQL replication.
Haproxy is a High Availability load balancer, it provides high availability at network TCP and applications HTTP/s layers
and improving speed and performance by distributing workload across multiple servers.
Different Type of load balancers:
Application Load Balancers, Network Load Balancers, and Elastic Load Balancers
In Aplication load balancer serves as the single point of contact for clients. The load balancer distributes incoming application traffic across multiple targets
Elastic Load Balancing (ELB) automatically distributes incoming application traffic across multiple targets and virtual appliances
Network load balancing is the ability to balance traffic across two or more WAN links
ELB only allows routing based on port number.
ALB
# haproxy -c command to troublechot configuttaation issues
# Log: /var/log/haproxy, /var/log/messages
# Haproxy config File: /etc/haproxy/haproxy.cfg
# Port: 80
L4 load balancing delivers traffic with limited network information
L7 load balancing works at the highest level of the OSI model
## HAProxy load balancer accept incomming traffic from client and distribute requestes to registered targets based on the helth configured
# Listen is using to define different aplications or ports
# Haproxy is not like a forward proxy. HAProxy Enterprise is used as a reverse proxy in front of your backend servers
four essential sections in HAProxy configuration file. global , defaults , frontend , and backend
Apache Load balancer
The Apache Balancer Manager allows you to monitor and manage your load balancing configuration
LoadModule headers_module modules/mod_headers.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule ssl_module modules/mod_ssl.so