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
6 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
15 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 ...
1
vote
2answers
11 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
28 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
12 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
19 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
38 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. ...
0
votes
1answer
106 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
15 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
23 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
34 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
36 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
29 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
63 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
23 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 ...
1
vote
1answer
38 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
16 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 ...
0
votes
1answer
19 views

haproxy tcp roundrobin loadbalancing not working as expected

I'm new to haproxy, and using it for TCP load balancing of rsyslog logs to ArcSight connectors. For the life of me, I cannot get traffic to evenly balance across all of the nodes in the pool (which ...
0
votes
0answers
46 views

Why would HAProxy reject traffic from one location but not another?

I am able to access all of the sites with no issues and our customers are placing orders without any difficulty but at one of our locations where we have a lot of users constantly hitting the site, ...
0
votes
2answers
36 views

how to recover from a failed web server or reverse proxy

I have the following setup in my datacenter. Global LB --> HA proxy (2 instances on different servers via VRRP, performs HTTPS termination, acts as reverse proxy) ---> Nginx(2 instances on different ...
2
votes
2answers
35 views

HAProxy mysql write failover

I have an HAProxy server load balancing two mysql servers that are in master-master / active-passive mode. I can see that I've successfully scaled all READS to my two database nodes, but how would I ...
1
vote
1answer
35 views

NFSv4 through portforward

I would like to reach my NFSv4 servers though port forward. The big plan will be a cluster of NFSv4 servers loadbalanced with HAProxy running on localhost. But this isn't really important now. At the ...
0
votes
1answer
39 views

How to configure HAProxy to route by port without using multiple frontend or listeners

I am trying to configure Haproxy v1.5 for Jabber connections which run on several ports on the same IP. To keep the configuration as simple as possible, I would like to use a single frontend and one ...
1
vote
2answers
45 views

How to configure Amazon ELB ping target for haproxy

I'm trying to setup Amazon ELB to route requests to couple of haproxy servers. ELB requires a ping target to the respective servers for health check. It uses index.html at port 80. I'm struggling to ...
0
votes
0answers
28 views

Logging HAProxy connection limiting

I have some simple connection and connection rate limiting in HAProxy: # Store IPs to limit connection rate stick-table type ip size 200k expire 5m store gpc0,conn_cur,conn_rate(10s) ...
0
votes
2answers
74 views

Cannot start HAProxy

When im starting HAProxy it says: Starting haproxy: [ALERT] 038/154339 (770) : Starting proxy proxy1: cannot bind socket [FAILED] My ...
0
votes
1answer
47 views

What is the best model for load balancing with multiple services in haproxy?

The options I can think of are: 1) Have multiple frontends each with a different port. 2) Have multiple frontends each with a different hostname but the same port. 3) Have a single frontend with ...
3
votes
1answer
196 views

Reverse proxy for mixed tcp, udp, and http services

I'm building an architecture that will be hosting various services which individually maybe listening on a variable number of ports that could be mixed protocols. I want to map these services to ...
0
votes
1answer
48 views

Simple Load Balancing Questions for 2 Web and 1 DB server

We currently have one web server and one DB server to serve our websites. Things have been fine but slowly getting worse as the sites consume more and more CPU on the web server. We've reached the ...
1
vote
1answer
113 views

Server Performance (HAProxy, Nginx, SSL)

I've been struggling recently with try to identify where the performance on our environment is bottlenecking. Environment (each server is Linux VM, 8 Cores, 32 GB RAM): Load Balance: 50 Web Servers ...
0
votes
1answer
95 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
58 views

HAProxy: routing by Basic Auth credentials

I have many requests coming in from a single IP with credentials supplied in the HTTP Header in Basic Auth format. Even though the origin is the same, the credentials vary frequently across requests. ...
0
votes
1answer
65 views

HAProxy HTTP Codes

I was wondering if is there any way to track different HTTP codes that HAProxy send to clients. For example, have a log with just a list of different status codes: 200 200 302 404 499 500 Having ...
0
votes
0answers
50 views

HAProxy halts after ~8000 benchmarks

I'm running 1.4.24 on OS X 10.9 in front of 3 local servers, which work together to formulate a response, and thus HAProxy has no speed advantage over just hitting one of them, but handles node ...
0
votes
2answers
233 views

HAProxy Url pattern forwarding

I am using HAProxy for load balancing a couple of web servers (HTTP mode). The web servers are strictly dynamic, ie, there isnt any static content, only web services. The URLs of the type (analogous) ...
0
votes
1answer
79 views

Setting Up a Load Balancer on VPS with Replication

I'm looking for some expert advice on how to go about setting up a load balancer across a VPS, configuring two other VPS for PHP/MySQL replication and then linking them together. I've looked into ...
0
votes
1answer
49 views

HAProxy: ACL to forward to different webservers based on directory

basically I have a raspberry pi with multiple webserver daemons on different ports, to be specific lighttpd, apache, and the ADAFruit WebIDE. Basically here are the ways i need it to work[how would ...
0
votes
0answers
15 views

Route by using existing cookie [duplicate]

How can I route requests in haproxy using a cookie that was set on the app servers? Example: SESS=<hash-of-username> haproxy should not insert cookies by itself in any case.
0
votes
0answers
75 views

haproxy stick on src doesn't work

I've following setup: HA-Proxy version 1.4.24 2013/06/17 I am using it to balance load on my Windows terminal services, with following configuration: global log 127.0.0.1 local2 ...
-1
votes
1answer
55 views

Best way to map wild card subdomains to unique ports?

This is a best practices question. I'm working on starting a site that will have user generated subdomains that host user content. Think tumbler or stackexchange. subdomains like *.mysite.com where ...
0
votes
1answer
92 views

Hostnames in HAProxy configuration file

My haproxy.cfg file has two backend servers using hostnames: server ops-ca-revealv2e-prod-1 ops-ca-revealv2e-prod-1:443 cookie ops-ca-revealv2e-prod-1 ssl weight 1 maxconn 512 check server ...
1
vote
0answers
29 views

How can I update rekeyed certificates on stunnel?

I have configured stunnel using GoDaddy certificate and it was working fine. Due to some circumstances, I need to rekey the certificate and update the pem file on the load balancer. Upon updating the ...
1
vote
1answer
54 views

How to get approx 500request/sec in HAProxy and Tomcat7 with Apache

I have 4 intstances of Tomcat 7 server and deployed my web App on all the instances. I am using HAProxy load balancer for load balancing. In front end I am using Apche2 web server and behind Tomcat 7. ...
2
votes
1answer
573 views

haproxy multihost with ssl acl

how can I use ACL rules in haproxy (1.5dev19) for server multiple hosts with own ssl certificate for each?? I have 3 backends with multiple domains all on one IP address. nodejs (http/https/ws/wss) ...
1
vote
2answers
117 views

HAproxy for postfix

I want to setup HA postfix mail servers with 2 postfix instances. I have two postfix servers and I configured two postfix instances on these servers. Now I want to know how to configure HAproxy ...
0
votes
1answer
654 views

Configure multiple SSL certificates in Haproxy

My haproxy instance serves 2 domains (mostly to avoid XHR on the main site). The rules look something like this bind :443 ssl crt /etc/ssl/haproxy.pem acl is_static hdr_end(Host) -i example.com ...
0
votes
1answer
32 views

HAProxy: log-separate-errors shows all requests as error

I configured haproxy with option log-separate-errors to be able to log errorneous requests in a separate logfile. However, using that option, all requests are then being sent to the logfile, even ...
1
vote
1answer
73 views

HA Proxy does not start up on Ubuntu 13

I am trying to launch HA Proxy 1.4.24 on an ubuntu 13 VM via sudo. My haproxy.cfg file is copied below. However, when I use sudo service haproxy start or try sudo /etc/init.d/haproxy start, the ...
1
vote
1answer
29 views

HAProxy on multi-tiered system

I need to investigate the use of HAProxy in our system. We have a main server running some service (kind of a proxy) that speaks to other servers, each running a different service at a layer lower. ...
1
vote
1answer
104 views

How does HAProxy loadbalancing forward the request?

I'm trying to understand how the loadbalancing in HAProxy works so that I can do some capacity planning. So which one is the right way the HAProxy load balancing works? Scenario A: Request from ...