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

HAproxy for load balancing FTP servers

I have successfully set up a load balancing environment using HAProxy and 2 FTP servers running vsftpd. This is what the setup looks so far: Proxy: ftp00 | 192.168.2.135 Node01: ftp01 | ...
2
votes
0answers
37 views

Intermittent Connection Issues on High Traffic Servers

Some brief background: We've been getting reports of very intermittent connection issues from our users. Several times per day, users will have to reload the page they're on due to a connection ...
0
votes
0answers
8 views

ACL at HAProxy shows NOSRV

I have 3 backends in HAProxy 1.5.10: "WEB", "API", and "SSL" for web and api. For SSL termination I'm using ACL with SNI. Here is my config: frontend ssl mode tcp bind 0.0.0.0:443 ssl crt ...
1
vote
1answer
32 views

HAProxy with SNI and different SSL Settings

I have HAProxy for my two sites, one of them public and one private. www.mysite.com private.mysite.com Atm, I'm using haproxy like this: frontend mysite_https bind *.443 ssl crt /etc/mycert.pem ...
0
votes
0answers
23 views

haproxy proxy protocol x-forwarded-for

I'm using haproxy instances behind AWS ELB. For HTTP Rest, i works like a charm. Now i want to dispatch websockets and have to switch my AWS ELB to TCP mode. I Want to get realip from by backend ...
0
votes
0answers
23 views

Puppet agent unable to connect through Load Balancer

I am currently trying to setup a load balanced puppet infrastructure. I am using puppetserver for the puppet server(s) and puppet agent 3.7.3 for the clients. Currently I have four servers setup in ...
1
vote
0answers
20 views

HAproxy freeze / crash / stops accepting cottections

I've seen similar posts for my issue but none of them seem to be relevant for my case. I've had my HAproxy configured for the past 3 months roughly the same and did not encounter any issues. The ...
0
votes
0answers
15 views

haproxy client certificate authentication signed by 'common' CA

I am setting up haproxy as an SSL terminator/load balancer in front of an API that we need to expose over the internet to a customer. The plan was to use mutual (2-way) SSL/HTTPS to verify that both ...
0
votes
2answers
27 views

HAProxy: Redirect Root Site Root to Subsite

I would like to redirect the root of my website to a subsite by default. Like http://www.domain.com/ ---> http://www.domain.com/subsite I have tried this, but this matches all the URLs anyway: ...
-1
votes
0answers
22 views

How to make HA Proxy keepalive

In my environment I have haproxy load balance for 2 web servers (Apache), this is my HA Proxy configuration : global log 127.0.0.1 local2 chroot /var/lib/haproxy pidfile ...
0
votes
1answer
57 views

Rate limit new connections in IPTables instead of Nginx or HAProxy?

I would like to use some form of rate-limiting both 1) new TCP connections and 2) requests over an existing connection to HTTP(S). I will probably handle #2 with nginx or HAProxy (because I have more ...
0
votes
0answers
36 views

using haproxy acl for website matching

I am working with acl statment in haproxy 1.5 as shown below. The idea is that for this specific site cop backend should be used but its not working. I tried with hdr(dom) and few other options but ...
0
votes
2answers
21 views

Haproxy: How to balance traffic within directory reached?

I want to know if there's a way to balance the traffic within directories using haproxy. I have haproxy balancing all HTTP traffic to server1 & server2. What I want is to balance all images ...
0
votes
1answer
47 views

HaProxy + CloudFlare

I am trying to setup HaProxy with DDoS protection rules (rate limiting). However, I think HaProxy is now rate limiting CloudFlare IPs instead of Visitor/Real IPs. (note: my site itself is fine, ...
1
vote
1answer
22 views

Force Apache proxy_balancer to specific worker

I would like to have two tomcat servers behind a proxy_balancer so I can do rolling deploys. I have this working so I can take down one tomcat and the other takes futire requests <Proxy ...
1
vote
1answer
32 views

Slow POST upload (Linux kernel Tuning)

I'm working in a Caucho Resin backend with an HAproxy configured in front of them, in a dedicated server. Now I'm dealing with a file upload problem. Our web application allows a file upload for ...
0
votes
0answers
42 views

Keepalive best practices for Nginx-Haproxy-Apache chain

I am using Nginx to serve static content, and Haproxy to proxy requests to multiple Apache2 backends discovered via Zookeeper. Nginx -> Haproxy -> Apache2 According to the official Nginx website, it ...
0
votes
0answers
28 views

Apache not forwarding to HAProxy

Scenario: I have a mobile application that needs to talk to a service hosted by an IBM Datapower appliance. However, the Datapower appliance requires bi-directional SSL and that will not work for ...
0
votes
1answer
45 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 ...
-1
votes
0answers
30 views

HAProxy Monitoring Detail Stats

I am using HAProxy, load balancer[with 2 Servers] with following configuration : global maxconn 4096 user haproxy group haproxy daemon stats socket ...
1
vote
0answers
29 views

HAProxy: Limmit concurrent connections based on HTTP header field

I try to limit the number of concurrent connections using HAProxy stick-tables based on HTTP header fields. I could find plenty of examples using IP addresses, but this doesn't work in my case. Our ...
0
votes
0answers
19 views

Clustering with Jboss EAP and Load balancing with Haproxy

I'm doing load balancing with HAProxy and use JBoss EAP as application servers. The Haproxy server is configured to route incoming requests to the application servers. How can I integrate Jboss EAP ...
0
votes
1answer
59 views

HAProxy SSL Handshake failure on one server but not the other

I've been searching the net extensively but I'm not able to find a solution to this problem. I have setup two servers behind KeepAlived and HAProxy. When both servers are up, I can see that both ...
0
votes
1answer
34 views

HAProxy doesn't keep-alive http connection

I've switched on the option http-keep-alive in the defaults, as well as tried it in the frontend definition. But the Response Headers in the browser never show up keep-alive, although its there in ...
1
vote
1answer
160 views

Weird interaction with systemctl with Haproxy on CentOS 7

Running haproxy through systemctl is different than running it manually. on manual start, everything works. starting through systemctl, haproxy is not able to find the service it proxies, and ...
1
vote
1answer
29 views

Default backend in haproxy

I wonder whether there is a way to configure a default backend in haproxy, so it balances requests among a pool of backend servers (three in the example below), keeping the default backend as a ...
0
votes
1answer
61 views

How do I inform HAProxy that my server is back up?

I'm a bit of a HAProxy newbie - I've got 3 docker containers, one running HAProxy with the following config: global log ...
0
votes
1answer
35 views

How do I show an empty error page on HAProxy for a single URL?

Question I have a single URL say: http://foo-backend.com/display_blank_when_errored On a site behind an HAProxy load balancer let's say the front-end site is: http://foo.com When an error happens ...
0
votes
0answers
23 views

HAProxy use cookie to drain server

I have the following segment in my haproxy.cfg listen stats :80 stats enable ...
1
vote
1answer
42 views

How to reconnect to the backend with HAProxy

I'm new in working with HAProxy. I couldn't figure out how to make HAProxy to reconnect to backend that was down and started up back again. I have a configuration of two backend servers. When they ...
0
votes
2answers
220 views

Implementing TCP Sticky Sessions With HAProxy to Handle SSL Pass-through Traffic

How can we implement session stickiness in HAProxy when SSL must terminate on the backend servers? We need the stickiness because backends cannot share sessions. This is my original configuration: # ...
1
vote
1answer
41 views

Request doesn't hit port 80 on HAproxy

I'm configuring HAProxy to redirect http to https, but it doesn't seem to work. The configuration I use is: /etc/hosts content 127.0.0.1 example.com Haproxy configuration frontend http mode ...
3
votes
1answer
276 views

redirect rewritten url using haproxy

Using haproxy version 1.4.24 on Ubuntu 14.04 I would like to use haproxy to rewrite and redirect urls which are no longer valid to their new equivalent. I am already using haproxy as the reverse ...
1
vote
1answer
82 views

How would you set up multiple SSL terminating Haproxy instances, which are themselves load balanced?

I've been doing a great deal of research and experimentation on this, and I'm really running into a wall: I'm trying to set up HAProxy as the reverse proxy for a high-availability environment. All ...
4
votes
1answer
107 views

haproxy timing connection diagram

I'm trying to understand more about the Haproxy timings. Below is a snippet of the timings from the Haproxy manual: Tq: total time to get the client request (HTTP mode only)... Tw: total ...
1
vote
1answer
59 views

Disable HTTP logging for specific backend in HAProxy

How does one adjust logging level or disable logging altogether for specific backends in HAProxy? In the example below, both directives "http-request set-log-level err" and "no log" seem to have no ...
1
vote
0answers
90 views

Haproxy: reject traffic by user agent from file

I am trying to reject connections from specific user agents (by matching a substring of the user-agent header) using an haproxy ACL with -f option to read from a file. However it is not working, it ...
1
vote
1answer
23 views

haproxy raw log file to csv converter

I have some haproxy raw log files, where each lines looks something like this: Feb 6 12:14:14 localhost \ haproxy[14389]: 10.0.1.2:33317 [06/Feb/2009:12:14:14.655] http-in \ static/srv1 ...
1
vote
1answer
100 views

Haproxy: Slow responses for static content

We're using HAProxy for load balancing. Our application is running on 10 Caucho Resin servers and 7 dedicated Nginx servers (this for static content). Versions: HA-Proxy version 1.5-dev19 2013/06/17 ...
0
votes
1answer
96 views

Haproxy “use_backend” match order

I have a problem with Haproxy, it's a snippet of my haproxy.cfg below, acl url_a path_beg /a acl dom_eye hdr_dom(host) -i www.mydomin.com use_backend eye1 if dom_eye use_backend ...
0
votes
1answer
88 views

Haproxy not logging requests?

So, I configured Haproxy so the logging would go through rsyslog and, for now, be all dumped in one file. It's definetly logging, as I get those "starting" messages on startup, but no HTTP requests ...
0
votes
1answer
25 views

How the Haproxy roundrobin weighted algorithm works?

I would like to understand the load split in haproxy weighted method. For example server serverA site1.example.com weight 45 check server serverB site2.example.com weight 45 check server serverc ...
1
vote
0answers
85 views

HAProxy reload - old processes never terminated

I have HAProxy setup in TCP mode, with client/server/connect timeout of 120s. When I reload the configuration too fast, I sometime end up with multiple processes. By design, this is expected, so all ...
0
votes
1answer
395 views

Haproxy - timeout http-request vs timeout http-keep-alive vs timeout server

I'm trying to wrap my head around how the haproxy options timeout http-request <timeout> timeout http-keep-alive <timeout> timeout server <timeout> interact with each other. I'm ...
0
votes
1answer
72 views

very long “connecting” in chrome using ipv6

A connection to an ipv6 subdobain www6.example.com takes very long. In chrome the net tab shows 20s spend in "connecting". All other times are much faster. However only the first two connections are ...
2
votes
0answers
96 views

WordPress behind haproxy: $_POST being reset

So here's the sitch: Load balancer (haproxy) delivering to 3 web servers and a database server, 5 servers in total with memcache sessions being shared between the web servers. I can confirm that ...
2
votes
2answers
98 views

Add/remove backend servers from HAProxy with command line

I've been searching for a way to add and remove backend servers from HAProxy dinamically, is there a wrapper or even an API to handle it? I want to make an auto-scale system with HAProxy and ...
2
votes
1answer
77 views

HAProxy 1.5 SSL and many website

Actually I'm hosting hundred website on Apache2 with some HTTP and some HTTPS, I'm preparing a new hosting infrastructure and I'm using HAProxy to loadbalance all my HTTP and HTTPS query on my ...
0
votes
0answers
223 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
41 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 ...