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

Using HaProxy environmental variables in haproxy.cfg not working

Trying to figure out why environmental variables in haproxy.cfg aren't working in HA-Proxy version 1.5.2 on the command line, using Printenv I get a list of environmental variables like ...
0
votes
2answers
2k 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
1answer
21 views

Configuring iptables for Haproxy

Ubuntu machine running haproxy with 2 network cards, 1 connected to WAN (called wan0) and another connected to LAN (called lan0). All chains set to DROP traffic. # Masquerade traffic from LAN to WAN ...
1
vote
0answers
16 views

Key management for HAProxy instances in OpsWorks

I'm trying to use client certificate verification in an OpsWorks HAProxy instance. The question I'm running into, and it's probably a noob issue, is how am I supposed to deploy my ssl private key to ...
4
votes
1answer
5k 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 ...
13
votes
3answers
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
0answers
16 views

Use haproxy to route openvpn trafic to mutliple openvpn instances

I'd like to use multiple OpenVPN docker instances on the same IP port, so I'm looking for a way to route the ssl vpn trafic, does something like haproxy can do the job? Maybe by sniffing the ssl ...
0
votes
1answer
17 views

How to rewrite errors returned by an underlying server at HAProxy?

I have a JBoss cluster under Apache HTTP servers, which is in turn under the HAProxy load-balancer. Whenever a JBoss application server goes down, Apache shows the 503 error screen. Is there a way I ...
0
votes
0answers
16 views

How to configure HAProxy to pass though unencoded URL to Jenkins backend?

I have HAProxy configured to terminate SSL connections for a Jenkins CI server, proxying to the Jenkins CI server backend over plain ol' HTTP. I can successfully perform [thus far] all of the ...
0
votes
0answers
18 views

HAProxy with Rapid SSL Certificate

I'm using HAProxy version 1.5.2 on Centos. I received 3 certificates from GeoTrust/Rapid SSL CACertificate-1.cer CACertificate-2.cer ServerCertificate.cer All of the above certificates start with ...
0
votes
1answer
19 views

haproxy: how to intercept links that point directly to the backend servers

I have set up haproxy and it works fine, I can access web pages that sit on servers on the backend. The setup is as follow: There's a single frontend haproxy server that points to different backend ...
0
votes
1answer
882 views

Server's maxconn parameter in haproxy

I'm using HAProxy in production to balance queries to a series of server instances that can only process 1 query at a time (by our own decision). Knowing that I set the maxconn parameter in the server ...
3
votes
1answer
2k 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
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. ...
1
vote
0answers
17 views

HAProxy ipv6 to ipv4 issue

I have setup a HaProxy node ver 1.5.3 on Ubuntu 14.04. The Ubuntu server has 1 nic. The nic has an IPv6 address and an ipv4 address. The IPv6 listens on port 80 for incoming internetconnections. The ...
0
votes
0answers
5 views

Use HAproxy's “redir” without appending URI

In case of all backends failure, I want to redirect the client's requests to a maintenance page. IE : http://mycrashedwebsite.com/folder/page.html should redirect 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 ...
1
vote
2answers
918 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 ...
3
votes
1answer
124 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. ...
2
votes
1answer
310 views

Tomcat 6 session replication does not work with HAProxy

I have HAProxy loadbalancer and two Tomcat backend servers. HAProxy is configured with cookie based persistence, Tomcat is configured with SimpleTcpCluster according to documentation. Multicast ...
0
votes
1answer
43 views

Moving a web application to use HAProxy, Varnish, and nginx

I currently have 4 web application servers (running on application) on Rackspace that sit behind a Load Balancer (on Rackspace). In front of the Load Balancer. The application itself makes moderate ...
0
votes
1answer
34 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 ...
3
votes
1answer
42 views

HAProxy balance algorithms for Apache and MySQL

just recently I got responsible for an existing project that uses Apache webservers and MySQL databases. The webserver are behind a HAProxy loadbalancer and the application connects to the MySQL ...
0
votes
1answer
22 views

HAProxy log outgoing requests

Currently, my HAProxy logs have information about the incoming requests: HTTP version, method, host, path, and headers. I am trying to debug my HAProxy config, and need to know what the resulting ...
16
votes
7answers
23k views

Remote IP's with HAProxy

I'm testing a new web server setup which is having a couple of issues. Essentially, we have a web server, where the code uses the remote IP for some interesting things, and also some apache ...
1
vote
1answer
449 views

HAproxy 1.5 Trusted CAs

I'm trying to get HAproxy 1.5.x to trust any certificate authority already in the trust store of the machine (/etc/ssl/certs) without having to explicitly specify the individual ca-file root authority ...
3
votes
1answer
3k 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
20 views

Issue with multiple sites on same vps with haproxy

Setup I have a VPS which I am using docker on. I currently have 3 containers. 1 for haproxy and the other 2 containers contain their individual sites (running a nodejs http server on port 8080). I ...
0
votes
1answer
33 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 ...
1
vote
0answers
24 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
2answers
47 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 ...
2
votes
3answers
3k views

nginx access logs ignore certain requests

I'm running nginx behind haproxy (running on the same server). I've configured haproxy to use a simple html file on nginx to verify the service is up, since I don't have/want a valid "/" URL on this ...
0
votes
0answers
66 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 ...
0
votes
1answer
2k 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
1answer
20 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 ...
1
vote
1answer
2k 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
29 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
1answer
1k 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
2answers
53 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
34 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 ...
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
28 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, ...
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
votes
1answer
25 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 ...
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
1answer
22 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
57 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 ...
2
votes
3answers
545 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
1answer
32 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 ...
2
votes
1answer
37 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 ...