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
9 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
20 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
19 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 ...
-2
votes
0answers
8 views

Using HAProxy for transparent forwarding and whitelisting [on hold]

I am attempting to setup HAProxy to transparently forward HTTP service requests, acting as an open proxy but only for a given set of IP addresses listed in a whitelist file. The HAProxy config file ...
0
votes
0answers
12 views

Desktop_Website (backend) in Stats Page of HAproxy [on hold]

For those of you using HAProxy along with the stats page. In Desktop_Website (backend), i don't why number current session less than session_rate_current ?
1
vote
0answers
40 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
53 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
18 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
19 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
23 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
25 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
32 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
16 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
32 views

Retry/backup & circuit breaker on nginx or haproxy [closed]

I am not an infrastructure engineer, but I've got some requirements, and two "preferred" tools. So I'll describe the requirements and ask - is this possible with nginx or HAProxy, and if so, how? I'm ...
0
votes
0answers
45 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
23 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
38 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
23 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
8 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
72 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
45 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
23 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
44 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
25 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
41 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
32 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
42 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
35 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
27 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
32 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
22 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
41 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
0answers
24 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
23 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
129 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 ...
0
votes
0answers
70 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
0answers
81 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 ...
1
vote
0answers
81 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
55 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
0answers
28 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
17 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
70 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 ...
4
votes
2answers
436 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
1answer
40 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
1answer
54 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 ...
0
votes
2answers
97 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
91 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 ...
0
votes
0answers
79 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
80 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 ...
3
votes
1answer
50 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 ...