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
191 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
159 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
123 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
241 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
94 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
453 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
43 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
78 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
496 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
268 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
502 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
47 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
304 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
304 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
108 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
127 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
129 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
502 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
280 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
800 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
43 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
96 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
316 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
45 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
65 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
141 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
381 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
418 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
93 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
120 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
152 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
79 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 ...
1
vote
1answer
249 views

Apache cpu usage increases over time in large cluster [closed]

I have an odd one that I just noticed yesterday. Over a 24 hour period, the cpu load on our apache machines (16 dual hex core machines) doubles. We handle about 8 billion requests per month, and ...
0
votes
1answer
109 views

configuring load/traffic split using haproxy

I have two app servers which are behind an haproxy load balancer. Is there a configuration available using which I can split the traffic between the two as per my requirement. Like sending x% of the ...
0
votes
1answer
287 views

An issue with HAPROXY on sll that give error verify return code: 20

I have an issue with HAProxy config on AWS. The issue is when I make requests over SSL it triggers two types of errors: When I go to https it gives this following error: "The plain HTTP request was ...
1
vote
1answer
65 views

Tee requests with HAProxy

I'm using HAproxy to load balance tcp service. I would like to tee the same request to a different cluster (dev instance). Does HAProxy have the tee feature? The dev, prod clusters and the HAProxy ...
0
votes
1answer
117 views

Load balance by header prefix

I need to balance an OAuth application. By using the Authorization header, I can redirect the same client to the same machine - however - I want to redirect each user to the same machine, regardless ...
0
votes
0answers
460 views

HAproxy 502 Bad Gateway

I have Ubuntu 12.04LTS running. My webserver is Tomcat 7.0.42 and I use HAProxy as proxy server. My application is a servlet application which uses websockets. Sometime when I request my page I get ...
0
votes
1answer
155 views

HAProxy SSL connection error

Brand new to setting up SSL with HAProxy and Litespeed load balancer, just generated my certificate using the .csr and am trying to have HAProxy terminate SSL before sending it to the web worker ...
0
votes
0answers
125 views

setting haproxy servers to use AWS public name server

I'm trying to configure haproxy to cluster a couple of mysql servers (galera cluster), but it seems that haproxy does not accept dns name in the server directive. e.g. config listen mysql ...
2
votes
3answers
209 views

Is there a way to redirect an IP to another IP on Amazon EC2?

We're migrating our deployment from regular EC2 into a VPC, we have two load balancers in the public cloud that we have a number of domain "A" records pointed at, however I didn't realize that a ...
1
vote
1answer
371 views

Logging client ip address from tcp connection from HAproxy to nginx

If internet traffic comes through an HAproxy load balancer on SSL and that is passed to an nginx web server, how can I log the clients ip address? I'm aware of methods like this: How can I use ...
0
votes
1answer
491 views

Squid forward cache to HAProxy load balancer

I have a farm of Squid proxies set up behind an HAProxy load balancer. I would like to cache data that is returned from the Squid proxies, the architecture I am considering would look something like ...
0
votes
1answer
82 views

pound ssl offloading and haproxy balance source

I have pound in front of haproxy for ssl termination. haproxy has a frontend that balance with source algorithm. The problem is that the ssl connections from pound are balanced to the one server ...
0
votes
1answer
229 views

Using haproxy in front of Apache, reported SERVER_PORT wrong

I'm using haproxy 1.5-dev19 in front of Apache 2.4 (on Ubuntu 12.04). Haproxy is listening on ports 80 and 443, and Apache is listening on 8080 — yet, when I output $_SERVER['SERVER_PORT'] from PHP ...