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
60 views

Can HAProxy select a backend based on a lookup table?

Let's say I have items A, B, and C. I have two backend servers: server01 and server02. Item A can be handled by server01, item B and C can be handled by server02. New items and servers get added and ...
0
votes
0answers
15 views

How to configure HAproxy with weight and cookie stickiness?

I have two web servers. web01 and web02. they have different code on them. I want most of my connections to reach web01 and few to reach web02. I want to have cookie stickiness (not source ...
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 ...
1
vote
2answers
35 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
20 views

HAProxy FrontEnd's IP Added to Header

Using HAProxy 1.5, is it possible to add a request header whose value is the IP address used by a frontend whose bind uses a wildcard? For example, given the following configuration, is there ...
0
votes
2answers
26 views

SNI for multi tenant load balancing in 2015

We're a multi-tenant service and terminate our SSL at our load balancers (HAProxy + Apache for SSL termination), this has caused growing pains due to dedicated IP requirements. But times have changed ...
0
votes
0answers
15 views

How haproxy understand URLs, URI, HOSTs

I know that haproxy understand urls, but here when I want to test if haproxy is up I acess the machine name at browser and it redirects to the desired node.js server. This request is usually a ...
0
votes
0answers
11 views

How to config iptables to forward connection from/to internal VM

I have an host with proxmox and some virtual machine installed, the first machine is a proxy with haproxy that forward the request to other VM and in proxmox host i have this iptables script: ...
0
votes
0answers
14 views

Inject header in HAProxy redirect function

I have HAProxy 1.5.8. I have this basic 301 rule : frontend http_frontend bind *:80 mode http redirect location https://xxxx.com code 301 The response looks like this : HTTP/1.1 301 Moved ...
0
votes
0answers
15 views

Can haproxy run user-defined shell script for healthy checking?

When configuring HAProxy, we can assign user-defined checker by using a .sh script and xinetd. I wonder why does not HAProxy call the script directly and check exit code? I'm using ubuntu 12.04 LTS. ...
0
votes
0answers
14 views

Multiple conditions in redirect for HAProxy

I'm having some difficulties using the redirect option when having multiple named ACL's I'd like to use for conditions. Say I have five hostnames that I have put into named ACL's and now I want to ...
0
votes
1answer
34 views

It is possible to configure more than one haproxy in different machines to listen to same request?

I'm wondering if it is possible to create a cluster of haproxy, so if the haproxy machine fails, another haproxy gets the job done. I tried to change the frontend configuration to listen to other ...
0
votes
1answer
332 views

Amazon RDS load balancing and performance

My question is simple. Is it possible to load balance rds (master and read-replicas) using the same haproxy instance used for application load balancing? This would mean that the IP of the ...
0
votes
0answers
12 views

Limit bandwidth per backend with haproxy

I want to limit bandwidth in each backend (I have around 3000 backends), if my backend is over limit I want to have a clear http response. My backend setup : stick-table type ip size 200m store ...
0
votes
0answers
18 views

Empty GET / HTTP/1.1

I'm wondering why I'm seeing all these empty HTTP GET requests in my Node / Express server logs. We're behind HAProxy (if that matters) [2015-02-25T01:33:31.592Z] INFO: xxxx-web/20106 on ...
0
votes
1answer
43 views

HAProxy + keepalived + multiple backend farms / virtual IP addresses

we have several backend farms (HTTP, FTP, etc), basically one farm for each customer, and I am about to rebuild our load balancing infrastructure, moving from Piranha to HAProxy. Since we are using ...
4
votes
2answers
324 views

Load Balancing DNS Servers: UDP / TCP

I have been asked to rebuild our load balancing infrastructure in the data center. The original request was to load balance FTP servers. I tried doing that using the current load balancer (Piranha / ...
0
votes
0answers
33 views

HAProxy tcp load balancing with an https check fails

I'm trying to load balance a posgres tcp connection, with a node check done via a python script residing on an https connection. conf file looks like so: global log 127.0.0.1 local2 ...
0
votes
2answers
62 views

HAProxy doesn't keep-alive http connection

I've switched on the option http-keep-alive in the defaults, as well as tried it in the frontend definition. But the Response Headers in the browser never show up keep-alive, although its there in ...
0
votes
0answers
43 views

HAProxy but still single point of failure

I'm setting up a test cluster - Maria Galera Cluster on 3 physical nodes with HAProxy. Its working, but I've made some kind of beginner error which I can't seem to resolve - so hopefully someone can ...
0
votes
1answer
1k 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 ...
0
votes
2answers
62 views

Mixed content http https and haproxy

I have a problem with haproxy and mixed content. When I try to connect through haproxy ssl, the browser (in this case either Firefox or Chrome), in default configuration, blocks the mixed content - in ...
0
votes
1answer
846 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 ...
1
vote
1answer
1k 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 ...
1
vote
0answers
39 views

Nagios check_http gives 'HTTP/1.0 503 Service Unavailable' for HAProxy'd site

I asked this on stackoverflow, but I think it's better suited for here. Can't figure this one out! OS: CentOS 6.6 (Up-To-Date) I get the following 503 error when using my nagios check_http check ...
2
votes
0answers
23 views

HAProxy switch to backup on 500 errors and/or server down

I'm setting up an HAProxy in front of only 2 backend servers, with a particular configuration: any request should go to server A; but, if server A returns a 5xx error code, all request should go to a ...
0
votes
1answer
24 views

HAProxy health checks and changing server state

I've poured through lots of docs and Google searches but can't seem to find an answer. I'm using HAProxy with several servers that take a while to start--initial loads on my local VM are about a ...
0
votes
0answers
24 views

Strange haproxy behaviour

So I'm trying to set up a dual site haproxy (1.5.10) on Ubuntu 14.04. http://i.stack.imgur.com/EtdYo.png When I do service heartbeat restart on eartha, both machines go green briefly; then earthb ...
0
votes
0answers
10 views

Saving a cookie value in a stick table to later allow requests in HAProxy

I have an HAproxy with two URL-based routes: /route1 and /route2 (both under the same domain). These are the purposes of each one: /route1 contains the main website where you log in and get a cookie ...
1
vote
2answers
45 views

Configure HAProxy on Linux to accept 10K simultaneous connections

I have HAProxy 1.5 running on Ubuntu 14.04 (modified). It accepts connections on http and https ports. Two backend applications process requests using persistent connection. When I create around 2200 ...
-2
votes
0answers
28 views

Forward real ip haproxy

Okey so I use haproxy to forward a TCP connection but the proxy IP shows instead of their IP which is quite annoying. How can this be fixed? I run on centOS btw.
0
votes
1answer
36 views

How to use environment variable in haproxy?

I work with haproxy 1.5.2 My haproxy.cfg has this server definitions: server HALB_ucd1 ${UCD1_END_POINT_IP}:${UCD1_END_POINT_PORT} check port 8444 I set the UCD1_END_POINT_IP and ...
3
votes
4answers
3k 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
4k 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
961 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 ...
0
votes
2answers
1k 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 ...
2
votes
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 ...
0
votes
1answer
75 views

Puppet agent unable to connect through Load Balancer

I am currently trying to setup a load balanced puppet infrastructure. I am using puppetserver for the puppet server(s) and puppet agent 3.7.3 for the clients. Currently I have four servers setup in ...
0
votes
1answer
53 views

Softlayer HAProxy with failover

I have 2 virtual servers on Softlayer, both running HAProxy. I am trying to set up failover with keepalived. Each server has a private IP and public IP, and they are on the same VLAN. I've tried many ...
3
votes
1answer
32 views

Proxy dropping custom headers with https

Problem : With HTTPS requests my proxy is dropping custom headers from the response : HTTP request : $ curl -I -x 127.0.0.1:5566 http://www.google.fr HTTP/1.1 200 OK ... X-Servedby: 50001 => My ...
0
votes
2answers
1k 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
36 views

HAProxy Does Not Recover After Failed Check

All, I'm having an issue with HAProxy not recovering after a backend server is restarted. I'm not using the proxy for load balancing, but to direct different URLs to different servers (web and web ...
0
votes
0answers
48 views

Why does haproxy 1.5 give me a 503 error when proxying https traffic

Using http://seanmcgary.com/posts/using-sslhttps-with-haproxy, http://seanmcgary.com/posts/haproxy---route-by-domain-name, HAProxy official docs, and several other Google results as reference, I'm ...
-1
votes
1answer
36 views

Load Balancing VPN servers (Ubuntu)

I am trying to load balance two VPN servers, that are located quite far from one another. I am using Ubuntu with pptpd, is there anyway to load balance those two servers? So user connects pptp 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 ...
0
votes
1answer
283 views

HAProxy - ssl client ca chain cannot be verified

Situation: I want this to work: requests come from clients and goes to haproxy through 443 port (ssl) and then it must go to backend on 80 port. I have server certificate given by intermediate ca ...
0
votes
1answer
30 views

Haproxy replace whitespace in request URL with %20, how?

For example, I have header GET /yo?title=What a cool day HTTP/1.1 I want to replace whitespaces with %20 GET /yo?title=What%20a%20cool%20day HTTP/1.1. I want replace because backends with nginx do not ...
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 ...
1
vote
2answers
876 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
0answers
54 views

HAProxy SSL client authentication based on domain

I'm trying to achieve the following : If I request subdomain1.mydomain.com, terminate SSL and forward to backend. If I request subdomain2.mydomain.com, terminate SSL + authenticate with client cert, ...