HAProxy is a 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.

learn more… | top users | synonyms

0
votes
2answers
3k views

HAProxy max session limit

I have an Amazon OpsWorks stack running HAProxy (balance = source) and several node.js instances running socket.io. It seems HAProxy determines the max session limit for a given instance based on the ...
1
vote
0answers
11 views

haproxy CD flags with browser, not with curl

Issuing the same url request, from the same workstation to the same haproxy server: with a browser (tried Chrome and Firefox): haproxy log shows CD flags with curl: haproxy log shows -- Both ...
5
votes
1answer
4k views

HAProxy: Display a “BADREQ” | BADREQ's by the thousands

My HAProxy Configuration. #HA-Proxy version 1.3.22 2009/10/14 Copyright 2000-2009 Willy Tarreau <w@1wt.eu> global maxconn 10000 spread-checks 50 user haproxy group haproxy ...
0
votes
0answers
9 views

HAProxy - Multiple sites, multiple acl's

We are busy with setting up HAProxy. Almost everything is working, except setting it up without multiple sites with different acl's. What we want: Using HAProxy with multiple sites, all on the same ...
1
vote
1answer
30 views

Session files are created every 2 second. Running on openshift Laravel PHP nginx haproxy

What causes the access on the server when the server starts? I've run rhc tail on my app to monitor the new logs. Here is my log http://laravel.io/bin/Dez4o When I started the app using rhc app-...
1
vote
0answers
18 views

Haproxy performance degradation when backends added [closed]

We are testing performance of haproxy. It's installed on a physical machine with 40 cores and 256 RAM. OS is Centos 7. During that we noticed a weird thing - the more backend nodes we add, the worse ...
1
vote
1answer
3k views

haproxy transparent mode on 14.04

As per my previous question SSHD real-ip behind haproxy - I'm now attempting to setup HAProxy to transparently pass the IPs to the backend services. tproxy modules loaded / and supported in haproxy (...
1
vote
0answers
35 views

HAproxy 503 Service Unavailable

I am following this tutorial to configure HAProxy and Let's Encrypt. The goal is to forward requests to example.com/sensu to a server instance listening on 127.0.0.1:3002. But when I visit example.com/...
4
votes
1answer
1k views

How to not redirect when cookie is set in haproxy?

On my site I redirect users with mobile devices to a mobile site using my Haproxy loadbalancer. I got some complaints about that and want to offer the users a link back to the "classic" portal. As not ...
0
votes
1answer
26 views

ftp reverse proxy using haproxy

is it possible to have ftp reverse proxy like http example client >> proxy >> real server i have tried using haproxy but at the end the real ip of the ftp server is exposed not ...
3
votes
3answers
3k views

HAProxy returns Bad Request (Invalid Host) for seemingly no reason

I've been trying to test a setup that looks like this: Website: Http GET Request -> Nginx -> HAProxy -> .Net application I've placed Nginx and HAProxy on the same Debian machine. However, HAProxy ...
0
votes
0answers
23 views

HAProxy across from two different private networks [closed]

I have two networks, we shall call them Datacenter 1 (DC1) and Datacenter 2 (DC2). Within DC1, there is a host on a private network (DC1 HostA) that needs to communicate with a host in DC2 (DC2 HostA)...
2
votes
0answers
20 views

HAProxy rate limiting - ban abuser for 30 minutes

I have the following config, that works OK for rate limiting connections. If an abuser is authenticated and he also accesses the defined regex location more than 30 times per minute, rate limiting is ...
0
votes
2answers
31 views

Openshift + HAproxy 503 custom page

I'm using 503 HTTP Status and a coming soon page for maintenance mode. Is there any way to get HAproxy serving server-side generated 503 page instead of the default blank/unavailable page? I'm using ...
0
votes
1answer
14 views

Haproxy ssl passthrough breaks curl requests

I have Haproxy configured in TCP mode to balance between 2 servers and passthrough https connections to them. The problem is that when my frontend is in tcp mode, curl requests can't be proceed ...
1
vote
1answer
12 views

haproxy redirect ip request to ip/path

I have one haproxy node and 3 application server (tomcat) behind it. Users must open http://10.0.0.1 (by IP address) and then be redirected to http://10.0.0.2/app or http://10.0.0.3/app or http://10.0....
0
votes
1answer
13 views

haproxy 503 no server available to handle this request

I'm new to HAproxy and have been following guides to get me started. I think I got the set up I need but when I try to load my web site domain I get a 503 Service Unavailable No server is available ...
1
vote
1answer
2k views

Server's maxconn parameter in haproxy

I'm using HAProxy in production to balance queries to a series of server instances that can only process 1 query at a time (by our own decision). Knowing that I set the maxconn parameter in the server ...
1
vote
1answer
14 views

Haproxy http response timeout check

We use haproxy as http load balancer. Sometimes one of our servers stop responding while accepting http connection requests. So stats page displays servers as green "accessible" but our nagios server ...
1
vote
3answers
1k views

Zabbix_server.log says [2006] MySQL server has gone away

Environment CentOS 6.6, Zabbix 2.4 DB MySQL Galera cluster with 3 nodes mysql-wsrep-server-5.6-5.6.23-25.10.el6.x86_64 galera-3-25.3.10-2.el6.x86_64 Errors [Z3005] query failed: [2006] MySQL ...
0
votes
0answers
14 views

Haproxy: how to configure backend to talk with a https server? [duplicate]

We have in our LAN a nginx server configured in https. In front, we have Haproxy with SSL and we need to establish a connection SSL from backend to nginx server. Is it possible to do this? Client -> ...
2
votes
1answer
39 views

what is the default ha-proxy load balance algorithm?

When i was configuring a proxy server which is ha-proxy over Ubuntu server , i forgot to choose a balance option in the haproxy.cnf file ,but steal worked correctly, any one have an idea what ...
0
votes
1answer
1k views

haproxy 503 Service Unavailable with NOSRV

Im running HAProxy with 3 Apache servers as backend servers. problem is every 2 or 3 request ive got 503 Service Unavailable error and in log files i have this message : Oct 19 14:46:57 HAProxy1-...
4
votes
4answers
10k views

Maximizing TCP connections on HAProxy load balancer

I am currently using HAProxy in order to load balance tcp connections from clients to my Erlang app server. The connection is persistent, which means I'm limited to roughly 64K clients on an optimized ...
0
votes
1answer
19 views

Combining duplications for backend blocks in haproxy.cfg

I have this HAProxy config and as you can see I have many duplicated stuff in backends. Is there a way of getting rid of duplications such as stats? global log 127.0.0.1 local0 log 127.0.0.1 ...
2
votes
2answers
80 views

Software Load Balancer - Forward or Redirect to the backend servers?

I am a web developer, recently a need has been created to use Load Balancer. I am new in this area. I have chosen which LB to use, its not like it matters so much, HAProxy has all the features needed ...
4
votes
1answer
2k views

HAProxy route https SNI and http over the same port

I have an HAProxy routing HTTPS without termination using SNI. The configuration is similar to the following: frontend ft_ssl_vip bind 0.0.0.0:5000 mode tcp option tcplog tcp-request ...
2
votes
1answer
28 views

HAProxy TCP Transparent Mode Remote Servers

Alright so I have a server box with HAProxy installed and I need it to forward traffic to two MySQL servers. They are both located in completely different datacenters. It works when I have this ...
1
vote
2answers
2k views

Unable to configure haproxy with ssl

I want to make my server ssl protected, it has two parts one for website and another for application. to balance them we have used haproxy. Now we want to secure this haproxy. I have installed the ...
0
votes
1answer
23 views

Increase client timeout for WebSocket connections to certaing URL

On CentOS 7 Linux I successfully use HAProxy 1.5.14 in front of Jetty 9 serving a Wordpress site via FastCGI. It works really well, but for a HTML5/WebSocket game at the same website much higher ...
3
votes
2answers
504 views

HAProxy - Configure timeouts based on ACL

I am using HaProxy for load balancing. I have multiple backeds, which are routed based on URLs. In my haproxy.cfg file, I have setup the default timeout client 1m But, I want this value ...
1
vote
1answer
36 views

Import configuration files in haproxy.cfg

I have almost 200 lines of ACL configurations in haprox.cfg and also contains 150 backends. To remove this configuration complexity, I want to bundle this configuration in separate files and will ...
6
votes
2answers
132 views

Can I use HAProxy's new 'capture' feature to save the remote address in a TCP frontend, and use it as the `X-Forwarded-For` header in an HTTP backend?

Using HAProxy 1.6 and a clever hack, I now have an HAProxy tcp mode frontend, that detects if the browser is capable of SNI, and based on that, routes to a strongly ciphered SSL termination backend, ...
3
votes
1answer
2k views

Haproxy rate limiting, conn_rate, conn_cur

Tried to achieve rate-limiting on haproxy 1.5-18 with the following: frontend stick-table type ip size 100k expire 30s store conn_rate(3s) #connection rate stick-table type ip size 1m expire 10s ...
0
votes
1answer
23 views

System outage when only one of two HAProxy servers is down. Failover doesn't seem to be working

First of all my experience with HAProxy stack is just one day old so I hope my question makes sense. I have 2 HAProxy VMs and 2 Apache VMs (vagrant machines) as follows. 192.168.50.11 HAPROXY VM1 ...
1
vote
1answer
69 views

Preventing Apache from logging HAProxy requests

I have two HAProxy VMs and two Apache VMs (vagrant machines) as follows. 192.168.50.11 HAPROXY VM1 192.168.50.12 HAPROXY VM2 192.168.50.21 APACHE VM1 192.168.50.22 APACHE VM2 The problem I'm having ...
0
votes
1answer
2k views

HAProxy pgsql-check error

I use HAProxy 1.5-dev21 to load balance PostgreSQL connections over some read-only Postgresql 9.2 servers. Version 1.5 of HAProxy implements a pgsql-check option, similar to mysql-check. Here is my ...
0
votes
0answers
10 views

haproxy acl to check if a file exists (for gracefully taking a site offline)?

I've often used the following snippet in my nginx configs to easily take my sites down for maintenance: location / { if ( -f $document_root/offline ) { return 503; } ... } Then ...
0
votes
0answers
38 views

HAProxy HTTP 503 error on about 50% of requests

I am trying to set up a loadbalancing with HAProxy (on Ubuntu 16.04) and have a strange behaviour with HTTPS-requests: About 50% of the requests return a HTTP 503 Service Unavailable error. Starting ...
-1
votes
1answer
28 views

how to configure HAProxy as a reverse proxy?

I have multiple web servers, hosting multiple domains. Occasionally, I need to move a domain from one web server to another. Rather than have to update the DNS for the domain to point at the new ...
0
votes
1answer
21 views

HAProxy: the ACL can't detect the client hostname

I configured an HAProxy server that should detect if the request comes from server.company.cxx and forward the request to the server on 10.0.x.x. If the request does not fulfill this condition, it ...
9
votes
3answers
33k views

haproxy and forwarding client IP address to servers

I have a problem with HAproxy. I use HAproxy as load balancer which distribute incoming http requests to 5 web servers. normally a client request's is forwarded to web servers with loadbalancer's IP. ...
1
vote
1answer
1k views

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/ ...
1
vote
1answer
67 views

Autoscaling containers through consul and registrator

I am using an infrastructure platform consisting of docker containers running on a CentOS host. Scaling multiple containers through docker compose. Consul for service discovery. Registrator for ...
0
votes
0answers
12 views

Backend server selection based on cookies priorities.

I am using haproxy 1.6.5 on debian 8.3. I have 4 backend servers. They all do the same thing but diveded to 2 clusters. It is desired to keep session within 1 cluster even if one of the servers in ...
2
votes
2answers
5k views

Haproxy not logging captured request headers with custom log format

Earlier i was not specifying a custom log format, and the captured request headers were getting printed fine. I wanted to log the unique-id-header, but could not find any way of doing so. So i copy ...
1
vote
1answer
27 views

reconfiguring haproxy backend dynamically

My requirement is to have ~50 haproxy http backends, which will be added and removed dynamically (without my involvement) anywhere on the internal network. I can assume that each http backend knows ...
2
votes
1answer
24 views

Add a mysql check to haproxy

I'm attempting to add a mysql check for haproxy in which if the service wasn't available it would return an error page just as the below config does with the http servers. I'm just not sure of the ...
1
vote
1answer
27 views

Haproxy http-buffer-request not working

I can't get Haproxys http-buffer-request option working. I'm using Haproxy 1.6.5. This is my configuration: global maxconn 20000 debug defaults HTTP mode http option http-buffer-request # ...
1
vote
1answer
22 views

Add a server to haproxy with initial state

Whenever I update my haproxy configuration to add a node, haproxy adds it in the UP state by default. With the next health check, it is marked as down. Is there a way to add a node in the DOWN or ...