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
1answer
675 views

HAProxy + Percona XtraDB Cluster

I am attempting to setup HAproxy in conjunction with Percona XtraDB Cluster on a series of 3 EC2 instances. I have found a few tutorials online dealing with this specific issue, but I am a bit stuck. ...
1
vote
2answers
26 views

HAProxy with SSL and sticky sessions

We're trying to set up HAProxy (v1.5.1) to use SSL. While we managed to do that, we're having some issues with the round robin settings: We do want to have stick sessions, but haproxy seems to send ...
1
vote
0answers
10 views

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: ...
0
votes
1answer
739 views

Getting HAPROXY to redirect http to https in users browser session

We are currently using a Internet cloud provider to host our SaaS platform. The platform consists of a Firewall -> Cloud Provider SLB -> -> Apache Web Server -> HAPROXY SLB -> Liferay Platform We ...
1
vote
1answer
28 views

HAProxy HTTP vs TCP

HAProxy gives you the option to set the mode to TCP or HTTP. It also allows you to set the port. So why allow me to choose between HTTP and TCP, if it's letting me choose the port too? Surely if I ...
1
vote
1answer
138 views

option http-server-close on HAProxy haproxy-1.5-dev19 will result in Connection: close header sent in response

I basically have the following issue: whenever I add option http-server-close to the haproxy config (either in frontend or backend section), haproxy will send a Connection: close header in the ...
3
votes
2answers
49 views

How to get name of server that has served request in fronted section?

I need to add server name in response HTTP headers X-Servedby. Is there any way to replace [server] with name of server that has served request? frontend front x.x.x.x:80 default_backend balancing ...
1
vote
3answers
753 views

HAProxy - HTTP Server error detection

I want to use HAProxy for load balancing and failover of an Apache-PHP application hosted on many identical backend servers. Is there any way of detecting a failed node on HAproxy and removing it from ...
2
votes
2answers
133 views

Resolving HAProxy BADREQs using socat

I'm trying to figure out why i'm getting BADREQs from time to time, by using "show errors" in socat. The problem is that it only shows the last error. I want to be able to see all of them ( like using ...
0
votes
1answer
38 views

Https on HAproxy 1.4 using stunnel

I'm running a load balancing server with HAproxy and implementing Https using stunnel on the same machine, on the actual webpages end i've got 2 diferent webs, A and B, with similar behaviour. Here ...
1
vote
2answers
1k views

Nginx Retry of Requests ( Nginx - Haproxy Combination )

I wanted to ask about Nginx Retry of Requests. I have a Nginx running at the backend which then sends the requests to HaProxy which then passes it on the web server and the request is processed. I am ...
1
vote
2answers
2k views

Haproxy not properly passing on X-Forwarded-For header

I have backend web servers that receive requests by way of haproxy->nginx->fastcgi. The web app used to see multiple ip's coming through in the X-Forwarded-For header, chained together with commas ...
1
vote
2answers
751 views

Unexpected behaviour when dynamically add node in HAproxy server

I wanted to use HAProxy for my web app for load balancing purpose. I am trying to add a new rabbitmq node dynamically in HAProxy server using command : haproxy -p /var/run/haproxy.pid -sf $(cat ...
1
vote
1answer
12 views

Haproxy hdr_ip acl unaffected by reqidel?

I have an server that sits behind a load balancer, but for the time being can also be accessed directly. I have a white list of IP addresses that should be able to access it. Given the following ...
1
vote
1answer
1k views

HAProxy stops accepting connections

I've been using HAProxy to loadbalance my appservers for many months without problems. Recently some traffic spikes have lead me to setting the maxconn parameter to rate-limit connections to my ...
0
votes
1answer
35 views

HAProxy's Flooding MySQL Connections

I have a setup of 2 HAProxy servers using the KeepAlived process for failover, and each HAProxy is configured to load balance mysql connections to my MariaDB Galera cluster of 3 nodes. I'm trying to ...
2
votes
1answer
595 views

Why do Layer 7 load balancers configuration not require any client configuration changes?

For example, for haproxy (layer 7) load balancing, you only need to configure the "real servers" or "backends" behind the VIP (i.e., cluster IP). E.g.: listen smtp 192.168.3.10:25 mode tcp ...
3
votes
1answer
2k 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
2answers
747 views

HAproxy to web host sub directory?

Hi for reasons outside my control, I need to load balance two servers, that run a non-virtual host enabled app on IIS. Normally in HAProxy I would load balance servers(apache, tomcat, etc) like this ...
0
votes
0answers
26 views

URL configuration with no port in haproxy

I need to configure a url into HAProxy for load balancing. the URL is like http://x.x.x.x/zabbix/ How do I configure this URL without port no. I have addd like below in /etc/haproxy/haproxy.cfg file. ...
1
vote
3answers
2k views

Squid via Haproxy

Anyone experienced with configuring Squid to forward requests to HAproxy? I use Squid as a proxy, with ACLs and other stuff, and I need to know if I can tell it to forward requests to HAproxy, which ...
2
votes
1answer
78 views

HAProxy/Keepalived vrrp set up in AWS EC2 with EIP (Basic EC2)

I am a newbie to CentOS/Linux/HAProxy/Keepalived, so I have had a lot to learn over the past few days! I have 2 CentOS 6.5 servers in Amazon AWS running on their own EC2 Micro instances. I also have ...
0
votes
1answer
57 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/ ...
0
votes
1answer
35 views

Tomcat cluster - how to verify node starvation?

We have a tomcat cluster with a load balancer (haproxy). As part of our upgrade script we would like to starve a single tomcat in the cluster of 3, wait until all the requests are handled for that ...
2
votes
3answers
62 views

HAProxy Only Sending Traffic To One Node

I have an HAProxy with IP 10.60.61.20 and three MariaDB nodes at IP .21, .22, .23, all of course in the same subnet. I have the MariaDB cluster sync'd and they can read/write to eachother, but when I ...
2
votes
1answer
34 views

Exclude particular IP address from Postfix log

I have a postfix relay system that uses HAProxy to check to make sure Postfix is responding as it should. There is a front-end load balancer which connects using an internal IP to the backend servers. ...
1
vote
3answers
670 views

Getting client IP address on IIS server behind HAProxy over HTTPS

We are in the process of setting up two IIS servers that will be load balanced behind a server running HAProxy. All traffic to these servers will be over HTTPS. The problem that we are noticing is ...
3
votes
2answers
1k views

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) ...
0
votes
1answer
112 views

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 ...
2
votes
1answer
268 views

Haproxy needs restart every 2 hours

I have set up two dedicated haproxy servers to spread the load on three application servers. I have set up regular http 80 balancing, and also a special to work with websockets. It works great for ...
3
votes
2answers
465 views

When a server IP changes, do exising TCP (e.g. http/mysql) connections remain running

We have some PHP-FPM servers and when they need a database connection, they connect to an HAProxy server which selects them a database server to use and the connection opens. When we then want to ...
0
votes
1answer
31 views

Direct several subdomains to a single backend with haproxy

I'm using haproxy to direct route for several applications running on a single server. For one of the domains in use there are several dozens of subdomains that should be directed to one of a few ...
2
votes
1answer
102 views

How to add custom header containing the absolute address of the originally requested resource

I have the following setup: |-------|--- backend1:8080 example.com:80---|HAProxy|--- backend2:8080 |-------|--- backend3:8080 I would like to configure the HAProxy ...
1
vote
1answer
62 views

HAProxy max out at ~10,700 connections

I am stress testing ejabberd with Tsung. My EC2 instances setup as follows: Tsung : c3.xlarge ejabberd : c3.2xlarge HAProxy : t1.mirco When I let Tsung talk to the ejabberd instance directly, I ...
1
vote
1answer
23 views

HAProxy SSL Responses Very Slow

Even though CPU usage is low, and http responses are very quick, SSL responses are taking longer than 10+ seconds to respond.
3
votes
4answers
2k views

Need help troubleshooting intermittant TCP timeout in HAProxy

I have an application where the client connects to a server via a simple TCP based protocol over TLS/SSL. In development, this has worked great for many months while we were building our application ...
-3
votes
1answer
56 views

configure haproxy to detect failed webservers

I have two webservers: WEB A: 192.168.0.3 WEB B: 192.168.0.4 and am using haproxy to load balance between them. How do I configure haproxy to detect when WEB A or WEB B dies and stop forwarding ...
1
vote
1answer
56 views

Replicate data across loadbalanced apache nodes

I am using haproxy that is pointing on 5 apache nodes, the problem is that I want to replicate apache data between those nodes. I have installed DRBD and it worked but on 2 nodes only The rsync is not ...
2
votes
1answer
44 views

Rotate haproxy logs

I tried few things but still not able to rotate haproxy logs efficiently. I need to rotate logs when log files crosses 500 MB size. Considering haproxy is serving large no. of static tcp connections, ...
0
votes
0answers
69 views

Horizontal Versus Verticale Scaling for Large Scale RoR Application (High CPU and Memory Usage)

We are launching a high demand (several hundred simultaneous users) Ruby on Rails application and we are trying to determine the best way to scale. Currently, we have a setup that follows this ...
0
votes
0answers
29 views

Haproxy doesn't balance mp4, mp3 files

I've 2 backend dedicated apache servers (server2, server3). Frontend listening to only http traffic (server1). In the apache servers I have some video files with a .mp4 extension. At the moment I'm ...
2
votes
1answer
212 views

HAProxy, health checking multiple servers with different host names

I need to load balance between multiple running servers with different host names. I cannot set-up the same virtual host on each one. Is it possible to have only one listen configuration with ...
1
vote
1answer
109 views

How remove HAProxy complain while restarting?

When sudo service haproxy restart the following message show up: [WARNING] 145/113237 (6021) : config : 'option httplog' not usable with proxy 'mysql' (needs 'mode http'). Falling back to 'option ...
2
votes
1answer
20 views

haproxy hash that honors already connected connections

We have configured haproxy 1.5 and are using map-based hash (default). For e.g. we have two backend servers. Server A and Server B. Clients 1,2,3,4,5 will go to same backend. For example Client ...
1
vote
1answer
838 views

Issue with SSL using HAProxy and Nginx

I'm building a highly available site using a multiple HAProxy load balancers, Nginx web serves, and MySQL servers. The site needs to be able to survive load balancer or web servers nodes going offline ...
0
votes
1answer
971 views

HAProxy - Perform multiple rewrites based on conditions

I am trying to rewrite a URI as well as a host header based on some conditions. Here is an example of what I'm trying to accomplish: I request http://sub1.example.com/test/files/other if ...
1
vote
1answer
382 views

HAProxy isn't accepting reissued GeoTrust certificate

I requested a reissue of a GeoTrust certificate in light of the Heartbleed bug. We're using HAProxy 1.5-dev22 with OpenSSL enabled. I've updated OpenSSL on all affected instances. The PEM that ...
1
vote
4answers
107 views

Retrieve external IP in PHP behind Haproxy

I am using Haproxy to enable running a websocket server and Lighttpd web server on the same machine. I want to retrieve the machines external IP address from the web application running on the ...
1
vote
2answers
590 views

HaProxy and Windows Auth

Can I get HaProxy to forward windows auth credentials onto IIS? I have searched for a day and cannot find much information out there.
1
vote
1answer
497 views

Load Balancing with haproxy and http-send-name-header Host

I ran into the following problem: tldr; When dynamically rewriting the HTTP Host header with http-send-name-header Host haproxy seems to mess up HTTP Response headers. Doing so works fine when using ...