Přeskočit na obsah
_CORE
AI & Agentic Systems Core Informační Systémy Cloud & Platform Engineering Data Platforma & Integrace Security & Compliance QA, Testing & Observability IoT, Automatizace & Robotika Mobile & Digital Banky & Finance Pojišťovnictví Veřejná správa Obrana & Bezpečnost Zdravotnictví Energetika & Utility Telco & Média Průmysl & Výroba Logistika & E-commerce Retail & Loyalty
Reference Technologie Blog Knowledge Base O nás Spolupráce Kariéra
Pojďme to probrat

HAProxy — load balancing pro webove aplikace

09. 07. 2013 1 min čtení CORE SYSTEMSinfrastructure

Apache s mod_jk slouzil jako load balancer, ale s rostoucim trafficem hledame lepsi reseni. HAProxy je de facto standard — rychly, spolehlive a s vynikajici konfiguraci.

Proc HAProxy

Lepsi health checks, detailni statistiky (real-time dashboard), nizsi resource footprint, lepsi sticky session management. Dediklovany load balancer vs. web server s LB funkci.

Konfigurace

Frontend, backend, health check na /health endpoint. Sticky sessions pres cookie SERVERID. Automaticky failover.

Zero-downtime deployment

Rolling deployment: vyradit server A, upgradovat, vratit do poolu, pak server B. CLI: set server state drain.

Zaverem

HAProxy je vyborny load balancer. Stats dashboard a CLI umoznuji operacni flexibilitu, kterou Apache nenabizi.

haproxyload balancinghainfrastructure