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
11
votes
2 answers

Docker-Compose not able to copy haproxy.cfg

My problem is that I have a docker-compose.yml file and an haproxy.cfg file and I want docker-compose to copy the haproxy.cfg file to the docker container. As per the post Docker composer copy files I can use volumes to do it but in my case I'm…
utkarsh31
  • 1,439
  • 2
  • 13
  • 20
11
votes
3 answers

JWT Validation in HAProxy

I have an HAProxy configured to accept requests to *.mysubdomain.com. The HAProxy will parse the subdomain (prod or dev from prod.mysubdomain.com or dev.mysubdomain.com) and forward to the correct backend. Two backends exist, one for prod and one…
Steph2a1
  • 117
  • 1
  • 4
11
votes
1 answer

Define custom load balancing algorithm

Here is the situation: I have a number of web servers, say 10. I need to use a (software) load balancer which can be implemented using a reverse proxy server, like HAProxy or Varnish. Now, All the traffic that we serve is over https and not http, so…
vish4071
  • 5,135
  • 4
  • 35
  • 65
11
votes
2 answers

Difference Between TCP Load Balancer and HTTP Load Balancer and when to use what?

I am trying to understand fundamental use cases between these two and when to prefer one over the other. For example HAProxy support TCP load balancing. In practical cases when this would be a deciding factor? Also What HTTP LB can achieve TCP can…
Abhijit Mazumder
  • 8,641
  • 7
  • 36
  • 44
11
votes
3 answers

HAProxy health check

My current setup has 2 HAProxies configured with keepalived for High Availability, the 2 proxies serve as a Reverse Proxy and Load Balancer for virtual webservices. I know that HAProxy can check the health of its backend (I've already configured…
user3145921
  • 139
  • 1
  • 1
  • 5
11
votes
1 answer

Haproxy solr healthcheck with authentication

here is my config file listen solr 0.0.0.0:8983 mode http balance roundrobin option httpchk GET "/solr/select/?q=id:1234" HTTP/1.1 server solr_slave 1.1.1.1:8983 maxconn 5000 weight 256 check server solr_master 2.2.2.2:8983 maxconn 5000 weight 1…
Sanket Gupta
  • 573
  • 3
  • 6
  • 21
10
votes
1 answer

What's the best practice for getting EC2 instances to join HAProxy automatically?

We're working on scaling out our EC2 architecture to a point where we'd like to manage our own load balancing. We currently have a series of machines configured on HAProxy to do basic load balancing, but we're looking for the 'best practice' means…
iandouglas
  • 4,146
  • 2
  • 33
  • 33
10
votes
2 answers

Use haproxy as a reverse proxy with an application behind Internet proxy

I need to integrate several web applications on-premise and off-site under a common internally hosted URL. The on-premise applications are in the same data center as the haproxy, but the off-site applications can only be reached via a http proxy…
Marged
  • 10,577
  • 10
  • 57
  • 99
10
votes
1 answer

HAProxy with https and kerberos

I'm trying to implement a reverse proxy in our system, for a micro-services architecture. The proxy server is HAProxy that works with SSL Termination and needs to proxy requests to a backend server with Https and Kerberos authentication. I…
10
votes
3 answers

How to add server dynamically in HA proxy backend?

I am using HA proxy version 1.6.6 for load balancing rabbitmq server, and it works fine but i want to add server dynamically in ha proxy backend in ubuntu using script. can anyone please tell me how can i done it?
Bhoomi Zalavadiya
  • 689
  • 12
  • 26
10
votes
1 answer

HAProxy with HTTP2 frontend and HTTP1.1 backend

I'm wondering if anyone has setup HAProxy with http2 support on the frontend and HTTP/1.1 on the backend The backend servers are currently Varnish so only support HTTP/1.1 Would http2 work in scenario were a persistent connection would be kept open…
Stephen Mahood
  • 101
  • 1
  • 8
10
votes
2 answers

What's the exact meaning of "session" in haproxy?

When I open the haproxy statistics report page of my http proxy server, I saw something like this: Cum. connections: 280073 Cum. sessions : 3802 Cum. HTTP requests: 24245 I'm not using 'appsession' and any other cookie related command in the…
ASBai
  • 724
  • 2
  • 7
  • 17
10
votes
3 answers

How to redirect to 404 when url is pointing to an existing folder (no trailing slash). HAproxy or mod-rewrite related

I am using HAProxy listening on 80 to send requests to a node server (port:3000) or php server (4000); I also have CSF installed which have ports 3000 and 80 available. It works okay when I browse a page at http://example.com/forum/1/page.php, but…
RedGiant
  • 4,444
  • 11
  • 59
  • 146
10
votes
2 answers

Openshift haproxy error with 'express' has no server available

I created a basic Nodejs app from Openshift and randomly, the service terminate itself few times in few days. No error message from my Nodejs module but only in haproxy that automatically installed with. Messages from haproxy.log are: [WARNING]…
Brendan
  • 131
  • 1
  • 5
10
votes
1 answer

HAProxy: Backend with subdirectory / subpath / subfolder?

I am trying to achieve this: http://front-end --> http://back-end/app-1 http://front-end/app-2 --> http://back-end/app-2-another-path So that requests will be handled this way: http://front-end/do-this -->…
Tung Nguyen
  • 1,874
  • 3
  • 18
  • 28