Questions tagged [haproxy]

HAproxy is a TCP/HTTP load balancer which provides cookie-based persistence, advanced traffic regulation with surge protection, automatic failover, run-time regex-based header control, Web-based reporting, advanced logging to help trouble-shooting buggy applications and/or networks, and a few other features.

HAProxy is a TCP/HTTP load balancer which provides cookie-based persistence, advanced traffic regulation with surge protection, automatic fail over, run-time regex-based header control, Web-based reporting, advanced logging to help trouble-shooting buggy applications and/or networks, and a few other features.

2659 questions
0
votes
1 answer

Haproxy: Contents load after "timeout server" hit

I'm totally new in the world of haproxy. I'm using it as loadbalancer with the following setup: loadablanacer (haproxy 2.2.9, deb11) 2x webserver with php-fpm and the Roundcube app (a webmail client, deb11) db server (MariaDB, deb11) I managed to…
0
votes
0 answers

Load balancing Harbor Repo is not working when path_beg is having multiple paths

I have configured my harbor docker registry using HA Proxy. Here is my HA Proxy configuration. frontend ashok_registry bind 0.0.0.0:8080 use_backend maven-repo if { path_beg -i /repository } use_backend harbor-repo if { path_beg -i…
0
votes
0 answers

Problem with load balancing web app (CyberArk's pvwas) with HAProxy over ssl

I have some difficulties with setting up a load balancer for a web app (CyberArk's pvwas, but i'm not sure it matters). Here is my certificate and page.cfg config file info: `Subject: CN=my.machine.name.in.DNS.A.record Subject Alternative Name: DNS…
0
votes
0 answers

How can I make Grafana:Loki parse through HAProxy Logs and appropriately assign labels to specific line items in the log?

I'm trying to get Grafana:Loki & PromTail working in my environment. Our goal is to pull information from /var/logs/haproxy.log to track the traffic hitting each of our servers. Specifically, client IP addresses so we can graph it out over time.…
GenEle
  • 1
  • 1
0
votes
1 answer

How make haproxy read scss/images/icons files inside assets folder referenced in a index.htm file?

How to make haproxy k8s pod read scss/images/icons files inside assets folder referenced in a index.htm file? I have a maintenance page whose text info is coming perfectly. We used maintenance page when our backend application is down for reason and…
James Taylor
  • 355
  • 1
  • 4
  • 13
0
votes
0 answers

haproxy starts empty (without tcp service section)

we use haproxy-ingress v0.13.6 (HA-Proxy version 2.3.17-d1c9119 2022/01/11) (and the previous haproxy-ingress versions performed the same) on k8s 1.19 and from time to time we have a problem when haproxy pod restarts due to liveness, node, or other…
Yegor
  • 1
  • 2
0
votes
0 answers

Haproxy clear table is not clearing all records

I have a stick-table in my Haproxy: backend myback stick-table type ip size 5k expire 1h store http_req_cnt http-request track-sc0 src When I clear the table using: echo "clear table myback" | sudo socat stdio /var/run/haproxy/admin.sock And…
Toami
  • 3
  • 4
0
votes
1 answer

Haproxy 4 frontend servers

In my company i have 20 web servers and use 4 haproxy servers to load balance the requests, i have configured them separately by declaring all 20 web apps ip in 4 haproxy and they are working pretty well. I have declared each ip of haproxy in dns…
0
votes
2 answers

haproxy cannot detect services after reboot

I have reids nodes: NAME READY STATUS RESTARTS AGE pod/redis-haproxy-deployment-65497cd78d-659tq 1/1 Running 0 31m pod/redis-sentinel-node-0 3/3 Running 0…
cevoye
  • 43
  • 3
0
votes
0 answers

GCP Registry behind HAProxy not working properly

I have configured my GCP docker registry using HA Proxy. Here is my HA Proxy configuration. frontend myfrontend bind 0.0.0.0:8080 use_backend maven-repo if { path_beg -i /repository } use_backend gcp-repo if { path_beg -i /dev-registry } …
0
votes
0 answers

Haproxy in docker cannot access device's localhost via "host.docker.internal"

I need to configure Haproxy for local testing. The goal is to have 3 services haproxy in docker container listening http app on device's (macOS) localhost a client app sending request through haproxy to the listening app (number…
dom
  • 414
  • 3
  • 12
0
votes
1 answer

Restart o reload HAProxy service

I am trying to restart using sudo service haproxy restart for the restart and service haproxy reload for the reload but it fails to do it, giving me this error: Job for haproxy.service failed. See "systemctl status haproxy.service" and "journalctl…
lazlomeli
  • 61
  • 7
0
votes
0 answers

Load Balancer with external check

Could you please advice how to solve the issue below? I need to balance traffic between the two hosts using the external check. So I need to retrieve two values from the api response every 10 minutes, compare these two values and set traffic to the…
0
votes
1 answer

How can I rewrite URLs in HAProxy?

Used HAProxy version: v2.6.6 What I’m trying to achieve is that when a user visit http://haproxyserver.domain.com/application1, HAProxy gets the page at https://appserver1.otherdomain.com/ and send it back as…
Opper
  • 1
  • 1
  • 3
0
votes
1 answer

HAProxy SSL termination: how to resolve certificate error only experienced by WAN clients?

My HAProxy SSL termination setup works exactly as expected for LAN clients, but if I use a WAN client (e.g. Tor Browser) I get a certificate error. Yet, they can bypass my 80->443 redirect and access my server on port 80 if I provide a firewall rule…