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
1answer
409 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
478 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
123 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
158 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 ...
1
vote
1answer
288 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
115 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
294 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
67 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
122 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
472 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
169 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
138 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
218 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
377 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
517 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
84 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
237 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 ...
1
vote
1answer
43 views

Running http checks over SSL with HAProxy

I'm trying to check my application (which runs on SSL) with haproxy. As I read the documentation, my options for health checks are: httpchk, which sends an HTTP request to a configurable URL ...
5
votes
2answers
205 views

HAProxy not balancing server load fairly

HAProxy doesn't seem to keep the connections to the servers balanced. Keep this in mind: using HAProxy v1.3.26 5 equally balanced server specs algorithm is round robin, but no weights are applied ...
5
votes
2answers
155 views

Heartbeat Aware Load balancing

I am using Haproxy for load balance my web servers. Not all of them has same resources. Typical loadbalancing algorithms caused some low end servers to overload as LB isn't hearbeat aware. Is the a ...
1
vote
1answer
405 views

haproxy/apache/tomcat - no trailing slash results in a 301 redirection

I have this configuration in place: haproxy(80,443) --> httpd(8443) --> tomcat(8096) Going to https://websrv1/test will result in a 301 redirect to the httpd port for which haproxy should be ...
0
votes
1answer
331 views

HAProxy and streaming server bottleneck concern

I am investigating into HAProxy to use as a load balancer for a number of nginx servers. Each server is streaming a static file (audio file) from it. Nginx will be using a symfony2 framework. In ...
-1
votes
1answer
129 views

Due to Haproxy I didn't get the client ip address

I am using Haproxy for load balancing. My website run on ruby on rails. I have done some googling and come to know to add this line option forwardfor header X-Client in /etc/haproxy.cfg file. In ...
1
vote
1answer
51 views

HAProxy no stats from terminal

I have haproxy installed on CentOs6.4 x64 but I need to see the stats from the terminal with command haproxy -s The man file says -s Show statistics (only if compiled in). Statistics are ...
0
votes
1answer
91 views

Loadbalancing download server with nginx + haproxy

I need some info. I have been looking for this solution all over the google, but could not find it. I am trying to setup HAProxy to balance the downloaders in one server not send them to other servers ...
0
votes
1answer
191 views

TProxy iptables error

Hello i am using a vps (openvz) with Centos 6.4 I am trying to add the following rules for HaProxy TProxy but i got some errors (iptables: No chain/target/match by that name.) Any idea? [root@server1 ...
4
votes
1answer
469 views

Logging entire POST body with HAProxy?

I'm trying to track down some problems with the way a javascript client is interacting with an application server and would like to see the entire http payload (headers, body, and everything) that is ...
1
vote
1answer
2k views

Possible for HAProxy to perform a mix of SSL termination and passthrough?

I'm working on analyzing an intermittent load balancing failure in our application. Previously we had been using the AWS Elastic Load Balancer in the following configuration: HTTP 80 -> HTTP 80 ...
0
votes
1answer
715 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
0answers
133 views

Any way to route MSMQ messages based on label?

I have a system with one MSMQ sender (generates about 10k messages/sec) and one MSMQ receiver (2k messages/sec). Generating and sending messages is fast, reading and processing is slow. Hence I want ...
1
vote
3answers
357 views

Haproxy % traffic to a cluster

I have a web page that works in 1 server. We are in progress to migrate to a new plattform that has 3 servers. In first step in the migration plan we need to pass make a percent, say 10%, to the new ...
1
vote
2answers
399 views

HAProxy create custom routing logic

Is it possible to write a custom routing logic for HAProxy. I need it in such a way that each application server is allocated a max on 1000 TCP connections then only should the loadbalancer try to ...
1
vote
1answer
845 views

Configuring HAProxy with memcache with failover

I'm configuring a new set of servers for an existing Wordpress site, and it's been requested that memcache be available and made more resilient. The idea proposed is to have HAProxy send requests to ...
1
vote
0answers
161 views

How to block trafic from anonymous proxy to my site?

some scammers are trying to reach my site using anonymous proxy. Is there a way to block connexions from anonymous proxy with haproxy or nginx? Thanks
0
votes
1answer
711 views

Rewrite equivalent of a simple redirect in HAProxy?

I currently have a line in our HAProxy config that I uncomment when I want to put the site into 'maintenance mode'. It just redirects requests not for the static subdomain to a maintenance page. ...
3
votes
1answer
669 views

What is the best way to load balance multiple sock5 proxys on seperate VM's in the same datacenter?

I am currently trying to figure out the best way to load balance multiple sock 5 proxy servers for my new project. I was looking into programs like HA proxy, but it seems to only load balance HTTP ...
0
votes
1answer
127 views

Rewrite x-forwarded-for

Client - LB - App Server I have an app that supports http or https. If the original request is https, but the server is expecting http, it won't work. Is it possible to use nginx to rewrite the ...
1
vote
1answer
504 views

high traffic websocket/haproxy tuning

i have a pubsub application (mostly chat but some other goodies being pub-ed and sub-ed too) running on node & socket.io. i'm load testing this app by spinning up some other, real large, boxes ...
4
votes
1answer
218 views

HaProxy for game servers, what's wrong with my configuration?

I host a website with a game client that uses TCP for connections. I am currently looking for a way to proxy my connections from one server to my origin server. I have tested Iptables forwarding and I ...
3
votes
1answer
223 views

Is there a backend-aware load balancer for Rails/Passenger?

We have 3 Ruby on Rails applications (A, B and C) installed on a number of application servers. Our front end is HAProxy, backend is Apache + Phusion Passenger. Originally we had all 3 Rails apps ...
1
vote
1answer
288 views

Haproxy [24890]:proxy farm has no server avaiable

I am trying to setup cluster with haproxy, I have one load balancer and two nodes. Some how haproxy is only taking one node. It runs fine until one XXX.XX.X.196 is up and running but as soon as i shut ...
0
votes
0answers
328 views

Nginx behind aws elb return error 403

I'm getting crazy with AWS ELB and my instances. My infrastructure is made by: --> NGINX --> node.js | Apache Users --> ELB < --> NGINX --> node.js ...
0
votes
1answer
45 views

Providing a HTTP proxy for users in another continent

I have a server located in Europe but our customer-base in South America is growing a lot. I soon realized that many ISPs in South America have random international routing issues. Meaning that our ...
2
votes
2answers
300 views

haproxy and socat sudo

I created a test user and want to limit this "test" user to run only the following command via visudo. echo "show stat" | socat stdio /var/run/haproxy.sock visudo test ...
1
vote
1answer
113 views

Single HAProxy frontend for different services

So I'm happily using HAProxy to load balance 2 web servers serving a single service. Now I need to add 5 more web servers that will respond to 5 different hostnames and I need to use the same frontend ...
0
votes
1answer
273 views

HAProxy loadbalanced backend - behaviour when one server down

My understanding was that with two server backends load-balanced by HAProxy , if one goes down, HAProxy should be able to direct all traffic to the other. I have two loadbalaced webservers, with ...
0
votes
1answer
65 views

Graphite metrics from AMQP throws error, takes ages to reconnect

I'm trying to pull some metrics into Graphite over a RabbitMQ exchange. I've got my publishers merrily publishing data to an exchange called metrics, and I've configured carbon.conf with the ...
12
votes
1answer
748 views

By what criteria do you tune timeouts in HA Proxy config?

When configuring HA Proxy, how do you decide what values to assign to the timeouts? I've read a half dozen samples in various blogs, and everyone uses different timeouts and no one discusses why. ...