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
0answers
6 views

haproxy displaying incorrect version / 503 service unavailable

I am using docker with a few containers. One of my containers has haproxy and I wish to reverse proxy a domain to one of the other containers which is holding a web server. There are a few weird ...
0
votes
0answers
3 views

haproxy.cfg 1.5.12 log file error

This is the top three lines of my haproxy.cfg: global log /dev/log local0 log /dev/log local1 notice ... I get the error in the terminal: root@b323d0a11c98:/etc# service haproxy ...
1
vote
0answers
11 views

Redis Sentinel false failovers

I'm having problems with Redis. I have 3 servers. Each server have 10 Redises working on different port. Also, each server has one Sentinel instance. Also, there are 5 application servers. Each ...
0
votes
3answers
33 views

Software load balancing - apache httpd or other

Figure 1: Web to Application Server - Load Balancing with Session Stickiness Figure 2: Target deployment - Software Load Balancer to route requests to app server through web server First picture ...
0
votes
2answers
29 views

HAProxy max session limit

I have an Amazon OpsWorks stack running HAProxy (balance = source) and several node.js instances running socket.io. It seems HAProxy determines the max session limit for a given instance based on the ...
0
votes
1answer
17 views

Haproxy dynamically promote backup server to master

Let's say if I have two mysql databases, db1 and db2. Is that possible to configure haproxy to work like that: In the beginning: db1 work as master and db2 as backup. The haproxy will promote db2 ...
0
votes
0answers
18 views

haproxy get ssl interrupt error, how haproxy tell server to close ssl or tcp?

I use haproxy 1.5 and a windows server build site. my site work under the https protocol, so for haproxy I use tcp mode since I think the ssl can not work on http mode. my problem is the ssl ...
0
votes
2answers
33 views

HAProxy backend with TLS stopped working

I'm having trouble with one of our HAProxy-Servers that uses a backend with TLS. When starting HAProxy the backend will report all servers as down: Server web_remote/apache_rem_1 is DOWN, reason: ...
1
vote
1answer
19 views

HAProxy track_script + nopreempt not working

I have 2 nodes with Keepalived v1.2.13, in Amazon AWS VPC. I'm trying to achieve this scenario, assuming Node1 is MASTER: If I stop HAProxy or stop keepalived or stop the node, failover to Node2. If ...
-1
votes
1answer
17 views

Understanding HAProxy statistics web

I would like to understand the parameters shown in the HAProxy stats web interface. What's maxsock parameter about? And current conns in general process information´? Why it isn't the same as current ...
0
votes
1answer
19 views

HAProxy 1.5 Serving Static Assets Very Slowly

I'm doing a few side-by-side comparisons because we'd like to switch from Ngnix as a load balancer to HAProxy. The problem is that when I set up HAProxy I end up getting a really slow load time, ...
0
votes
1answer
18 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
32 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 ...
0
votes
1answer
20 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
28 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 ...
2
votes
1answer
32 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
29 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
42 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
44 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 ...
1
vote
0answers
38 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
88 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?
0
votes
1answer
60 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
73 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
48 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 ...
1
vote
0answers
62 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: ...
3
votes
0answers
110 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. ...
0
votes
0answers
46 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
40 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
48 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
0answers
44 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 ...
0
votes
1answer
65 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
33 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 ...
0
votes
0answers
107 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 - ...
0
votes
1answer
28 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: ...
1
vote
0answers
79 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 ...
0
votes
0answers
14 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
118 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
1answer
71 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 ...
0
votes
0answers
49 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
72 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 ...
0
votes
0answers
29 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 ...
1
vote
1answer
83 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
0answers
48 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
2answers
56 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
53 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
34 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
45 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
45 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
43 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 ...