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

1
vote
3answers
857 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 ...
1
vote
1answer
945 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 ...
0
votes
0answers
6 views

Howd do I show an empty error page on HAProxy for a single URL?

Quesion I have a single URL say: http://foo-backend.com/display_blank_when_errored On a site behind an HAProxy load balancer let's say the front-end site is: http://foo.com When an error happens ...
0
votes
0answers
13 views

HAProxy use cookie to drain server

I have the following segment in my haproxy.cfg listen stats :80 stats enable ...
0
votes
2answers
44 views

Implementing TCP Sticky Sessions With HAProxy to Handle SSL Pass-through Traffic

How can we implement session stickiness in HAProxy when SSL must terminate on the backend servers? We need the stickiness because backends cannot share sessions. This is my original configuration: # ...
1
vote
0answers
15 views

How to reconnect to the backend with HAProxy

I'm new in working with HAProxy. I couldn't figure out how to make HAProxy to reconnect to backend that was down and started up back again. I have a configuration of two backend servers. When they ...
3
votes
1answer
2k 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 ...
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 ...
1
vote
0answers
19 views

Request doesn't hit port 80 on HAproxy

I'm configuring HAProxy to redirect http to https, but it doesn't seem to work. The configuration I use is: /etc/hosts content 127.0.0.1 example.com Haproxy configuration frontend http mode ...
1
vote
1answer
63 views

Haproxy: Slow responses for static content

We're using HAProxy for load balancing. Our application is running on 10 Caucho Resin servers and 7 dedicated Nginx servers (this for static content). Versions: HA-Proxy version 1.5-dev19 2013/06/17 ...
4
votes
1answer
84 views
+100

haproxy timing connection diagram

I'm trying to understand more about the Haproxy timings. Below is a snippet of the timings from the Haproxy manual: Tq: total time to get the client request (HTTP mode only)... Tw: total ...
3
votes
1answer
89 views

redirect rewritten url using haproxy

Using haproxy version 1.4.24 on Ubuntu 14.04 I would like to use haproxy to rewrite and redirect urls which are no longer valid to their new equivalent. I am already using haproxy as the reverse ...
1
vote
1answer
910 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
2answers
2k views

HAProxy configuration for RabbitMQ

I have an API that sends messages to RabbitMQ. I have a high availability RabbitMQ cluster behind HAProxy. When I load test my API I start seeing lots of this: Recovering from a network failure... ...
0
votes
1answer
181 views

Logging HAProxy connection limiting

I have some simple connection and connection rate limiting in HAProxy: # Store IPs to limit connection rate stick-table type ip size 200k expire 5m store gpc0,conn_cur,conn_rate(10s) ...
12
votes
2answers
6k views

How to Read the haproxy Stats Page

For those of you using HAProxy along with the stats papge (haproxy?stats), how do I interpret this page? There is no decent explanation. For instance: Which Session column displays the number of ...
1
vote
1answer
51 views

How would you set up multiple SSL terminating Haproxy instances, which are themselves load balanced?

I've been doing a great deal of research and experimentation on this, and I'm really running into a wall: I'm trying to set up HAProxy as the reverse proxy for a high-availability environment. All ...
1
vote
2answers
3k 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 ...
0
votes
2answers
924 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 ...
1
vote
3answers
5k views

Cannot start up haproxy

Using ubuntu as my server I'm trying to set up load balancing using HAProxy. When I try to run using "haproxy -f haproxy.cfg" i get this error. [WARNING] 035/115820 (1148) : [haproxy.main()] ...
0
votes
1answer
1k 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 ...
0
votes
2answers
957 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. ...
0
votes
0answers
34 views

Disable HTTP logging for specific backend in HAProxy

How does one adjust logging level or disable logging altogether for specific backends in HAProxy? In the example below, both directives "http-request set-log-level err" and "no log" seem to have no ...
1
vote
0answers
23 views

Haproxy: reject traffic by user agent from file

I am trying to reject connections from specific user agents (by matching a substring of the user-agent header) using an haproxy ACL with -f option to read from a file. However it is not working, it ...
1
vote
1answer
16 views

haproxy raw log file to csv converter

I have some haproxy raw log files, where each lines looks something like this: Feb 6 12:14:14 localhost \ haproxy[14389]: 10.0.1.2:33317 [06/Feb/2009:12:14:14.655] http-in \ static/srv1 ...
1
vote
1answer
837 views

Configuring HAProxy with memcache with failover

I'm configuring a new set of servers for an existing Wordpress site, and it's been requested that memcache be available and made more resilient. The idea proposed is to have HAProxy send requests to ...
3
votes
1answer
1k views

Serve 404 from HAProxy when no acls match

I'm currently re-configuring HAProxy using 1.5dev-17. What I'd like to do is return a 404 error when there is no backend to use for a particular request. Our current configuration uses the ...
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 ...
19
votes
4answers
11k views

Ordering: 1. nginx 2. varnish 3. haproxy 4. webserver?

I've seen people recommend combining all of these in a flow, but they seem to have lots of overlapping features so I'd like to dig in to why you might want to pass through 3 different programs before ...
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
1answer
54 views

Haproxy not logging requests?

So, I configured Haproxy so the logging would go through rsyslog and, for now, be all dumped in one file. It's definetly logging, as I get those "starting" messages on startup, but no HTTP requests ...
1
vote
2answers
839 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
2answers
2k views

HAProxy Url pattern forwarding

I am using HAProxy for load balancing a couple of web servers (HTTP mode). The web servers are strictly dynamic, ie, there isnt any static content, only web services. The URLs of the type (analogous) ...
3
votes
1answer
354 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
44 views

Haproxy “use_backend” match order

I have a problem with Haproxy, it's a snippet of my haproxy.cfg below, acl url_a path_beg /a acl dom_eye hdr_dom(host) -i www.mydomin.com use_backend eye1 if dom_eye use_backend ...
0
votes
1answer
20 views

How the Haproxy roundrobin weighted algorithm works?

I would like to understand the load split in haproxy weighted method. For example server serverA site1.example.com weight 45 check server serverB site2.example.com weight 45 check server serverc ...
3
votes
2answers
863 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
0answers
65 views

HAProxy reload - old processes never terminated

I have HAProxy setup in TCP mode, with client/server/connect timeout of 120s. When I reload the configuration too fast, I sometime end up with multiple processes. By design, this is expected, so all ...
0
votes
1answer
87 views

Haproxy - timeout http-request vs timeout http-keep-alive vs timeout server

I'm trying to wrap my head around how the haproxy options timeout http-request <timeout> timeout http-keep-alive <timeout> timeout server <timeout> interact with each other. I'm ...
0
votes
1answer
58 views

very long “connecting” in chrome using ipv6

A connection to an ipv6 subdobain www6.example.com takes very long. In chrome the net tab shows 20s spend in "connecting". All other times are much faster. However only the first two connections are ...
2
votes
0answers
45 views

WordPress behind haproxy: $_POST being reset

So here's the sitch: Load balancer (haproxy) delivering to 3 web servers and a database server, 5 servers in total with memcache sessions being shared between the web servers. I can confirm that ...
2
votes
1answer
39 views

HAProxy 1.5 SSL and many website

Actually I'm hosting hundred website on Apache2 with some HTTP and some HTTPS, I'm preparing a new hosting infrastructure and I'm using HAProxy to loadbalance all my HTTP and HTTPS query on my ...
2
votes
2answers
51 views

Add/remove backend servers from HAProxy with command line

I've been searching for a way to add and remove backend servers from HAProxy dinamically, is there a wrapper or even an API to handle it? I want to make an auto-scale system with HAProxy and ...
0
votes
0answers
69 views

haproxy logging to syslog

I installed haproxy 1.5 via apt-get on ubuntu 14.04 via ppa:vbernat/haproxy-1.5 as per http://haproxy.debian.net/ The problem is it logging to /var/log/syslog instead of /var/log/haproxy.log The ...
0
votes
0answers
28 views

Scale automatically by monitoring the load in app server

I have a regular setup with 4 droplets in DigitalOcean. One for Haproxy as load balancer, two for app servers, run same Django application and one for database. It's quite easy to add another app ...
1
vote
0answers
34 views

HTTP Proxy with transparent copy

I've got the following: Client -> HAProxy --> backend_service_1 --> backend_service_2 It's a basic HAProxy Load Balancing config with 2 backend services. I'm hoping that ...
0
votes
1answer
41 views

TCP Load balancing

I need to implement an architecture that can serve 3 million GPS Devices sending Location Updates/Alerts (every 10 secs) to our system for processing. Features: 1) TCP communication. 1) Long lived ...
1
vote
1answer
124 views

Corosync/Pacemaker + Haproxy Failed Actions: insufficient privileges

I setup a Corosync/Pacemaker cluster + HAproxy using the following guide on Ubuntu 14.04 LTS: ...
0
votes
1answer
62 views

Install HAProxy on RedHat 6.6

I have a fresh install of Red Hat 6.6, and I want to install HAProxy on. I've read that it's now fully supported, but I haven't been able to install it. Running yum search haproxy returns no matches. ...
-1
votes
1answer
59 views

Bonding multiple proxy server [closed]

I want to use multiple proxy server at the same time to speed my downloads. How can use multiple proxy at the same time. Reverse Proxy products such as haproxy nginx can use multiple proxy server but ...