#atom

High-performance TCP/HTTP load balancer and proxy server

Core Idea: HAProxy is an open-source software solution providing high availability, load balancing, and proxying for TCP and HTTP-based applications, known for its reliability, performance, and low resource consumption.

Key Elements

Key Features

Technical Specifications

Architecture Components

Implementation Example

Basic HAProxy configuration (haproxy.cfg):


global log /dev/log local0 user haproxy group haproxy maxconn 50000 daemon

defaults log global mode http option httplog option dontlognull timeout connect 5000 timeout client 50000 timeout server 50000

frontend http_front bind *:80 stats uri /haproxy?stats default_backend web_servers

backend web_servers balance roundrobin option httpchk HEAD / HTTP/1.1\r\nHost:\ localhost server web1 192.168.1.10:80 check server web2 192.168.1.11:80 check

Load Balancing Algorithms

Use Cases

Additional Connections

References

  1. HAProxy official documentation: https://www.haproxy.org/
  2. "Load Balancing with HAProxy" by Nick Ramirez

#load-balancing #high-availability #networking #infrastructure #reverse-proxy


Connections:


Sources: