_CORE
AI & Agentic Systems Core Information Systems Cloud & Platform Engineering Data Platform & Integration Security & Compliance QA, Testing & Observability IoT, Automation & Robotics Mobile & Digital Banking & Finance Insurance Public Administration Defense & Security Healthcare Energy & Utilities Telco & Media Manufacturing Logistics & E-commerce Retail & Loyalty
References Technologies Blog Know-how Tools
About Collaboration Careers
CS EN
Let's talk

HAProxy tutorial

04. 12. 2020 1 min read intermediate

HAProxy je nejrozšířenější open-source load balancer.

Installation

sudo apt install haproxy sudo systemctl enable –now haproxy

Configuration

global maxconn 50000 defaults mode http timeout connect 5s timeout client 30s timeout server 30s frontend web bind *:80 bind *:443 ssl crt /etc/ssl/site.pem redirect scheme https if !{ ssl_fc } default_backend servers backend servers balance roundrobin option httpchk GET /health server web1 10.0.1.1:3000 check server web2 10.0.1.2:3000 check server web3 10.0.1.3:3000 check backup

Stats

listen stats bind *:8404 stats enable stats uri /stats

  • ACL routing — URL, headers, cookies
  • Rate limiting — stick tables
  • Connection draining — graceful shutdown
  • SSL termination

HAProxy = spolehlivost

Battle-tested load balancer pro produkci.

haproxyload balancingha
Share:

CORE SYSTEMS tým

Stavíme core systémy a AI agenty, které drží provoz. 15 let zkušeností s enterprise IT.