Questions tagged [haproxy]

HAProxy is an open source, very fast and reliable solution offering high availability, load balancing, and proxying for TCP and HTTP-based applications. It is particularly suited for web sites crawling under very high loads while needing persistence or Layer7 processing.

Filter by
Sorted by
Tagged with
2 votes
1 answer
67 views

Load balancer with HAProxy

I'm trying to set up a load balancer with HAProxy, but I'm having trouble understanding how to configure it. Can someone provide an example configuration?
Super22's user avatar
  • 31
0 votes
0 answers
26 views

Load balance TCP stream traffic based on delimiter

I am looking for clarification if either Nginx or HAProxy are capable of load balancing TCP stream content based on some delimiters in the stream. The TCP connection is long-lived and is being used ...
Sergei I.'s user avatar
0 votes
1 answer
52 views

haproxy doesn't seem to see all the backends/replicas

I'm trying to make haproxy proxy requests to a number of replicas: docker-compose.yml: services: haproxy: image: haproxy:2.3-alpine volumes: - ./haproxy.cfg:/usr/local/etc/haproxy/...
x-yuri's user avatar
  • 2,298
0 votes
0 answers
25 views

HTTP 3 - How to resolve this error [migrated]

user@host:~/haproxy-2.7.1$ make TARGET=linux2.6.32 USE_OPENSSL=1 USE_NGHTTP2=1 USE_QUIC=1 CC src/slz.o CC src/ev_poll.o CC src/ssl_sock.o In file included from include/haproxy/...
user1081996's user avatar
0 votes
0 answers
35 views

HAProxy 2.4 does not forward HTTP / Hangs

I have a server using docker-compose using the image haproxy:1.4. It works fine but I wanted to migrate to a more recent version. But starting with haproxy:2.4, haproxy does not work anymore. This my ...
Luke Skywalker's user avatar
0 votes
1 answer
71 views

HAproxy with Keepalived not behaving as expected

I have two servers in a public subnet with both public and private IPs. I want to configure HAproxy with keepalived and make server1 act as the master and server2 as backup. If server1 goes down, I ...
Mervin Hemaraju's user avatar
0 votes
0 answers
91 views

Website's file types all set as HTML when going through HaProxy

When I open "my-website.com", the full page never loads because the .css and .js files seem to be served as html. This only happens when accessing the website through my loadbalencer. I have ...
João Robalo's user avatar
0 votes
0 answers
47 views

haproxy: inline acl with variable in statement condition

Let's have following backend configuration: HAProxy version 2.4.24-0ubuntu0.22.04.1 2023/10/31 - https://haproxy.org/ backend back-test http-request set-var(req.instance) hdr(X-Instance-Name) ...
sharpener's user avatar
  • 101
0 votes
1 answer
164 views

HAProxy always returns 502 Bad Gateway but the backend responds

I have a HAProxy 2.8.4 which is used to proxy multiple HTTPS services on multiple URL paths and several different backends, and also a PostgreSQL cluster over TCP. This is the full haproxy -vvv output:...
Gábor Major's user avatar
0 votes
0 answers
116 views

What is the proper way to setup Rados Gateway (RGW) under Ceph using Cephadm?

I have setup a 'reef' Ceph Cluster using Cephadm and Ansible in a lab environment. I have buckets and pools already setup. The ceph.io site is confusing on how to setup the Rados Gateway (radosgw) ...
Swampcritter's user avatar
0 votes
1 answer
275 views

How to configure HAproxy to a different backend based on path?

The problem is that, I have haproxy configured for multiple domains with backends respectively. The intended behaviour is to redirect a specific request such as myfirstdomain.com/alerts to backend2 ...
Jk843's user avatar
  • 1
0 votes
1 answer
281 views

Django uwsgi behind haproxy: http or http-socket?

I've a Django app inside a docket that uses uwsgi. Since we have several Dockers running on different machines we have haproxy as load balancer. My question is: should I use uwsgi with http or http-...
EsseTi's user avatar
  • 257
0 votes
1 answer
54 views

haproxy kills external-check process before script ends

I have a docker container running haproxy:2.8-lts, which does a check to the backend, but my script gets killed before it can finish resulting in a failed check and accumulated alot of processes in ...
sgt's user avatar
  • 101
0 votes
3 answers
233 views

Postfix/Dovecot relay or proxy?

I'm trying to figure it out how to reverse proxy based on condition email servers or how to deal with sending/receiving emails from different servers on only 1 public IP address? My current ...
EAK TEAM's user avatar
  • 103
0 votes
0 answers
85 views

OPNsense + HAProxy behind NAT

I am new to OPNsense/HAProxy and struggling for more than 3 days to make it works but unfortunately nothing achieved. So in short words trying to achieve this kind of logic: Dedicated Server (Proxmox ...
EAK TEAM's user avatar
  • 103
-1 votes
1 answer
150 views

Client 443/HTTPS -> Virtual IP -> HA Proxy 80/HTTP and 443/HTTPS SSL terminaison -> Varnish 81/HTTP -> 82/HTTPS and 442/HTTPS Apache

At home, I have 1 hosted server with some websites, using Virtualmin (great tool!) and everything is working fine with HTTPS, HTTP...even behind my internet router, using NAT by forwarding ports 80 ...
kiminox's user avatar
0 votes
0 answers
18 views

Health Check Failures and 502 Errors with HAProxy and Golang Fiber Instances

I have a setup where Server A acts as the client, communicating with Server B through HAProxy. Server B runs four similar Golang Fiber instances, each with Prefork enabled on an EC2 t3xlarge instance. ...
realnsleo's user avatar
  • 117
0 votes
0 answers
70 views

gRPC proxied through pfSense with HAProxy plugin

I am trying to make a gRPC server available through pfSense with HAProxy running as a plugin. I have ssl termination at HAProxy and it works fine for a number of hosts. But trying to set the gRPC ...
popliviustefan's user avatar
0 votes
0 answers
103 views

haproxy not load balancing between 2 servers

I have two ports open on my backend servers, one for https requests and one for websocket requests. The websockets will use http, not https. I would like my haproxy instance to send an http 301 ...
yemista's user avatar
  • 101
0 votes
0 answers
48 views

IIS in windows 2019 HAproxy 504 gateway issue

We have an haproxy device that load balances a number of devices. However starting 1/18 two windows 2019 IIS servers have intermittently started responding to haproxy with a 504. This setup has been ...
steelrat405's user avatar
1 vote
1 answer
139 views

How to log TLS session keys in HAProxy ala SSLKEYLOGFILE

I'm trying to avoid using an LD_PRELOAD-based solution, and the haproxy documentation seems to imply it's possible to make an sslkeylog file without actually saying how. I know the information can be ...
Shelvacu's user avatar
  • 406
0 votes
2 answers
229 views

Forward HTTPS Traffic to a proxy server

I have a smart-dns setup, Using dnsmasq as the dns server, which always resolves to my server ip address, for a given list of domains. I want to configure either a webserver or proxy program to listen ...
loxtic's user avatar
  • 21
0 votes
2 answers
95 views

Way to keep over 65k TCP connect to a server

As a programmer and a newcomer to network and infrastructure, I've developed a server program capable of handling over 100,000 connections concurrently. During testing in a local network with 20,000 ...
Itsme's user avatar
  • 3
0 votes
1 answer
446 views

HAPROXY SSL handshake failure - debugging process?

My HAPROXY 2.8.1 terminates SSL connections and does clear text with the backend servers. When I test using my PC, there are no errors, however it fails when my customers' devices try to communicate. ...
Questionz's user avatar
0 votes
0 answers
117 views

High availability cluster bandwidth bottleneck

I want to setup a service with a lot of file transfer for thousands of users. For now, my idea is to go with k8s + HAProxy with 3 masters (with VIP) and as many slaves as needed. So basically: ...
ange's user avatar
  • 33
0 votes
0 answers
150 views

Configuring Nginx as a reverse proxy for any domain

Currently i have a setup, where dnsmasq is used as a dns server, which resolves an dns lookup, to my own servers IP address. Where SNIPORXY is listening on port 80 and 443 The configuration of the ...
loxtic's user avatar
  • 21
0 votes
1 answer
233 views

Outbound proxy with multiple public IPs in Azure

For services where the outgoing (client) public IP address is important, such as email delivery - an HAProxy setup is often used to host the IPs, with MTAs driving the IP selection via Proxy Protocol. ...
tuck1s's user avatar
  • 101
0 votes
0 answers
33 views

What number I'm able to use to notify about haproxy issue?

I have task to monitor Haproxy problems, and one of them is disappearing the field I recently used to get value from show stat output. Firstly I've wanted to output -1 if there's no field that ...
Aleksey's user avatar
0 votes
0 answers
100 views

HAPROXY http response 200 but response data missing

I have been working on troubleshooting mobile application issue, each and every request from mobile application will hit to domain lets say https://example.com with request payload in post body, this ...
utsav's user avatar
  • 117
-1 votes
1 answer
67 views

Accessibility Issue with HAProxy Load Balancer, VIP, and Keepalived Setup

I'm using 2 HAProxy servers with a Virtual IP (VIP) and Keepalived. While I can access the active HAProxy1 server, I face accessibility problems when HAProxy2 is active. How can I resolve the access ...
yasemin büsra sergen's user avatar
0 votes
1 answer
46 views

HaProxy custom ports

I need to load balancing one of our customers application portal. The flow works as follow: The enduser reach the portal through the URL example.net:3000/login page; The enduser will choose one of ...
FriendlyPotat95's user avatar
0 votes
1 answer
321 views

How to configure HAProxy to access K8S cluser?

I have setup K8S cluster, it is up and running 5 control planes 8 worker nodes I have setup HAproxy working OK 2 nodes 1 virtaul IP I can access the clustre from a client by using admin.conf file ...
Root Loop's user avatar
  • 912
0 votes
0 answers
58 views

haproxy stick table entry length

I'm using string stick table: not specifying entry length (default 32 characters for len is exactly what i need) there is a note for store keyword stating: "For each item specified here, the ...
sharpener's user avatar
  • 101
2 votes
1 answer
361 views

haproxy.cfg errors in configuration file. Help needed

Trying to follow these indications: https://github.com/kubernetes/kubeadm/blob/main/docs/ha-considerations.md#haproxy-configuration and these indications: HAProxy use urls in server config? I'm trying ...
Raphael10's user avatar
  • 157
0 votes
1 answer
270 views

HA-Proxy Layer4 connection, info: “Connection refused”

I'm having difficulty in understanding how to properly configure haproxy root@k8s-eu-1-control-plane-node-1:~# sudo systemctl status haproxy ● haproxy.service - HAProxy Load Balancer Loaded: ...
Raphael10's user avatar
  • 157
0 votes
0 answers
41 views

HA Cluster initialization issues

During the initialization of the very first control-plane-nodes (3 control-plane-nodes + 3 worker-nodes) I'm getting these errors : root@k8s-eu-1-control-plane-node-1:~# sudo kubeadm init --control-...
Raphael10's user avatar
  • 157
0 votes
0 answers
60 views

HAproxy : backend apiserverbackend has no server available!

I'm getting this output : root@k8s-eu-1-control-plane-node-1:~# sudo systemctl status haproxy.service ○ haproxy.service - HAProxy Load Balancer Loaded: loaded (/lib/systemd/system/haproxy....
Raphael10's user avatar
  • 157
0 votes
0 answers
305 views

timed out waiting for the condition during Kubernetes Cluster Initialization with --control-plane-endpoint

Following the indications found here: https://github.com/kubernetes/kubeadm/blob/main/docs/ha-considerations.md#keepalived-and-haproxy I'm trying to initiate the very first control-plane-node , but I'...
Raphael10's user avatar
  • 157
0 votes
1 answer
174 views

only allow traffic from one FQDN

I have a docker container running a Flask app and then frontending it with an Nginx proxy. The Nginx container is running on port 80 and then I am using an HAProxy for SSL offloading. This setup ...
user2236794's user avatar
0 votes
0 answers
528 views

How to SSL Passthrough on HAProxy while routing based on full URL?

I'm new to HAProxy admin so it may be a stupid question. So I wanted to do SSL pass though on our HAProxy load balancer. The diagram look like this: client -> HAProxy -> server where, all ...
rollschild's user avatar
0 votes
0 answers
46 views

HAProxy path-based routing a webpage; webpage resources cannot load

I have the following haproxy.cfg: global stats socket /var/run/api.sock user haproxy group haproxy mode 660 level admin expose-fd listeners log stdout format raw local0 info defaults mode http ...
Snappawapa's user avatar
0 votes
0 answers
36 views

HAProxy add header on response doesn't work

frontend http-in bind *:8080 default_backend proxies backend proxies timeout connect 5s timeout server 30s balance roundrobin http-response set-header X-Server-Data %s ...
Max Frai's user avatar
  • 123
0 votes
0 answers
14 views

HAproxy gpt0 does not trigger backend selection

I have a frontend definition that looks like this: frontend fe_imap from defaults_1 mode tcp bind 127.0.0.1:143 bind [::1]:143 bind x.x.x.x:143 stick-table type ip size 100k expire 24h store ...
Christian Rößner's user avatar
0 votes
1 answer
155 views

Mariadb active passive failover doesn't work with HAProxy

What is wrong with my HAProxy config? This thread kind of similar, but still not the same: Haproxy mysql failover load balancing I have an active-passive Mariadb galera cluster. Today on the master ...
Badb0y's user avatar
  • 115
0 votes
1 answer
96 views

Tomcat 9 - does gracefulStopAwaitMillis *properly* wait for requests to finish when using non-blocking IO connector?

How does Tomcat 9.0.80+ handle graceful shutdown when using the NIO connector? <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" ...
Daniel Sandberg's user avatar
0 votes
0 answers
75 views

How to route requests with the same query parameter to the same backend servers?

I have three Nginx reverse proxy servers with ModSecurity installed acting as WAF servers which route requests to my Kubernetes Cluster ingress-nginx, Istio service mesh is installed on the Kubernetes ...
Sinux's user avatar
  • 95
0 votes
1 answer
35 views

Munin haproxy plugin is not getting data even though munin-run show data and other plugins work fine

I have a Munin server (2.72) monitoring a lot of servers fine. I have a haproxy server with munin-node (2.0.73) running fine for every plugin except haproxy_* (haproxy_sessions_frontend, ...
Michel's user avatar
  • 132
1 vote
0 answers
212 views

haproxy sni for http/3 quic (udp)

I've got haproxy doing sni routing for a bunch of sites without issue. HTTP/2 works great. Is there a way to setup sni type routing for HTTP/3 (quic) without having any certs installed in haproxy?
David's user avatar
  • 331
0 votes
2 answers
143 views

KeepAlived and HAProxy VIP Appears Twice

Linux Distribution: CentOS 9 Stream Version of HA Proxy: HAProxy version 2.4.22-f8e3218 Version of KeepAlived: Keepalived v2.2.8 (04/04,2023 I'm protecting 2x HAProxy load-balancers using keepalived ...
Chelle-Belle's user avatar
0 votes
0 answers
94 views

HAproxy, nginx and HTTP/2

I have few servers and for all of them: HAproxy sometimes is giving SSL certs for connection Sometimes nginx is giving SSL certs I need to set up HTTP/2 connections, where currently all are HTTP/1.1....
pbies's user avatar
  • 169

1
2 3 4 5
43