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
14
votes
4 answers

HAProxy CORS OPTIONS header intercept setup

With my NGinx setup I was able to intercept OPTIONS requests from ajax preflight and respond with the correct CORS headers and a 200 response so the request could continue onwards. I am attempting to consolidate my frontend proxies into HAProxy and…
Brian
  • 2,294
  • 6
  • 30
  • 51
14
votes
2 answers

HAProxy closes long living TCP connections ignoring TCP keepalive

I have configured HAProxy (1.5.4, but I tried also 1.5.14) to balance in TCP mode two server exposing AMQP protocol (WSO2 Message Broker) on 5672 port. The clients create and use permanent connection to the AMQP Servers, via HAProxy. I've changed…
Paolo Parlato
  • 151
  • 1
  • 1
  • 4
13
votes
3 answers

Programmatically add nodes to a load balancer like Haproxy?

I'm very sure this problem has been solved, but I can't find any information anywhere about it... How do sysadmins programmatically add a new node to an existing and running load balancer ? Let's say I have a load balancer running and already…
João Pinto Jerónimo
  • 9,586
  • 15
  • 62
  • 86
13
votes
4 answers

Terminating a high volume of SSL connections cost effectively

I have recently set up a Node.js based web socket server that has been tested to handle around 2,000 new connection requests per second on a small EC2 instance (m1.small). Considering the cost of a m1.small instance, and the ability to put multiple…
Matthew O'Riordan
  • 7,981
  • 4
  • 45
  • 59
13
votes
2 answers

OpenShift Service Proxy timeout

I have an application deployed on OpenShift Container Platform v3.6. It consists of multiple services interconnected to each other. The frontend service calls a time consuming function of the backend service (through a REST call), but after 30…
Maverik
  • 179
  • 1
  • 1
  • 9
13
votes
1 answer

maxconn limit per backend in haproxy

Our haproxy loadbalancer opens thousands of connections to its backends even though its settings say to open no more than 10 connections per server instance (see below). When I uncomment "option http-server-close" the number of backend connection…
Roman
  • 1,351
  • 11
  • 26
13
votes
2 answers

Advantage of using HAProxy AND Keepalived vs just Keepalived

As per the (verbose) topic, are there any advantages over using a Keepalived & HAProxy as an HA webserver loadbalancer vs a pure keepalived solution?
Werner
  • 791
  • 1
  • 6
  • 23
13
votes
1 answer

How to load balance containers?

How to load balance docker containers running a simple web application? I have 3 web containers running in a single host. How do I load balance my web containers?
Alok Kumar Singh
  • 2,331
  • 3
  • 18
  • 37
13
votes
2 answers

How to rewrite domain.com to www.domain.com with HAProxy?

We have 1 loadbalancer with 3 members behind it: main balancer: www.website.com members: web1.website.com, web2.website.com and web3.website.com Currently we are using nginx on the loadbalancer, but we want to replace it with HAProxy. Nginx…
Arjan
  • 193
  • 1
  • 3
  • 9
13
votes
2 answers

Convince Apache of the original client protocol

So I have a relatively straight forward server stack utilizing a SSL offloading and an HTTP load balancer. The setup looks something like this: (client) -> (SSL offload - stud) -> (balancer - haproxy) -> (http server - apache) My question isn't…
greezybacon
  • 556
  • 5
  • 15
13
votes
1 answer

What are issues with using WebSockets with proxies and load balancers?

I'm reading up on SockJS node server. Documentation says: Often WebSockets don't play nicely with proxies and load balancers. Deploying a SockJS server behind Nginx or Apache could be painful. Fortunately recent versions of an excellent load…
dev.e.loper
  • 35,446
  • 76
  • 161
  • 247
12
votes
2 answers

HAProxy and URL Rewriting Configuration

I would like to ask how HAProxy can help in routing requests depending on parts of the URL. To give you an overview of my setup, I have the HAProxy machine and the two backends: IIS website (main site) Wordpress blog on NGINX (a subsite) The…
Ianthe the Duke of Nukem
  • 1,721
  • 2
  • 20
  • 37
12
votes
1 answer

RabbitMQ clustering and mirror queues behavior behind the scenes

Can someone please explain what is going on behind the scenes in a RabbitMQ cluster with multiple nodes and queues in mirrored fashion when publishing to a slave node? From what I read, it seems that all actions other than publishes go only to the…
Cosmin Vasii
  • 1,429
  • 3
  • 14
  • 18
12
votes
3 answers

HAproxy with multiple https sites

We have couple of http sites running behind load balancer ( with failover capability using hearbeat) and one https site. Everything is running fine but now i want to add another https site. I couldn't find any references for hosting multiple https…
santhosh
  • 121
  • 1
  • 1
  • 3
11
votes
1 answer

Nginx ingress controller vs HAProxy load balancer

What is the difference between Nginx ingress controller and HAProxy load balancer in kubernetes?
yasin lachini
  • 5,188
  • 6
  • 33
  • 56