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
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 -> ...
0
votes
0answers
18 views

HAProxy pause connection till server is up

I start and stop servers dynamically based on the load. Sometimes, the server needs more time before it is up and running. How to make HAProxy wait with the client connection till the server ...
0
votes
0answers
131 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
338 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
79 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
327 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
90 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
113 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
141 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
76 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 ...
5
votes
2answers
177 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 ...
0
votes
2answers
782 views

Timeouts somewhere on our stack (haproxy, nginx, rails, memcached)

We have some timeouts that are driving me crazy, under virtually no load (probably a couple people hitting the servers per minute). We use nginx to redirect non-SSL to SSL, terminate the SSL, and ...
1
vote
1answer
198 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
143 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
1answer
93 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
271 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 ...
2
votes
3answers
197 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
62 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
114 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
1answer
394 views

HAProxy stats says all Thrift servers are down

I am trying to setup HAProxy to load balance a group of Thrift servers. For some reason the HAProxy stats page says the servers are all down. Here is the current HAProxy config I am trying. global ...
2
votes
1answer
103 views

Enable HAProxy logging in Amazon Gentoo

I am attempting to enable HAProxy logging in Gentoo 1.12.11.1 on an Amazon EC2 Server (managed through EngineYard). I have modified the syslog.conf file as follows: local0.* ...
0
votes
0answers
429 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 ...
1
vote
1answer
360 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
0answers
110 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 ...
0
votes
3answers
1k views

Logging haproxy check results / problems

how can I enable logging of haproxy check results (or failures only)? I've seen some mailing list posts suggesting this is possible: Server LDAPSFarm/LDAPS1 is DOWN, reason: Socket error, check ...
0
votes
1answer
453 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 ...
1
vote
1answer
42 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 ...
0
votes
2answers
6k views

could not bind socket while haproxy restart

I m restarting HAproxy by following command haproxy -f /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid -sf $(cat /var/run/haproxy.pid) but i get following message [ALERT] 183/225022 (9278) : ...
5
votes
2answers
151 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
346 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
294 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
105 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
48 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
88 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 ...
18
votes
3answers
11k views

Ordering: 1. nginx 2. varnish 3. haproxy 4. webserver?

I've seen people recommend combining all of these in a flow, but they seem to have lots of overlapping features so I'd like to dig in to why you might want to pass through 3 different programs before ...
0
votes
1answer
177 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
370 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 ...
1
vote
0answers
121 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 ...
0
votes
1answer
622 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. ...
1
vote
1answer
726 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
3answers
296 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 ...
3
votes
3answers
2k views

haproxy and tomcat intermittent hangs

I am trying to run haproxy in front of tomcat on a Solaris x86 box, but I am getting intermittent failures. At seemingly random intervals, the request just hangs until haproxy times out the ...
2
votes
1answer
529 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 ...
1
vote
0answers
152 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
10
votes
5answers
7k views

Installing HAProxy on CentOS 6.3?

This is a weird one. I've installed the EPEL for CentOS 6 via # rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm The tried to install HAProxy: # yum update # yum ...
13
votes
3answers
10k views

When using TCP load balancing with HAProxy, does all outbound traffic flow through the LB?

I am setting up an app to be hosted using VMs(probably amazon, but that is not set in stone) which will require both HTTP load balancing and load balancing a large number(50k or so if possible) of ...
0
votes
1answer
123 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
451 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 ...
3
votes
1answer
203 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 ...