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.

See also:

2099 questions
6
votes
1 answer

Best Practice for Mapping Domain Names to Docker Container

What is considered "best practices" for serving a a docker container from a specific domain name? For example: Container1 runs App A on port 8080, and accessed via AwesomeAppA.com Container2 runs App B on port 8090, and accessed via…
robodude666
  • 75
  • 1
  • 5
6
votes
2 answers

Haproxy using 10GB Memory and 100% CPU with 50k connections

On a Ubuntu 14.04 x64 server, Haproxy uses 3.3 GB of memory and 6.8 GB of swap, while handling 52k connections. The CPU usage also keeps spiking to 100% before most of the traffic was redirected to another haproxy box. Traffic is mainly peresistent…
Nyxynyx
  • 1,459
  • 11
  • 39
  • 49
6
votes
1 answer

set-header for HAProxy responses

New in version 1.5 is the http-response add-header directive. As written in the documentation -- this can be used in frontend, backend and listen. What I was trying to within a frontend section: use_backend some_backend if…
mana
  • 457
  • 6
  • 11
6
votes
1 answer

HAProxy forward URI to root of another server

I use a HAProxy container as an entry point for a virtual HPC cluster. Depending on a prefix the request is forwarded to different containers. :80/foswiki/ -> :80/foswiki/ :80/kibana/ -> :80/kibana/ :80/graphite-api/ -> :80/graphite-api/ ... The…
kniepbert
  • 61
  • 1
  • 2
6
votes
3 answers

Haproxy SSL handshake failure

I have a problem with one specific client which hits my haproxy load balancer. The error message in the haproxy logs:] incoming_ssl/1: SSL handshake failure The client in question seems to be some Apache Java client or ActiveMq server - either way,…
simonmorley
  • 119
  • 1
  • 1
  • 5
6
votes
2 answers

haproxy multihost with ssl acl

how can I use ACL rules in haproxy (1.5dev19) for server multiple hosts with own ssl certificate for each?? I have 3 backends with multiple domains all on one IP address. nodejs (http/https/ws/wss) nginx (http/https) (reverse proxy for apache…
zajca
  • 203
  • 1
  • 3
  • 7
6
votes
1 answer

Is there a backend-aware load balancer for Rails/Passenger?

We have 3 Ruby on Rails applications (A, B and C) installed on a number of application servers. Our front end is HAProxy, backend is Apache + Phusion Passenger. Originally we had all 3 Rails apps installed on each application server, but this setup…
6
votes
4 answers

HAProxy - putting up a maintenance page

Is there an easy way to dissable All backends in haproxy, and instead serve an appropriate maintenance page (for http requests)? I've read a little about the dissabled option, which I understand is per-server, but am wondering if there is a way to…
UpTheCreek
  • 1,628
  • 10
  • 32
  • 48
6
votes
1 answer

Lot of FIN_WAIT2, CLOSE_WAIT , LAST_ACK and TIME_WAIT in Haproxy

We are running haproxy in production for around 10k+ concurrent users. But we are seeing lot of FIN_WAIT2, CLOSE_WAIT , LAST_ACK and TIME_WAIT in the netstat output. This output is on a 8G ubuntu-12.04 node. 8046 CLOSE_WAIT 1 CLOSING …
Tux
  • 61
  • 1
  • 1
  • 2
6
votes
2 answers

High Tq values for HAProxy

I just took over administration of a new environment. A known issue is that the environment is known for high response times (20+ seconds), so I figured I'd turn on haproxy logging and see what is going on. I figured I'd see slow load times in the…
Will
  • 826
  • 2
  • 9
  • 19
6
votes
3 answers

Can haproxy be used to balance unix sockets?

In nginx it is fairly simple to configure it to proxy unix .sock files Eg: upstream bla { server unix:///home/sam/Source/bla/tmp/sockets/thin1.sock; server unix:///home/sam/Source/bla/tmp/sockets/thin2.sock; } Is there a similar…
Sam Saffron
  • 1,979
  • 3
  • 18
  • 27
6
votes
2 answers

HA Proxy for MySQL - Failover only

I am interested in using HA proxy as a failover/load balancer in our MySQL environment. We have a master-master + 2 slaves setup. I would like for the master/master setup, even though they are setup for it, to only write to one master. This is to…
Jonathan
  • 451
  • 3
  • 9
6
votes
2 answers

How to handle 20k concurrent persistent connections

I'm trying to design an architecture to handle massive TCP socket connections and I'm in doubt on the limits of this architecture. I'll have to handle ~20k concurrent TCP connections and these are long-polling connections, they'll remain connected…
Aldebaran
  • 335
  • 4
  • 12
6
votes
4 answers

HAProxy cannot bind socket for proxy on a remote machine

I'm using HAProxy to load balance the incoming requests on my two tomcat backend servers. In the config file when I specify HAProxy to listen to the same machine on which the HAProxy is installed, everything is fine and it starts to work like a…
SJ.Jafari
  • 204
  • 1
  • 4
  • 8
6
votes
1 answer

Pacemaker Active/Active haproxy load balancing

I am using Haproxy to load balance replicated mysql master servers. I am also using Heartbeat and Pacemaker for Active/Active ip failover with two virtual ips on the two load balancers for web server high availability. I used location in pacemaker…
user53864
  • 1,723
  • 11
  • 37
  • 66