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

3
votes
1answer
243 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
22 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
16 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 ...
2
votes
2answers
810 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.
0
votes
1answer
16 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
0answers
40 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
22 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
43 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
16 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
24 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
27 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
24 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 ...
1
vote
3answers
833 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 ...
0
votes
0answers
24 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
25 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
32 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
71 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
32 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
48 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 ...
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 ...
2
votes
0answers
130 views

Configure haproxy to return a 204 for a certain ACL match

I want to return a HTTP 204 error code if anyone tries to access a particular path on my web server. I could set one of my webservers to return a 204 error and point haproxy to it as a backend. ...
0
votes
1answer
905 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. ...
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 ...
0
votes
1answer
872 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
0answers
33 views

Is it possible to run a proxy server on “OpenShift Online” or appfog? If yes, how? [closed]

In the openshift documentation it says under 4.2: In OpenShift Online, proxy ports are not directly accessible from outside the collection of nodes. To explain the question: We have a tiny ...
0
votes
1answer
36 views

Haproxy logging not work

Cant understand, how it logging? Now my log is empty and haproxy doesnt write anything to file. Sometimes it logs some info, Logging works with syslog-ng, if i set in haproxy conf timeout client about ...
0
votes
2answers
55 views

Proxying TCP by hostname

I've got multiple game servers TCP ports on my single host machine. The goal is to have users be able to connect to server1.domain.net and have their directed based on that subdomain. My first ...
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
0answers
48 views

Rabbitmq Haproxy termination states

In log of haproxy i see an cD flag. Balancer is in front of rabbitmq nodes. When nagios checking nodes, log looks like this: SD flag [10/Nov/2014:14:48:01.190] from NAGIOS IP to Rabbitmq:5672 ...
1
vote
1answer
54 views

Keepalived track_script + nopreempt doesn't seems to work

I have 2 instances in AWS running keepalived. Each one runs an HAProxy process. I'd like to monitor HAProxy, and in case it fails, fall back to the lesser prioritized node. But if the previous MASTER ...
0
votes
0answers
19 views

HAProxy & MeteorJS - 503 errors everywhere

I'm trying to set up HAProxy as a load balance for two MeteorJS instances. For some reason, HAProxy does not seem to pick up that my instances are there. I can curl 192.168.0.4 and I get the expected ...
0
votes
2answers
902 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
1answer
835 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
12 views

HAProxy backend throttling

I'd like to use a similar setting with the one described here to rotate among a set of proxies (not Tor but same idea). One extra requirement though is to throttle requests so that no backend server ...
0
votes
1answer
897 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 ...
4
votes
2answers
143 views

Scale HAProxy for more than 64k websockets

We are trying to design an architecture that will be able to handle more than 64k websockets. We first tried with Amazon ELB, but its design doesn't allow unexpected spike of traffic nor websocket. ...
4
votes
1answer
2k views

Using HAProxy, matching root URL only in ACL

Using HAProxy, I want to create the following setup: All requests except root (/), /articles and /blogs go to server1 All requests for root (/), /articles and /blogs go to server2 I can't figure ...
0
votes
0answers
18 views

HAProxy: Balance between two paths on the same server

I need to balance between two paths on the same HTTP server using HAProxy. I.e. Opening myserver Should balance between myserver/path1 and myserver/path2 In my haproxy.cfg I tried using: listen ...
1
vote
1answer
799 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 ...
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 ...
3
votes
1answer
996 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 ...
0
votes
1answer
53 views

HAProxy + RabbitMQ, keep connections alive

I'm trying to setup HAProxy as a load balancer on a RabbitMQ cluster. I use a config like this one: global log /dev/log local0 debug log /dev/log local1 debug chroot ...
11
votes
5answers
11k views

Windows replacement for HAProxy

It does not appear that there is a similar question to this already posted, so I will go ahead and ask. I am working on a project that could benefit from having two - four servers handling incoming ...
1
vote
1answer
661 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
2answers
934 views

Haproxy Check if Cookie is Set

I have a Haproxy config that is currently in development and I am using the following code in order to find if the requesting user will accept a cookie or not as the script at the end destination ...
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
0answers
62 views

HAproxy ACL based on backend application session cookie to replace HTTP Basic Auth

I would need some help on HAproxy configuration to bypass HTTP basic auth and let the user use a specific backend in case there is a valid session cookie present from another backend application. I ...
-1
votes
1answer
47 views

Howto monitor web server nodes through HA proxy using Icinga/Nagios in CentOS 6

In this guide I'm not focusing at all on setting up HA proxy or why you'd want to do that. If you have it and want to properly monitor it using Icinga, here's an idea of how you could go about this. ...
1
vote
2answers
828 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 ...
0
votes
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) ...