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

2
votes
2answers
106 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
84 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
2k 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
585 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
1answer
179 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
342 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
129 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
1k 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
167 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
2k 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
600 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 ...
2
votes
1answer
250 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
351 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
202 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
2k 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) ...
1
vote
1answer
168 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
133 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
244 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
97 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
494 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
44 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
82 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. ...
3
votes
2answers
3k 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
549 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 ...
2
votes
1answer
5k 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
286 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 ...
2
votes
1answer
560 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
51 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
309 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 ...
1
vote
1answer
4k views

HAproxy 503 Service Unavailable No server is available to handle this request

I'm new to this load balancing scenario and I'm being tasked to figure out how to make this load balancing works. My environment: Centos 6.4 64 Bit Webserver: Lighttpd All running in ESXI virtual ...
1
vote
0answers
322 views

Issues with nginx behind haproxy

I'm hosting an ajax site (AngularJS) and it's assets/partials reside on my static asset servers running nginx behind haproxy. My setup looks as follows: Web -> Haproxy -> App (custom) and ...
1
vote
0answers
119 views

Stunnel only for specific domain

I'm configuring stunnel to encapsulate SSL petitions to Haproxy. Haproxy serves several sites in the same IP address: domain.com - Website app.domain.com - Node.js webserver I acquired an SSL ...
1
vote
1answer
129 views

Best way to deploy changes in an HAProxy cluster

I have a two-node HAProxy cluster with Keepalived to provide high availability and redundancy. Now I'm trying to figure what is the best way to do changes in the configuration of my HAProxy's. Is ...
1
vote
1answer
131 views

HAproxy double memory usage after reload

Due to high traffic and nature of our app to keep connections live, our haproxy process consumes good amount of RAM (normally 30-40% of available RAM). Now when we want to add/remove any backend, we ...
2
votes
1answer
529 views

Haproxy rate limiting, conn_rate, conn_cur

Tried to achieve rate-limiting on haproxy 1.5-18 with the following: frontend stick-table type ip size 100k expire 30s store conn_rate(3s) #connection rate stick-table type ip size 1m expire 10s ...
2
votes
0answers
298 views

How can I whitelist oubound-from-private-subnet traffic to S3 on the NAT instance of an EC2 VPC?

I'm researching privacy-compliant high-security deployment options for AWS VPC. I'm looking for a method of tightening outbound traffic from the private subnets at the NAT instance. For example, how ...
2
votes
1answer
862 views

HAProxy appsession vs cookie precedence

I am trying to find the best solution for balancing and keeping persistence on our application behind HAProxy. Here is our basic configuration: https://gist.github.com/endzyme/1804046b23c37beba520 ...
1
vote
0answers
45 views

HAProxy listen with two arguments?

I keep seeing HAProxy configuration examples with a two-argument syntax. Indeed, the default configuration file supplied with 1.4.18 contains this: listen appli1-rewrite 0.0.0.0:10001 cookie ...
0
votes
0answers
98 views

Is it possible to have a minimum session time for HAPRoxy sticky sessions

We have HAProxy 1.4 successfully performing sticky session routing based on a value in the request querystring with the following configuration command. balance url_param userId This works great ...
1
vote
2answers
330 views

Using proxy server to redirect MySQL traffic to multiple servers using standard port?

Is it possible to redirect MySQL (tcp) traffic to multiple servers based on domain name alone? Our DNS is setup to point several sub-domain aliases to one proxy machine. (running haproxy and ...
0
votes
0answers
48 views

HAProxy overload protection

using the HAProxy, would it be possible to configure an overload protection, to limit the amount of requests sent to the backing http server(s) to a given rate (z.B 100 Request per second ). If the ...
0
votes
1answer
66 views

stud or haproxy as front facing?

I'm planning to use haproxy to proxy a tls service that IS NOT http at the backend. Is there any reason why you'd use stud as the front facing app vs haproxy then stud? i.e. 1) INTERNET -> stud -> ...
3
votes
1answer
1k views

Redis sentinel + HAProxy failover

I am looking to implement a HA redis implementation using Master-Slave redis servers. The web servers will connect to these through an HAProxy instance installed on each box. The situation is easy ...
0
votes
0answers
148 views

Can keepalived use a dedicated NIC for VRRP traffic only?

I have a pair of Linux load balancers for a single VIP, 10.13.10.227. They run keepalived and haproxy. They are connected directly to each other (no switch between them) on each other's eth3 and have ...
0
votes
1answer
405 views

Custom http Logs Haproxy

Hi I am trying to configure Custom logging for my Haproxy version 1.4.22. I am using option httplog and option asap when I add log format %hr\ %r\ %st\ %B\ %Tr in listen section I get below ...
0
votes
1answer
468 views

Debugging HAProxy

I have tested / been testing a server cluster locally for quite a while with no problem. I have recently set my server cluster up for a live test, and I have noticed problems, and believe that the ...
1
vote
1answer
96 views

HAProxy causes pending requests randomly

I have 1 domain with 3 IP Addresses. Each address (1 server) has a HAProxy server installed. Apart from HAProxy, each server has 10 nodejs processes run. The problem is that there are around 40% of ...
0
votes
1answer
122 views

How to print out all request headers of HTTP requests on the server side?

I have a HAProxy configuration which balances requests to many servers. I want to compare the outgoing request headers when requests go thru HAProxy to the ones I would make directly to my servers. ...
0
votes
2answers
157 views

Redirect request from HAProxy if all the instances are down

I have a situation where I have 2 HAProxy load balancers, say LAP1 and LAP2. And I have two servers, say S1 and S2 behind LAP1 and s3, s4 behind LAP2. My question is that if S1, S2 goes down, all the ...
0
votes
1answer
80 views

Blacklisting client IP addresses with haproxy

Is there a way of specifying a list of IP addresses to block in HaProxy, preferably read from an external file (rather than embedded in the config)? I've seen a solution using ACLs, but it doesn't ...