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

2
votes
0answers
130 views

Debugging incorrect certificate with SNI for some clients

I have a number of domains with SSL certificates served by Haproxy (using Haproxy 1.5's support for SSL). For the most part the correct certificates are being served, but a particular user is ...
2
votes
0answers
305 views

What is HAProxy appsession request-learn?

I'm reading the HAProxy manual and there is a part that I'm not understanding: request-learn If this option is specified, then haproxy will be able to learn the cookie ...
2
votes
0answers
172 views

HAProxy authentication for a specific path

I need to specify a path which, when hit, requires authentication. I've new to HAProxy and have been struggling with this for a while. Here is one attempt: acl auth_ok http_auth(site_users) ...
2
votes
0answers
605 views

HAProxy stats socket - incorrect values

One of my HAProxy monitoring script isn't working on a newly setup HAProxy box. I've tracked down the issue to the output of the stats socket rather than with the script itself. I'm getting values of ...
2
votes
0answers
682 views

HAProxy stick table

I have an issue where I need the same RTMP TCP connection to hit the same server it connected with if it was http or https. The following works with http: frontend http mode http bind :80 ...
2
votes
0answers
429 views

Using nginx as reverse proxy with haproxy as loadbalancer

I am tring to use nginx and haproxy together. I am doing that because haproxy does not support gzip compression. My aim is that first using nginx for gzip compression than forward it to haproxy for ...
2
votes
0answers
676 views

HAProxy + MySQL Slaves, random lost connections

The Setup Right now I've got set up 3 MySQL Servers (5.1.x, on RHEL5), one Master and two Slaves. Last week I added a load balancer (HAProxy) for some services, and thought I'd experiment with using ...
1
vote
0answers
10 views

set-header for HAProxy responses

New in version 1.5 is the http-response add-header directive. As written in the documentation -- this can be used in frontend, backend and listen. What I was trying to within a frontend section: ...
1
vote
0answers
94 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 ...
1
vote
0answers
66 views

HAproxy drops data on the floor when client disconnects immediately after sending data

In order to gain fault tolerance, I'm running haproxy between Thruk and multiple nagios backends with the Livestatus plugin. Thruk has no connection timeout, so a "dead" backend causes Thruk to take ...
1
vote
0answers
36 views

How can I update rekeyed certificates on stunnel?

I have configured stunnel using GoDaddy certificate and it was working fine. Due to some circumstances, I need to rekey the certificate and update the pem file on the load balancer. Upon updating the ...
1
vote
0answers
202 views

Issues with nginx behind haproxy

I'm hosting an ajax site (AngularJS) and it's assets/partials reside on my static asset servers running nginx behind haproxy. My setup looks as follows: Web -> Haproxy -> App (custom) and ...
1
vote
0answers
72 views

Stunnel only for specific domain

I'm configuring stunnel to encapsulate SSL petitions to Haproxy. Haproxy serves several sites in the same IP address: domain.com - Website app.domain.com - Node.js webserver I acquired an SSL ...
1
vote
0answers
197 views

How can I whitelist oubound-from-private-subnet traffic to S3 on the NAT instance of an EC2 VPC?

I'm researching privacy-compliant high-security deployment options for AWS VPC. I'm looking for a method of tightening outbound traffic from the private subnets at the NAT instance. For example, how ...
1
vote
0answers
31 views

HAProxy listen with two arguments?

I keep seeing HAProxy configuration examples with a two-argument syntax. Indeed, the default configuration file supplied with 1.4.18 contains this: listen appli1-rewrite 0.0.0.0:10001 cookie ...
1
vote
0answers
99 views

Any way to route MSMQ messages based on label?

I have a system with one MSMQ sender (generates about 10k messages/sec) and one MSMQ receiver (2k messages/sec). Generating and sending messages is fast, reading and processing is slow. Hence I want ...
1
vote
0answers
131 views

How to block trafic from anonymous proxy to my site?

some scammers are trying to reach my site using anonymous proxy. Is there a way to block connexions from anonymous proxy with haproxy or nginx? Thanks
1
vote
0answers
333 views

Puppet + HAProxy Configuration

I am trying to get HAProxy running. I have the puppet master setup serving configurations to two agents. One is the HAproxy server and the other is a simple web server (certname=webserver2). HAproxy ...
1
vote
0answers
320 views

Haproxy multiple backend servers & ports

I am a newbie to haproxy and was wondering if someone can confirm that the following config is valid? Effectively I would like to load balanced two servers on multiple ports. <snippet> Listen ...
1
vote
0answers
49 views

HAproxy request redirecting to multiple backends

I wonder if it is possible to send an HTTP request matching a particular ACL can be redirected to multiple backends in HAProxy. I want to send a copy of the request to another backend as well.
1
vote
0answers
119 views

HAProxy Redundancy, is it possible

I've read through this question, Is it possible to make redundancy on HAProxy server?, and I'm using hearbeat to do my redundancy. My redundant server DOES indeed come alive and answer on the virtual ...
1
vote
0answers
277 views

Is it possible to load balance an XMPP server that is not using BOSH?

We currently have an XMPP server and am now starting to look at clustering. We will have 2 machines, each with an XMPP server. The interface is the standard XMPP connection (not BOSH). We have XMPP ...
1
vote
0answers
56 views

Haproxy Server Statistics page reads server DOWN

Haproxy's stats page show's that I have server that isn't functioning that is connected to the services. I'm unclear through me search on how to kick the problem server off. Any help would be much ...
1
vote
0answers
229 views

stunnel Haproxy ldap authentication

in our setup port 433 is handled by stunnel. After that haproxy will dispatches the request to the appropriate backend. I have managed to enable authentication in haproxy. But the users and passwords ...
1
vote
0answers
452 views

Haproxy not logging captured request headers with custom log format

Earlier i was not specifying a custom log format, and the captured request headers were getting printed fine. I wanted to log the unique-id-header, but could not find any way of doing so. So i copy ...
1
vote
0answers
297 views

haproxy read: timeout error?

I want to configure Haproxy for outgoing mails load balancing on my centos 5.6 vps server. for this i have installed postfix on load balancer. My postfix sasl configuration as follows to use Haproxy ...
1
vote
0answers
410 views

pfsense + haproxy + stunnel as reverse proxy with load balancing and ssl terminaltion

i have this topology as title says with a pfsense with installed haproxy and stunnel. Because i saw that haproxy can't do ssl termination i thought about stunnel. But i don't know how to set up it. My ...
1
vote
0answers
149 views

HAProxy show clients connecting to 127.0.0.1:81 a 503 error

I have following HAProxy configuration: (...) frontend mixed mode http bind [PUBLIC IP]:80 bind 127.0.0.1:81 # [for https via stunnel] bind [OTHER PUBLIC IP]:80 ...
1
vote
0answers
373 views

haproxy tcp transparent mode on the same box as service

I'd like to set up transparent HA Proxy for TCP protocol. It works flawlessly when HA Proxy is in front of the boxes that are running the service. But when I try to set up HA Proxy in transparent mode ...
1
vote
0answers
219 views

Is it possible to include one HAProxy backend in another?

We're running multiple sites on the same hardware, and we'd like to serve them using the same pool of application machines. However, one site periodically gets greatly-increased traffic, and so we'd ...
1
vote
0answers
262 views

Best way to debug haproxy errors?

I am looking for a useful way to debug haproxy errors.. I found the "log-separate-errors" option (nice feature, because we have thousands of request per second and do not want to log them all), but ...
1
vote
0answers
800 views

Varnish before HAProxy seems to reuse (wrong) backend connection

We have the following setup: Nginx -> Varnish -> HAProxy -> App Server A / App Server B. Most request we process are proxied by HAProxy to App Server A. This is done based on host header values. A ...
1
vote
0answers
209 views

-sf option of HAProxy not working for me

I am using HAProxy on RedHat 5.5 and have below configuration. global daemon maxconn 1024 log 127.0.0.1 local1 info defaults log global balance roundrobin mode http ...
1
vote
0answers
491 views

HAProxy + NodeJS gets stuck on TCP Retransmission

I have a HAProxy + NodeJS + Rails Setup, I use the NodeJS Server for file upload purposes. The problem I'm facing is that if I'm uploading through haproxy to nodejs and a "TCP (Fast) Retransmission" ...
0
votes
0answers
26 views

URL configuration with no port in haproxy

I need to configure a url into HAProxy for load balancing. the URL is like http://x.x.x.x/zabbix/ How do I configure this URL without port no. I have addd like below in /etc/haproxy/haproxy.cfg file. ...
0
votes
0answers
69 views

Horizontal Versus Verticale Scaling for Large Scale RoR Application (High CPU and Memory Usage)

We are launching a high demand (several hundred simultaneous users) Ruby on Rails application and we are trying to determine the best way to scale. Currently, we have a setup that follows this ...
0
votes
0answers
29 views

Haproxy doesn't balance mp4, mp3 files

I've 2 backend dedicated apache servers (server2, server3). Frontend listening to only http traffic (server1). In the apache servers I have some video files with a .mp4 extension. At the moment I'm ...
0
votes
0answers
344 views

HAProxy configuration for RabbitMQ

I have an API that sends messages to RabbitMQ. I have a high availability RabbitMQ cluster behind HAProxy. When I load test my API I start seeing lots of this: Recovering from a network failure... ...
0
votes
0answers
73 views

High availability MySQL with HA Proxy failover

I am looking to load balance a Percona cluster behind two HA Proxy nodes with failover (using keepalived) so there is no single point of failure. I have HA Proxy already setup with keepalived using a ...
0
votes
0answers
85 views

Bootstrapping Galera Cluster

We would like to use a MariaDB Galera cluster for our project. The Galera cluster works and seems to work fine. If some nodes of cluster are down the cluster continues to work. But after a complete ...
0
votes
0answers
123 views

Why would HAProxy reject traffic from one location but not another?

I am able to access all of the sites with no issues and our customers are placing orders without any difficulty but at one of our locations where we have a lot of users constantly hitting the site, ...
0
votes
0answers
74 views

Logging HAProxy connection limiting

I have some simple connection and connection rate limiting in HAProxy: # Store IPs to limit connection rate stick-table type ip size 200k expire 5m store gpc0,conn_cur,conn_rate(10s) ...
0
votes
0answers
94 views

HAProxy halts after ~8000 benchmarks

I'm running 1.4.24 on OS X 10.9 in front of 3 local servers, which work together to formulate a response, and thus HAProxy has no speed advantage over just hitting one of them, but handles node ...
0
votes
0answers
148 views

haproxy stick on src doesn't work

I've following setup: HA-Proxy version 1.4.24 2013/06/17 I am using it to balance load on my Windows terminal services, with following configuration: global log 127.0.0.1 local2 ...
0
votes
0answers
202 views

How to use regexp in haproxy?

I know haproxy can use PCRE (enable USE_PCRE and USE_STATIC_PCRE) or POSIX regexp, and POSIX regexp include BRE (Basic Regular Expression) and ERE (Extended Regular Express). If i install haproxy ...
0
votes
0answers
186 views

Squid proxy connect method for SSL connections not working with people who are running nginx

I have a system which looks like this: Tomcat Server (has haproxy installed and balances my proxy servers) >> squid proxy server >> outside. This is the connection flow. My tomcat instance stores ssl ...
0
votes
0answers
78 views

Is it possible to have a minimum session time for HAPRoxy sticky sessions

We have HAProxy 1.4 successfully performing sticky session routing based on a value in the request querystring with the following configuration command. balance url_param userId This works great ...
0
votes
0answers
34 views

HAProxy overload protection

using the HAProxy, would it be possible to configure an overload protection, to limit the amount of requests sent to the backing http server(s) to a given rate (z.B 100 Request per second ). If the ...
0
votes
0answers
76 views

Drop in HAproxy traffic with increase in connections

We have an intermittent issue that involves a severe drop in network traffic (both IN and OUT) on our HAProxy load balancer. It happens a couple times a day. HAProxy is configured to limit requests ...
0
votes
0answers
13 views

HAProxy pause connection till server is up

I start and stop servers dynamically based on the load. Sometimes, the server needs more time before it is up and running. How to make HAProxy wait with the client connection till the server ...