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

Haproxy load balancing for download host

I'm rather new to load balancing concepts and wanted to use Haproxy to load balance between my web servers for a downloads site. I'm a bit confused as to how it works. The goal is to setup HAProxy to ...
0
votes
1answer
9 views

nginx or haproxy or varnish Multiple IP addresses, reverse proxy AND manual failover

Ok, so here is all that I'm trying to accomplish. Back Ground I have multiple IIS web servers, each running multiple web sites each with their own IP address. Each IIS "Web Site" through programming ...
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 ...
2
votes
3answers
494 views

Haproxy % traffic to a cluster

I have a web page that works in 1 server. We are in progress to migrate to a new plattform that has 3 servers. In first step in the migration plan we need to pass make a percent, say 10%, to the new ...
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
1answer
14 views

HAProxy - balance according to url_parameter

I have 2 different tomcat servers: T1 , T2 My clients that refer to my load balancer are providing the url parameter called "gender" (0 - for Male users , 1 - for Female users). only the url ...
-1
votes
0answers
16 views

Load balancing haproxy(s) themselves

Suppose I have many hundred web servers, where every 100 of them is balanced by haproxy. Is there a notion of balancing requests between the different haproxies? How can I achieve this, where the main ...
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
900 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 ...
2
votes
1answer
30 views

Benchmarking load balaners

I am working on to benchmark two different load balancers (pound and haproxy), but are unsure how this can be done. Of couse httperf can be used, but it may be technically difficult to actually make a ...
0
votes
1answer
21 views

how to change the ftp passive mode ip address for haproxy work as reserve proxy?

I have an ftp server in LAN, address is 192.168.1.11 I used haproxy is because lots of other service need it I put haproxy on my 192.168.1.1 the same machine of our soft-route(ubuntu 14.04) My ...
0
votes
1answer
31 views

Force HAProxy to lookup DNS for backend server

I have haproxy 1.5.8, it proxies some requests (based on the path) to a third-party we have no control over. Since the IP of backend server is resolved once at startup, it breaks if the IP change. ...
-1
votes
2answers
26 views

haproxy vs squid ssl bump and dynamic generation

I would like to know if following 2 features of squid are available in haproxy? http://wiki.squid-cache.org/Features/DynamicSslCert http://wiki.squid-cache.org/Features/SslBump any help would be ...
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
60 views

Blocking SSH Brute force from a HAProxy LB

We're trying to grant access to an internal SSH server using a HAProxy setup on a public DMZ. This works as expected however connections into the server are originated from the HAProxy (tproxy won't ...
1
vote
0answers
32 views

Ansible using role template vs copying static configuration file [closed]

I have been using ansible to manage the haproxy configurations for a few servers and I really like the tool. It makes deploying new servers and keeping the configurations in sync a breeze. One ...
1
vote
2answers
73 views

Is there any reason *not* to run HAProxy in a Docker container? [closed]

Will performance and/or stability suffer if I run HAProxy (or Nginx) in a container vs installing it directly on the host?
1
vote
2answers
2k views

Possible for HAProxy to perform a mix of SSL termination and passthrough?

I'm working on analyzing an intermittent load balancing failure in our application. Previously we had been using the AWS Elastic Load Balancer in the following configuration: HTTP 80 -> HTTP 80 ...
0
votes
1answer
39 views

Is there a way to raite limit connections with HaProxy using multiple thresholds

I've implemented simple rate limiting using HaProxy in a similar fashion to the way StackExchange does it with HaProxy. I'm trying to make it a bit more advanced so that there are multiple thresholds ...
0
votes
0answers
69 views

Nginx Echo Subrequest not working

I am new to Nginx. My requirement is I need to make a service call but along with proxy passing that request, I need to make call to another service/servlet. For this I decided to use Echo module to ...
0
votes
1answer
40 views

How does load balancing work for a coreOS cluster?

Preface: I don't know much about load balancing. Say I have a few virtual machines on a cloud service like Amazon, running a few instances of coreOS each. How exactly does load balancing work in ...
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 ...
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 ...
3
votes
0answers
94 views

Common back pressure strategies for services under sustained high load

I'm wondering what are the common backpressure strategies people use for their web services? Imagine your service operates under heavy load, and at some point the load reaches 120% of your capacity. ...
1
vote
0answers
57 views

nginx try_files redirect using wrong scheme when behind SSL termination load balancer (haproxy)

I have an nginx 1.6.2 server running as a backend behind a load balancer that does SSL termination. All communication to the backend servers goes over HTTP. Diagram of what's going on: ...
0
votes
0answers
36 views

How to configure HAProxy to use SNI for SSL enabled backends?

I have several backend web servers that have multiple vhosts and I want to use HAProxy in front of them. It doesn't appear that HAProxy is sending the hostname in the TLS connection to the backend ...
1
vote
1answer
25 views

Upgraded OpenSSL version with HAProxy

I'll make this short and to the point. I'm running HAProxy 1.5.5 with SSL support for SSL termination/offloading. Do I need to recompile HAProxy if I update/upgrade openssl, or just restart the ...
0
votes
1answer
35 views

HAProxy + Heartbeat cluster active/active?

I have 2 servers running HAProxy to load balance some web servers and database servers with Heartbeat to cluster them in active/passive mode. At the moment, if the active server dies then the passive ...
0
votes
1answer
941 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
0answers
38 views

Expanding HAProxy health check to monitor MongoDB primary and secondary state

Follow up question regarding the MongoDB health check with HAProxy How to construct a MongoDB Health Check in HAProxy? The current solution works well when the focus is on determining if mongo ...
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 ...
1
vote
1answer
1k 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 ...
0
votes
1answer
54 views

Haproxy setup with subdomain setup

Hoping someone can help confirm if this suppose to work? I'm trying to route 3 subdomain traffic to the same haproxy host; Here is my setup haproxy with one interface ip 10.10.10.100 and dns name ...
0
votes
0answers
29 views

HAProxy backend not draining

I am using two seperate haproxy clusters to load balance web farm and appfarm. Its a very simple setup. HAproxy cluster on DMZ distributes SSL traffic accross web farm and HAproxy cluster on app ...
4
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 ...
0
votes
2answers
919 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
74 views

pfSense 2.2: HAProxy for HTTP + CARP + MultiWAN with VIPs issue (Outbound NAT?)

I have two pfSense firewalls with CARP setup, 2 WANs and HAProxy that points to HTTP servers in my LAN. Scheme: **pfSense server #1** ISP#1 - Public IP1.1 - pfSense#1 with HAProxy - HTTP ISP#2 - ...
12
votes
2answers
5k views

HAProxy graceful reload with zero packet loss

I'm running an HAProxy load balancing server to balance load to multiple Apache servers. I need to reload HAProxy at any given time in order to change the load balancing algorithm. This all works ...
0
votes
1answer
26 views

HAProxy loadbalancing wildcards

This is an example of my loadbalancer file for a single DNS entry. acl: - 'is_site_net hdr(host) -i site.net’ use_backend: - 'site_net if is_site.net whitelist_list’ site_net: options: ...
12
votes
2answers
7k 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
0answers
56 views

Haproxy backend server down due to layer 6 invalid response failed ssl handashake?

The scenario is we have two servers which are in different network . We want to have ssl communication from client to front-end and from front-end to back-end ! the front-end able to get ssl ...
0
votes
1answer
26 views

Is return traffic for SSL-enabled HAProxy secured also?

I've got a HAProxy in front of a number of Webservers. Connection from clients to HAProxy is SSL secured. But it is terminated at HAProxy and traffic from HAProxy to the underlying Webservers are in ...
2
votes
1answer
682 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 ...
0
votes
0answers
9 views

AWS ELB 400 BAD_REQUEST with space at the end of a URI

We're using AWS ELB for HTTP/S load balancing, and we've run into a pretty crazy issue with the ELB. $ curl -i "http://yourdomain.com/ " HTTP/1.1 400 BAD_REQUEST Content-Length: 0 Connection: Close ...
1
vote
1answer
103 views

Keepalived + Haproxy performance, apache or nginx? [duplicate]

I have a question about Keepalived + Haproxy. At work I am assigned to deploy a redundant web server with Keepalived and Haproxy. Our setup at the moment is as follows: Apache (as load balancer) + ...
0
votes
0answers
40 views

disable keep-alive for one user agent in haproxy

in my defaults haproxy config block I have this: mode http option abortonclose option http-server-close option forwardfor We updated our mobile app to iOS 8 just to find out that there are ...
0
votes
0answers
59 views

haproxy: WebDAV simply won't work with Microsoft Windows

So I have HAproxy listening for http/https on a virtual IP. I have two Apache2 (apacheserver1 and apacheserver2) servers serving web traffic. Everything is working fine - I am serving web pages, my ...
4
votes
2answers
297 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. ...
0
votes
1answer
84 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 ...