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

Session automatically unset into HAProxy Server

Its very critical issue. I set session using following code . session_start(); $_SESSION['price'] = 100; After one minute, session automatically destroy or unset. Its happen single time in each ...
0
votes
1answer
12 views

Can haproxy use umlaut-domains?

I am hosting several webpages on one server. For Routing, I am using haproxy. Now, one funny user wants an umlaut-domain "supportbär.de". #haproxy.cfg frontend http-in .. acl is_supportbaer ...
0
votes
2answers
19 views

HAproxy current session is zero

I have some problems on sticky sessions with HAproxy. Haproxy counts every request as a new session. I have a Java servlet that creates the cookie JSESSIONID. If I refresh that page 5 times. The ...
0
votes
0answers
14 views

How to specify alternate errorfiles for a given backend?

We currently use errorfiles to send various 40x/59x error messages to the client on encountering errors. Currently these errorfiles are in html format but I'd like to switch them based on a format ...
0
votes
1answer
32 views

Haproxy sticky session not redirecting to different server when backend fails

I have the following configuration for my haproxy LB: global daemon maxconn 2048 # SSL ca-base /etc/ssl/certs crt-base /etc/ssl/private ssl-default-bind-ciphers ...
1
vote
0answers
71 views

Haproxy using 10GB Memory and 100% CPU with 50k connections

On a Ubuntu 14.04 x64 server, Haproxy uses 3.3 GB of memory and 6.8 GB of swap, while handling 52k connections. The CPU usage also keeps spiking to 100% before most of the traffic was redirected to ...
0
votes
0answers
32 views

Haproxy load balancing TPS lower than single node

I have 2 apache2 servers running in the back end and have a haproxy between them and the clients. If I bench tested anyone of these apache2 severs with ab i get north of a 1500TPS however when I bench ...
0
votes
1answer
26 views

How to Add/Remove New Server behind Haproxy with Minimal Disruption

Haproxy is currently balancing the load between 2 servers, A an B. Clients are connecting to these servers via persistent TCP connections. Question: We want to upgrade from server A to a more ...
1
vote
0answers
27 views

LVS + HA Proxy for L4 to L7 load balancing

Currently we are using HA proxy for our load balancing needs. We are planning to integrate LVS with HA proxy to create a load balancing solution that can take care of L4 to L7 load balancing and HA. ...
0
votes
0answers
10 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
97 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
19 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
2answers
40 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
56 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
46 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
20 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
39 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
31 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
106 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
66 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
37 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
474 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
72 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
76 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
163 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
30 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
39 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
39 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
63 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
57 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
57 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
79 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
32 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
148 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
120 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
176 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
265 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
109 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
161 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
111 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
441 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
79 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
92 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
83 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
117 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
97 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
116 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
265 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
471 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 ...