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
33 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
55 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
vote
0answers
38 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
43 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
74 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
2answers
58 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
330 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
42 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
85 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
43 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
31 views

HAProxy use cookie to drain server

I have the following segment in my haproxy.cfg listen stats :80 stats enable ...
1
vote
1answer
47 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
438 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
50 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 ...
4
votes
1answer
708 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
119 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
122 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
105 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
163 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
26 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
138 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
179 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
136 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
31 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
93 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
831 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
84 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
121 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
144 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
86 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
360 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
44 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
60 views

TCP Load balancing

I need to implement an architecture that can serve 3 million GPS Devices sending Location Updates/Alerts (every 10 secs) to our system for processing. Features: 1) TCP communication. 1) Long lived ...
1
vote
0answers
44 views

HTTP Proxy with transparent copy

I've got the following: Client -> HAProxy --> backend_service_1 --> backend_service_2 It's a basic HAProxy Load Balancing config with 2 backend services. I'm hoping that ...
0
votes
1answer
272 views

Install HAProxy on RedHat 6.6

I have a fresh install of Red Hat 6.6, and I want to install HAProxy on. I've read that it's now fully supported, but I haven't been able to install it. Running yum search haproxy returns no matches. ...
-1
votes
1answer
84 views

Bonding multiple proxy server [closed]

I want to use multiple proxy server at the same time to speed my downloads. How can use multiple proxy at the same time. Reverse Proxy products such as haproxy nginx can use multiple proxy server but ...
1
vote
0answers
121 views

Is it possible to run a proxy server on “OpenShift Online” or appfog? If yes, how? [closed]

In the openshift documentation it says under 4.2: In OpenShift Online, proxy ports are not directly accessible from outside the collection of nodes. To explain the question: We have a tiny ...
1
vote
1answer
377 views

Corosync/Pacemaker + Haproxy Failed Actions: insufficient privileges

I setup a Corosync/Pacemaker cluster + HAproxy using the following guide on Ubuntu 14.04 LTS: ...
0
votes
1answer
150 views

Haproxy logging not work

Cant understand, how it logging? Now my log is empty and haproxy doesnt write anything to file. Sometimes it logs some info, Logging works with syslog-ng, if i set in haproxy conf timeout client about ...
0
votes
0answers
104 views

Rabbitmq Haproxy termination states

In log of haproxy i see an cD flag. Balancer is in front of rabbitmq nodes. When nagios checking nodes, log looks like this: SD flag [10/Nov/2014:14:48:01.190] from NAGIOS IP to Rabbitmq:5672 ...
1
vote
2answers
228 views

Proxying TCP by hostname

I've got multiple game servers TCP ports on my single host machine. The goal is to have users be able to connect to server1.domain.net and have their directed based on that subdomain. My first ...
0
votes
0answers
41 views

HAProxy & MeteorJS - 503 errors everywhere

I'm trying to set up HAProxy as a load balance for two MeteorJS instances. For some reason, HAProxy does not seem to pick up that my instances are there. I can curl 192.168.0.4 and I get the expected ...
1
vote
1answer
201 views

Keepalived track_script + nopreempt doesn't seems to work

I have 2 instances in AWS running keepalived. Each one runs an HAProxy process. I'd like to monitor HAProxy, and in case it fails, fall back to the lesser prioritized node. But if the previous MASTER ...
0
votes
0answers
25 views

HAProxy backend throttling

I'd like to use a similar setting with the one described here to rotate among a set of proxies (not Tor but same idea). One extra requirement though is to throttle requests so that no backend server ...
4
votes
2answers
251 views

Scale HAProxy for more than 64k websockets

We are trying to design an architecture that will be able to handle more than 64k websockets. We first tried with Amazon ELB, but its design doesn't allow unexpected spike of traffic nor websocket. ...
0
votes
0answers
25 views

HAProxy: Balance between two paths on the same server

I need to balance between two paths on the same HTTP server using HAProxy. I.e. Opening myserver Should balance between myserver/path1 and myserver/path2 In my haproxy.cfg I tried using: listen ...
1
vote
1answer
328 views

HAProxy + RabbitMQ, keep connections alive

I'm trying to setup HAProxy as a load balancer on a RabbitMQ cluster. I use a config like this one: global log /dev/log local0 debug log /dev/log local1 debug chroot ...
0
votes
0answers
242 views

HAproxy ACL based on backend application session cookie to replace HTTP Basic Auth

I would need some help on HAproxy configuration to bypass HTTP basic auth and let the user use a specific backend in case there is a valid session cookie present from another backend application. I ...
-1
votes
1answer
212 views

Howto monitor web server nodes through HA proxy using Icinga/Nagios in CentOS 6

In this guide I'm not focusing at all on setting up HA proxy or why you'd want to do that. If you have it and want to properly monitor it using Icinga, here's an idea of how you could go about this. ...
0
votes
1answer
425 views

HAProxy: stop subdomains from redirecting to https

After editing my haproxy config. All my subdomains are now redirecting to https. I just want my domain.com to redirect to https not my subdomains. How do I stop this? Below is my redirect script. ...