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
2answers
29 views

Creating a redundant environment with 2 servers

First of all, i'm sorry if this question has been answered before, but i've been searching for a while now and couldn't seem to find (or understand) an answer. So, i have two physical servers with ...
0
votes
0answers
11 views

How do I capture unique id in haproxy logs?

I'm trying to capture the unique id for each request in my logs. I thought I could use capture request header X-Unique-ID len 16 on the header but its not working. Any suggestions? global log ...
-1
votes
1answer
21 views

HAProxy Rewrite - Modify Query String

I need to configure our HAProxy 1.5 server to rewrite a specific query string value to a new value, in a long URL. In the example below, dc needs to be changed from 12345 to 54321. I was planning to ...
14
votes
3answers
16k views

How to keep haproxy log messages out of /var/log/syslog

I set up haproxy logging via rsyslogd using the tips from this article, and everything seems to be working fine. The log files get the log messages. However, every log message from haproxy also shows ...
0
votes
1answer
1k views

HAProxy pgsql-check error

I use HAProxy 1.5-dev21 to load balance PostgreSQL connections over some read-only Postgresql 9.2 servers. Version 1.5 of HAProxy implements a pgsql-check option, similar to mysql-check. Here is my ...
1
vote
1answer
1k views

Unable to configure haproxy with ssl

I want to make my server ssl protected, it has two parts one for website and another for application. to balance them we have used haproxy. Now we want to secure this haproxy. I have installed the ...
1
vote
1answer
2k 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 ...
1
vote
0answers
23 views

Could HAProxy disable the Apache Instance on the same node it is running?

I have a setup with three VMs that are running on a core i74xx. The machines form a LAMP cluster with HAProxy doing the loadbalancing. After running multiple load tests I found out, that throughput ...
3
votes
4answers
3k views

Need help troubleshooting intermittant TCP timeout in HAProxy

I have an application where the client connects to a server via a simple TCP based protocol over TLS/SSL. In development, this has worked great for many months while we were building our application ...
0
votes
1answer
15 views

How to failover if Varnish is between HAProxy and Apache

I am thinking about putting Varnish inbetween HAProxy and Apache. That is working, however with Varnish inbetween HAProxy is monitoring Varnish. If Apache goes down it will not failover to the other ...
-1
votes
0answers
8 views

Lot of Haproxy Frontend Request Errors

I have a haproxy setup with two backends. The backends are pure pub sub streaming servers using websockets with fallback to plain http for older browsers. I am seeing 4-5% of all requests on the ...
0
votes
1answer
1k 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 ...
-2
votes
0answers
18 views

Http Kafka producer [closed]

Our application receives events through a HAProxy server on HTTPs, which should be forwarded and stored to Kafka cluster. What should be the best option for this ? This layer should receive events ...
0
votes
0answers
6 views

Problems with the sessions and HAProxy in OpenShift

I have written an application using Kraken and deploy in OpenShift with the option of auto-scaling (use HAProxy) but this has led me two problems: 1) HAProxy constantly sends requests to the ...
1
vote
2answers
39 views

HAProxy - Health check of multiple microservices for one server

We have 2 web servers that we want to load balance. Each server has a main web application that is hit by the public. Each server also has number of dependent microservices that are used internally by ...
-1
votes
0answers
13 views

LoadBalance/Proxy Postgres with HAproxy based on Host/DomainName

0 down vote favorite I have multiple Postgres databased in test, that i would like to use HaProxy to proxy my request to diffrent postgres database. db1.test.loc -> database1 db2.test.loc ...
0
votes
1answer
21 views

HAProxy “option redispatch” not working when I put into maintenance mode

I'm having an issue with HAProxy not redispatching connections to servers. When I put a server into maintenance mode none of the active connections are being disconnected/transferred to other active ...
0
votes
2answers
20 views

Why use stick tables in HAProxy?

What is the purpose of HAProxy stick tables? What are the cases using them and why are they important? I'm looking for some one to explain why (not how), the docs aren't helpful in this case. If ...
0
votes
2answers
26 views

HAProxy mysql configuration

I tried few times, but I cannot figure it out why my mariadb load balancer with haproxy is not working. I have : 1 HAProxy (CentOS) : 10.181.102.249 1 Master (CentOS) : 10.183.241.150 2 Slaves ...
4
votes
1answer
6k 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 ...
2
votes
0answers
85 views

HaProxy giving - 503 Service Unavailable

I am using below configuring for performing loadbalancing for two Tomcat servers. And I configured HAProxy to perform SSL/TLS bridging/re-encryption. ...
0
votes
0answers
20 views

Configure haproxy to keep connection with client if one of backends fails

I am using haproxy in http mode for http backend failover. I have 2 backends: listen xxx bind 192.168.0.1:8545 mode http balance source option httpchk POST / HTTP/1.1\r\nHost:\ ...
0
votes
1answer
12 views

haproxy httpchk with JSON-RPC

I need to check backend with POST JSON-RPC request. Tried everything, does not work, backend can't parse body. Any idea what I am doing wrong? curl -vX POST http://localhost:5555 --data ...
0
votes
1answer
13 views

Is HAProxy built with TPROXY on Ubuntu 14.04

Ubuntu 14.04 has TPROXY (How to check if Ubuntu 14.04 Kernel has TPROXY). How do I find out if the version of HAProxy packaged for 14.04 is compiled with TPROXY?
0
votes
2answers
1k views

HAProxy + Percona XtraDB Cluster

I am attempting to setup HAproxy in conjunction with Percona XtraDB Cluster on a series of 3 EC2 instances. I have found a few tutorials online dealing with this specific issue, but I am a bit stuck. ...
1
vote
1answer
21 views

How to monitor HAProxy?

We have two HAProxy servers using keapalived for failover. Once one goes down, the other one takes over seamlessly. I know it is possible to configure HAProxy to send an email to alert a sysadmin, ...
0
votes
1answer
14 views

HAProxy not forwarding client headers

We have HAProxy installed infront of Apache. The setup works, but the IP-Address of the client is not forwarded despite the rule "forwardfor". I have previously investigated answers on serverfault ...
0
votes
0answers
7 views

Route SSH traffic based on domain with HAProxy [migrated]

I'm currently building my own little cluster at home and I'm trying to get SSH routing (load balancing) to work with HAProxy. I have figured out how to route HTTP traffic but I'm struggling with SSH. ...
0
votes
0answers
25 views

HAPRoxy Rate Limiting - Stick-Table Entry Expiration

I've been trying to implement rate limiting for some HTTP POST requests on my website. It works great, except for one detail: the expiration of my entry in my stick-table is always reset to 30 ...
0
votes
1answer
9 views

HAProxy: Unable to set chipper list - possible bug?

I have two machines running with similar configuration. Both have an HAProxy installed. Now I want to enable native SSL Termination. This works perfectly on Server one. Now on Server 2 I cant get it ...
0
votes
1answer
21 views

Keepalived failover not working - how to configure master / failover

I have following two server setup running: node1: keepadlived master -> HAProxy -> Apache node2: keepadlived failover -> HAProxy -> Apache The system works perfectly until I shut down keepalived ...
0
votes
1answer
37 views

MySQL with HAProxy on same server - How to connect from VIP

I am running 2 dedicated servers on which each has HAProxy keepalived running, MySQL in master/master and Apache. Load Balancing for Apache already works, but I can not get MySQL LB running. HAProxy ...
2
votes
0answers
50 views

how to use a request dependent acl as a condition in a stick match or stick response-store

In neo4j there's the transactional cypher endpoint. This allows the client to spawn a database transaction over multiple REST requests. The first request opens a new transaction and gets back the URL ...
1
vote
1answer
5k views

haproxy: Is there a way to group acls for greater efficiency?

I have some logic in a frontend that routes to different backends based on both the host and the url. Logically it looks like this: if hdr(host) ends with 'a.domain.com': if url starts with ...
1
vote
3answers
3k views

Squid via Haproxy

Anyone experienced with configuring Squid to forward requests to HAproxy? I use Squid as a proxy, with ACLs and other stuff, and I need to know if I can tell it to forward requests to HAproxy, which ...
1
vote
2answers
955 views

Unexpected behaviour when dynamically add node in HAproxy server

I wanted to use HAProxy for my web app for load balancing purpose. I am trying to add a new rabbitmq node dynamically in HAProxy server using command : haproxy -p /var/run/haproxy.pid -sf $(cat ...
1
vote
1answer
200 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. ...
1
vote
1answer
1k 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
20 views

HA Proxy should continue with backup till all sessions are alive when main server up

I have two servers say MainServer and BackupServer. From this MainServer is main server and BackupServer is my backup sever which I have configured with HA Proxy. Here is my HA configuration server ...
1
vote
1answer
55 views

HaProxy - 502 Bad Gateway : HTTP spoken on HTTPS port

I'll try to explain my issue. I'm working on HaProxy 1.5.8 / apache 2.2, and I try to do some SSL configuration, but I fail, and fail, and fail. Let's see some logs: Haproxy Logs Aug 13 17:00:28 ...
3
votes
1answer
1k 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 ...
3
votes
1answer
3k views

HAProxy: Display a “BADREQ” | BADREQ's by the thousands

My HAProxy Configuration. #HA-Proxy version 1.3.22 2009/10/14 Copyright 2000-2009 Willy Tarreau <w@1wt.eu> global maxconn 10000 spread-checks 50 user haproxy group haproxy ...
0
votes
2answers
251 views

How to use environment variable in haproxy?

I work with haproxy 1.5.2 My haproxy.cfg has this server definitions: server HALB_ucd1 ${UCD1_END_POINT_IP}:${UCD1_END_POINT_PORT} check port 8444 I set the UCD1_END_POINT_IP and ...
0
votes
1answer
1k 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 ...
1
vote
2answers
6k 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
1answer
22 views

Why hostname got truncated from the HAProxy syslog messages

This is a slice from my haproxy logging, where I target the sysloga and remotely log to papertrail, using the log-send-hostname option to pront the hostname in the log message instead of the ...
0
votes
0answers
23 views

CRM Dynamics with HAProxy

I have a HA Proxy sitting in front of a CRM Dynamics server. I am trying to send traffic through to the CRM Server by hitting the HA Proxy server. The config setting is as follows: ...
3
votes
1answer
934 views

How to not redirect when cookie is set in haproxy?

On my site I redirect users with mobile devices to a mobile site using my Haproxy loadbalancer. I got some complaints about that and want to offer the users a link back to the "classic" portal. As not ...
0
votes
0answers
8 views

HAProxy inside docker container on a Virtualbox don't get header host [migrated]

I have a HAProxy running inside a docker container that listens traffic on port 80. I'm using acl to route certain requests like so: frontend www-http bind *:80 ... acl host_web_app ...
5
votes
1answer
619 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 ...