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

-1
votes
0answers
5 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 ...
1
vote
0answers
22 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 ...
-2
votes
0answers
16 views

Http Kafka producer [on hold]

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
votes
0answers
15 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 ...
-1
votes
0answers
12 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
18 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 ...
1
vote
2answers
36 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 ...
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
22 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 ...
0
votes
0answers
18 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
12 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
1answer
13 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
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
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
1answer
12 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
18 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 ...
2
votes
0answers
82 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. ...
2
votes
0answers
48 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 ...
0
votes
1answer
36 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 ...
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
16 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
47 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 ...
0
votes
1answer
21 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
22 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: ...
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 ...
1
vote
2answers
99 views

Zabbix_server.log says [2006] MySQL server has gone away

Environment CentOS 6.6, Zabbix 2.4 DB MySQL Galera cluster with 3 nodes mysql-wsrep-server-5.6-5.6.23-25.10.el6.x86_64 galera-3-25.3.10-2.el6.x86_64 Errors [Z3005] query failed: [2006] MySQL ...
0
votes
1answer
41 views

HAProxy - backend with subdirectory

I have simple haproxy configuration: two servers, one is frontend, two is backend with jboss application. Here is config: defaults mode http log global ...
0
votes
0answers
91 views

Transparent Proxy Issues w/ HAProxy Centos 7

Having issues following steps to transparent proxy outlined here: Howto transparent proxying and binding with HAProxy and ALOHA Load-Balancer | HAProxy Technologies – Aloha Load Balancer Believe to ...
0
votes
1answer
22 views

Load Balance Virtual Host and Amazon/DO Server using HAProxy

I am stuck with an issue and im hoping someone can point me in the right direction. I have a server that hosts multiple sites using Apache Virtual hosts (shared IP's). A few months ago my server ...
1
vote
0answers
62 views

Optimizing HAProxy SSL Termination (with Nginx backend on Ubuntu)

How can I optimize HAProxy with SSL Termination to Nginx backends on Ubuntu? The setup works fine and routes properly. However, when I perform SSL Termination with HAProxy, theres a huge performance ...
0
votes
1answer
31 views

Configure HA Proxy with two application servers to handle fail-over

I have configured two application servers with HA Proxy to recover from fail-over situation. So I want to configure HA in such a way that if my 1st application server goes down, then only next ...
0
votes
0answers
15 views

Haproxy don't work with second IP and Grsecurity

I have a VM (on XenServer) with Haproxy 1.5 and I try to make it work with a linux kernel 3.14.48 with the Grsecurity patch, compiled myself. The VM have 3 network interfaces : eth0 for the LAN ...
0
votes
1answer
63 views

HAProxy to redirect http to https for multiple domain names without SSL Termination

I am using HAProxy to redirect traffic to different web servers in local network. Without SSL enabled, I can route based on hostname like this (in frontend section): acl is_local hdr_end(host) -i ...
0
votes
0answers
39 views

HAProxy TProxy support CentOS 7

PER: Howto Transparent proxying and binding with HAProxy and ALOHA load-balancer Says following kernel flags set: CONFIG_NETFILTER_TPROXY CONFIG_NETFILTER_XT_TARGET_TPROXY in ...
1
vote
1answer
69 views

HA Proxy and Websockets

I'm setting up my first HAProxy reverse proxy server. It's going to be a proxy for an HTML5 app running on tomcat from a different server. I was able to get it to proxy out via HTTP, redirect all ...
0
votes
1answer
39 views

HAProxy HTTPS Redirect to different domain

Currently I have a HAProxy configuration which redirects all HTTP traffic to HTTPS. frontend http-in bind *:80 redirect scheme https code 301 I then have various HTTPS domains configured, ...
1
vote
1answer
16 views

HAProxy - Using ACL in Frontend with SSL-Termination

I'm using HAProxy in front of nginx. HAProxy terminates the SSL-Connection and passes only static requests to nginx (png, jpg, etc.). I don't know why, but there are some requests forwarded to nginx ...
0
votes
0answers
47 views

Haproxy Layer 4 balancing with TLS

We have ssl3 turned off in favor of TLS. Most the tutorials on https for layer4 support with haproxy, ie ssl passthrough, uses check-ssl or ssl-hello-chk. In our setup this will fail because we have ...
0
votes
1answer
35 views

Block IPs for some time on HAProxy

I would like to blacklist IPs that are spamming a particular URL, but only for a determined amount of time. let's say 10 minutes. I'm thinking of creating a stick-table, and store the src IP and ...
0
votes
1answer
69 views

HA-Proxy 301 re-direct: https to https://www

I am trying to have HA-Proxy 301 redirect an https domain. I need: https://example.com to redirect to https://www.example.com This is what I was trying to get it to work: # corp - example.com ...
1
vote
2answers
65 views

haproxy: how to prepare a server maintenance without kicking app sessions?

The issue I'm using haproxy to load balance web servers. I use session persistence with additional cookies as some applications use session files and these are not synchronized between servers. I ...
0
votes
1answer
50 views

HAProxy 1.5.4 Performance Tuning

I currently have HAProxy 1.5.4 setup using keepalived for HA on centos 7 using IPtables to create a transparent load balancer to load balance a number of cisco WSA proxy servers for internet filtering ...
2
votes
3answers
76 views

SSL binding with no hostname, and centralized certificate store?

We have a web app that serves a large number of websites from a single IIS website. The IIS website simply has a catch-all binding on port 80. Up till now, for the SSL bindings, we have added a new IP ...
2
votes
3answers
373 views

Using Multiple Load Balancers

I'm new to load balancing and I'm wondering if it's possible to use multiple load balancers to redirect traffic to my application servers. I don't really understand how this can be done. Shouldn't a ...
1
vote
0answers
64 views

haproxy how to acl to pass only list of ip's and domains need to be redirected to backends

I've one routed IP and haproxy is sitting there, haproxy has also lan ip to contact backends. I have few backends - each holding some nginx'es, sometimes few domains services on each one. I've come to ...
1
vote
1answer
92 views

is there a standard for chaining x-forwarded-for headers?

IETF RFC 2616 Section 4.2 allows a request to contain multiple headers with the same field-name as long as chronological order of insertion is preserved and their values can be converted into single ...
1
vote
1answer
46 views

Disable Haproxy Logging messages

I am having a problem with haproxy. Every time I turn off virtuoso, haproxy shows the following error message: Message from syslogd@master0 at Jul 9 14:39:18 ... haproxy[4403]: backend ...