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

haproxy: explicitly setting the gpc0 value within a frontend or backend section

I have something like this in my haproxy config backend myservice option httplog stick-table type string size 10 expire 10m store gpc0 stick store-request req.hdr(MYHDR) server ...
1
vote
2answers
48 views

HAProxy with SSL and sticky sessions

We're trying to set up HAProxy (v1.5.1) to use SSL. While we managed to do that, we're having some issues with the round robin settings: We do want to have stick sessions, but haproxy seems to send ...
2
votes
0answers
14 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
1answer
28 views

HAProxy HTTP vs TCP

HAProxy gives you the option to set the mode to TCP or HTTP. It also allows you to set the port. So why allow me to choose between HTTP and TCP, if it's letting me choose the port too? Surely if I ...
3
votes
2answers
49 views

How to get name of server that has served request in fronted section?

I need to add server name in response HTTP headers X-Servedby. Is there any way to replace [server] with name of server that has served request? frontend front x.x.x.x:80 default_backend balancing ...
0
votes
1answer
38 views

Https on HAproxy 1.4 using stunnel

I'm running a load balancing server with HAproxy and implementing Https using stunnel on the same machine, on the actual webpages end i've got 2 diferent webs, A and B, with similar behaviour. Here ...
1
vote
1answer
13 views

Haproxy hdr_ip acl unaffected by reqidel?

I have an server that sits behind a load balancer, but for the time being can also be accessed directly. I have a white list of IP addresses that should be able to access it. Given the following ...
0
votes
1answer
35 views

HAProxy's Flooding MySQL Connections

I have a setup of 2 HAProxy servers using the KeepAlived process for failover, and each HAProxy is configured to load balance mysql connections to my MariaDB Galera cluster of 3 nodes. I'm trying to ...
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. ...
2
votes
1answer
82 views

HAProxy/Keepalived vrrp set up in AWS EC2 with EIP (Basic EC2)

I am a newbie to CentOS/Linux/HAProxy/Keepalived, so I have had a lot to learn over the past few days! I have 2 CentOS 6.5 servers in Amazon AWS running on their own EC2 Micro instances. I also have ...
0
votes
1answer
58 views

haproxy forward uri to root of another server

I use a HAPROXY container as an entry point for a virtual HPC cluster. Depending on a prefix the request is forwarded to different containers. :80/foswiki/ -> :80/foswiki/ :80/kibana/ -> :80/kibana/ ...
0
votes
1answer
35 views

Tomcat cluster - how to verify node starvation?

We have a tomcat cluster with a load balancer (haproxy). As part of our upgrade script we would like to starve a single tomcat in the cluster of 3, wait until all the requests are handled for that ...
3
votes
2answers
465 views

When a server IP changes, do exising TCP (e.g. http/mysql) connections remain running

We have some PHP-FPM servers and when they need a database connection, they connect to an HAProxy server which selects them a database server to use and the connection opens. When we then want to ...
2
votes
3answers
63 views

HAProxy Only Sending Traffic To One Node

I have an HAProxy with IP 10.60.61.20 and three MariaDB nodes at IP .21, .22, .23, all of course in the same subnet. I have the MariaDB cluster sync'd and they can read/write to eachother, but when I ...
1
vote
1answer
62 views

HAProxy max out at ~10,700 connections

I am stress testing ejabberd with Tsung. My EC2 instances setup as follows: Tsung : c3.xlarge ejabberd : c3.2xlarge HAProxy : t1.mirco When I let Tsung talk to the ejabberd instance directly, I ...
0
votes
1answer
116 views

Haproxy SSL handshake failure

I have a problem with one specific client which hits my haproxy load balancer. The error message in the haproxy logs:] incoming_ssl/1: SSL handshake failure The client in question seems to be some ...
1
vote
1answer
23 views

HAProxy SSL Responses Very Slow

Even though CPU usage is low, and http responses are very quick, SSL responses are taking longer than 10+ seconds to respond.
0
votes
1answer
31 views

Direct several subdomains to a single backend with haproxy

I'm using haproxy to direct route for several applications running on a single server. For one of the domains in use there are several dozens of subdomains that should be directed to one of a few ...
2
votes
1answer
34 views

Exclude particular IP address from Postfix log

I have a postfix relay system that uses HAProxy to check to make sure Postfix is responding as it should. There is a front-end load balancer which connects using an internal IP to the backend servers. ...
-3
votes
1answer
56 views

configure haproxy to detect failed webservers

I have two webservers: WEB A: 192.168.0.3 WEB B: 192.168.0.4 and am using haproxy to load balance between them. How do I configure haproxy to detect when WEB A or WEB B dies and stop forwarding ...
1
vote
1answer
56 views

Replicate data across loadbalanced apache nodes

I am using haproxy that is pointing on 5 apache nodes, the problem is that I want to replicate apache data between those nodes. I have installed DRBD and it worked but on 2 nodes only The rsync is not ...
2
votes
1answer
44 views

Rotate haproxy logs

I tried few things but still not able to rotate haproxy logs efficiently. I need to rotate logs when log files crosses 500 MB size. Considering haproxy is serving large no. of static tcp connections, ...
0
votes
0answers
70 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
31 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 ...
1
vote
1answer
118 views

How remove HAProxy complain while restarting?

When sudo service haproxy restart the following message show up: [WARNING] 145/113237 (6021) : config : 'option httplog' not usable with proxy 'mysql' (needs 'mode http'). Falling back to 'option ...
2
votes
1answer
20 views

haproxy hash that honors already connected connections

We have configured haproxy 1.5 and are using map-based hash (default). For e.g. we have two backend servers. Server A and Server B. Clients 1,2,3,4,5 will go to same backend. For example Client ...
1
vote
4answers
109 views

Retrieve external IP in PHP behind Haproxy

I am using Haproxy to enable running a websocket server and Lighttpd web server on the same machine. I want to retrieve the machines external IP address from the web application running on the ...
1
vote
1answer
142 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 ...
2
votes
1answer
222 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 ...
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 ...
2
votes
1answer
107 views

How to add custom header containing the absolute address of the originally requested resource

I have the following setup: |-------|--- backend1:8080 example.com:80---|HAProxy|--- backend2:8080 |-------|--- backend3:8080 I would like to configure the HAProxy ...
0
votes
1answer
96 views

Unable to load urls in iframe on using ajax call

My application is deployed under haproxy server with domain name say fireapp.com, server1 and server2 are two servers below. Haproxy is configured to handle all requests under /live/ url format from ...
0
votes
0answers
351 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... ...
1
vote
1answer
62 views

haproxy - use acl in backend / shrink my config

in my scenario i must switch servers based on an containing url string &mode=edit or &mode=create between my servers to balance the load. my config is created via script from about 100 ...
0
votes
2answers
81 views

Take HAProxy backend nginx server out of rotation if it can't connect to Unicorn

I have a load balancer running HAProxy with two backend servers both running Nginx on to Unicorn. If nginx goes down on one of these boxes HAProxy takes it out of the set and the service continues to ...
2
votes
2answers
75 views

HAProxy - Configure timeouts based on ACL

I am HaProxy for load balancing. I have multiple backed, which are routed on based on the URLs. In my haproxy.cfg file, I have setup the default timeout client 1m But, I want this value ...
0
votes
2answers
96 views

Handling 404's with HAProxy

I have a bunch of domains passing to a Resin cluster through an HAProxy. The idea is, when I receive a 404 because of a non-existent subdomain, I want to redirect it to the existing page, like this: ...
1
vote
1answer
84 views

Query cache for MariaDB Galera cluster

I've read from multiple sources now that you can't have query caches with Galera, but my current application could really benefit from a query cache. I'm load-balancing this cluster with HAProxy and ...
1
vote
1answer
103 views

HAProxy returns error if server goes down before health check has occured

Let's say I have web01 in my list of backend servers, and web01 goes down. It will take a few seconds for HAProxy to notice the server is down (depending on the health check interval and how long the ...
-1
votes
2answers
218 views

Where will load fall using Nginx, Varnish, and HAProxy? [duplicate]

We are looking into scaling our servers and I am not sure where load will fall as visitor count increases. I have one HAProzy load balancer, that proxies to two Varnish Nginx static content servers. ...
1
vote
1answer
389 views

HAProxy isn't accepting reissued GeoTrust certificate

I requested a reissue of a GeoTrust certificate in light of the Heartbleed bug. We're using HAProxy 1.5-dev22 with OpenSSL enabled. I've updated OpenSSL on all affected instances. The PEM that ...
0
votes
1answer
98 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 ...
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 ...
2
votes
1answer
107 views

Host doesn't send ACK-SYN packets for transparent proxy

I am setting up a transparent proxy using haproxy, the setup works without the 'source 0.0.0.0 usesrc client' line. When I add that line in, the endpoint is called from the original client's ip ...
-1
votes
1answer
60 views

How does HA proxy use bandwidth?

We're using HA proxy for load balancing web servers. How does bandwidth usage work for HA proxy? HA proxy is on a different network than the web servers. Does the bandwidth that ends up being used ...
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 ...
1
vote
1answer
204 views

Any problems with having an active/active HAProxy setup with Keepalived

Apologies if this has been asked before, but I can't seem to find much on it. We're going to be using HAProxy to load balance our MariaDB Galera Cluster. All the articles/tutorials I have seen on ...
0
votes
0answers
86 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 ...
2
votes
1answer
370 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
18 views

“API” to halt server with HAProxy (by loadbalancer.org) [duplicate]

I have a HAProxy load balancer by loadbalancer.org. I have 3 servers in the cluster and have to halt a server once in a while, for example when I release new code on the server. I would like to be ...