Ga naar hoofdinhoud
50% korting alle plannen, beperkte tijd. Vanaf $2.48/mo
HAProxy

HAProxy

HAProxy is een krachtige TCP- en HTTP-load balancer. Bewezen onder miljoenen RPS en gebruikt door GitHub, Reddit, Stack Overflow en Twitter. De referentie-load balancer wanneer NGINX of AWS ALB niet snel of uitgebreid genoeg is. Gratis Community-editie, betaalde Enterprise-versie.

In een oogopslag

6.6k

GitHub-sterren

94

Paginaweergaven

316

Actieve installaties

Versie Latest OS Ubuntu Server 24.04 LTS Min RAM 1 GB IP IPV4,IPV6

Actieve installaties zijn voorbeeldgegevens (voorvertoning); de echte maatstaf wordt voor de lancering gekoppeld.

Versiecontrole

haproxy -v

Belangrijke bestanden en mappen

  • Configuratiebestand: /etc/haproxy/haproxy.cfg
  • Binair: /usr/sbin/haproxy

Servicebeheer

HAProxy starten:

systemctl start haproxy

Herstart na configuratiewijzigingen:

systemctl restart haproxy

Status controleren:

systemctl status haproxy

Bekijk live logs:

journalctl -u haproxy -f

Configuratie

Configuratie bewerken:

vim /etc/haproxy/haproxy.cfg

Configuratie valideren:

haproxy -c -f /etc/haproxy/haproxy.cfg

Herstart na wijzigingen:

systemctl restart haproxy

Opmerkingen

  • HAProxy is geïnstalleerd maar NIET automatisch geconfigureerd
  • Zorg ervoor /etc/haproxy/haproxy.cfg correct is ingesteld voor gebruik
  • Herstart vereist na elke wijziging
  • De service werkt niet correct met een lege standaardconfiguratie

Meer in DevOps-tools

Gerelateerde apps.

Implementeer HAProxy nu. Vanaf $2,48/mnd.