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

4
votes
1answer
821 views

HAProxy check port 443

Is it possible to get HAProxy to health check an SSL / port 443 end point? The check port 443 in the config below fails the health check HAProxy config below global log 127.0.0.1 local2 ...
3
votes
3answers
257 views

Haproxy on server failure event

I've got a setup with one HAproxy server (frontend) and multiple web-servers (backend). Is it possible to configure HAproxy so that a script is executed when a web-server gets down?
3
votes
1answer
195 views

Idea for taking down half of the servers vs rolling restart?

We're setting up HAProxy to balance our application (ASP.NET MVC 3 running on IIS). We want our process to be without scheduled maintenance for deployment. I'm trying to figure out the correct way to ...
0
votes
2answers
260 views

What steps i need to configure ssl on haproxy/iis

I have two web server and one haproxy load balancer in front of them. I want to setup ssl connection for my login page. Can someone give me life cycle steps what i need to do? Can i make this with ...
0
votes
1answer
716 views

Using HAProxy for transparent forwarding and selective redirection

I'm setting up a temporary haproxy instance to help test a new back-end for an iphone app. Instead of having a specially produced app or a jailbreak, my plan is to set up a proxy that all phone data ...
0
votes
1answer
100 views

Haproxy grinding to a halt under load (returning 503s)

I have a machine running Haproxy. Under heavy load, I can see that all the response codes are 503. The back end server for a lot of the entries in the log file is NOSRV, but not all: https_proxy ...
0
votes
2answers
272 views

Can HAProxy work asynchronously with backend servers?

I need a TCP load-balancer in front of some servers. I need it to: Receive a request from client Open a connection to one of servers (based on load balancing, being alive and so on) Send the request ...
2
votes
1answer
235 views

Force use of a certain subset of backends in haproxy

I'm setting up haproxy to use multiple backend servers but want one of them to handle particular requests: backend bagend mode http balance roundrobin option httpchk GET / ...
-3
votes
1answer
315 views

is anyone maintaining a haproxy 1.7 deb package? [closed]

haproxy 1.5 v17 handles ssl certificates. from my use so far it's pretty stable. is anyone maintaining a .deb for 1.7? I am uniquely unqualified to do so.
1
vote
1answer
578 views

haproxy status reporting

I've just started using haproxy, so excuse me if I sound silly. haproxy itsekf is working fine and this is the config file that's in use: # This file managed by Puppet global chroot ...
1
vote
2answers
486 views

HAProxy switch only in case of server down

Let's say I have 2 servers - SA and SB. Is it possible to configure HAProxy to work like this: All connections goes to SA -> SA goes down -> HAProxy switches all connections to SB -> until SB is not ...
1
vote
1answer
2k views

Haproxy SSL offloading

I want to load balance 2 apache/php servers with haproxy Googling around I saw that since version 1.5 dev12, haproxy supports SSL offloading, which as I understand means that there is no need for any ...
0
votes
1answer
172 views

set _SERVER[“HTTPS”] to yes with stunnel Haproxy Nginx

I am trying to set the _SERVER["HTTPS"] php variable to yes on my web servers. Actually, https trafic come to stunnel which forward it to haproxy which forward it to my web servers running under ...
0
votes
1answer
66 views

HAproxy statistics returned by querying UNIX socket

can someone explain to me a bit the HAproxy stats as returned by querying stats socket ? When I un the "show stats" against the socket I get the following returned: ...
0
votes
2answers
123 views

HAProxy live injection

I would ask you if HAProxy load balancer can be live injectioned (reconfigured without restarting the balancer) without losing connections.
1
vote
1answer
150 views

Redirect site to correct VM on host

I would like to setup some server with few VM's on it. And then each VM will hold different site. So my host for example has DNS my.host.com, And I will point to this DNS for example to other DNS ...
0
votes
1answer
674 views

HAProxy + Percona XtraDB Cluster

I am attempting to setup HAproxy in conjunction with Percona XtraDB Cluster on a series of 3 EC2 instances. I have found a few tutorials online dealing with this specific issue, but I am a bit stuck. ...
1
vote
1answer
913 views

Should I use haproxy's “linux2628” or “linux26” make target?

With the latest versions of HAProxy, simply typing make does not work, returning the following message: Due to too many reports of suboptimized setups, building without specifying the target is ...
1
vote
1answer
263 views

HAProxy+Varnish configuration advice

I am using HAProxy to load balance a bunch of PHP servers and want to introduce Varnish in the scene now. HAP sends request to Varnish iff app-login cookie is not available, Varnish doesnt have to do ...
0
votes
1answer
104 views

is this some sort of haproxy bug?

I go from http://sniffyourkid.com and then change the url to http://sniffyourkid.com/blog and it fails to go to apache and instead goes to my other webserver where sniffyourkid.com is. THIS IS ...
2
votes
1answer
173 views

Hot configure Haproxy 1.5

I had been using this command to restart haproxy with success: sudo haproxy -f /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid -sf $(cat /var/run/haproxy.pid) However, after upgrading to recent ...
0
votes
1answer
230 views

Can HAProxy load balance a remote site, while the server it runs on hosts another?

Bit of an odd question, and I know it's not ideal, but still..... I currently have a virtual machine that acts as a web server using Apache. This hosts a couple of different sites, with that being ...
1
vote
0answers
277 views

Is it possible to load balance an XMPP server that is not using BOSH?

We currently have an XMPP server and am now starting to look at clustering. We will have 2 machines, each with an XMPP server. The interface is the standard XMPP connection (not BOSH). We have XMPP ...
-1
votes
1answer
356 views

multi-backends haproxy best practices

I am looking for good practices for using load balancer haproxy. There are few DNS records to the same haproxy server, haproxy has few backends with bunch of servers. The question is what the best ...
0
votes
2answers
322 views

HAProxy only working for localhost

Just set up HAProxy for the first time, as a single load balancer balancing 2 servers, each of which run Varnish and Nginx. Here's the cfg file: global #uid 99 #gid 99 ...
1
vote
1answer
80 views

haproxy rate-limit sessions : is there a way to send back 404s instead of making excess requests wait in the backlog queue?

When the request rate exceeds the rate-limit value specified, the excess requests are queued up in a backlog queue, affecting those requests' latency. Is there a way to avoid this, and send the excess ...
1
vote
2answers
188 views

haproxy redirect keep querystring

Can I configure haproxy to redirect a url ending in /video1?autoplay=1 to a different url but keeping the querystring value? e.g http://domain.com/video1?autoplay=1 needs to redirect to ...
1
vote
1answer
786 views

HA Proxy - roundrobin vs leastconn

Are there any suggestion on when should I use roundrobin & when should I use leastconn? I am using roundrobin currently and observed the loading of my back-end servesr are not evenly ...
4
votes
1answer
377 views

HAProxy authenticated httpchk (health check)

I am using HAProxy on EC2 and using httpchk to manage node availability. I had used a pseudo-unique path as the health check route in an attempt to make sure only my servers responded to the health ...
0
votes
1answer
390 views

HAProxy redirect HTTPS to HTTP

I'm using HAProxy as a load balancer and i'd like to redirect any traffic that comes in on 443 (HTTPS) to 80 (HTTP). My site doesn't support HTTPS at all and i'd rather just redirect users than cause ...
0
votes
1answer
198 views

HAProxy MySQL Failover is not starting

I am trying to setup HAProxy with MySQL failover with Ubuntu. I used a setup similar to this serverfault question, however I am getting the following error when starting haproxy: [ALERT] 341/220001 ...
0
votes
1answer
159 views

Haproxy backend dependancy checks

I've got a web app that's split into two components. A WCF service hosted on port 4444 and a regular set of web services hosted on port 80 via IIS. I've got my nodes set up in haproxy, but I now need ...
1
vote
0answers
56 views

Haproxy Server Statistics page reads server DOWN

Haproxy's stats page show's that I have server that isn't functioning that is connected to the services. I'm unclear through me search on how to kick the problem server off. Any help would be much ...
0
votes
2answers
304 views

Nginx changing redirecting to the wrong port when I access it through a load balancer

Edit - I changed the question as I was wrong about where the error was coming from I'm having some issues with my Openam deployment and was wondering if you can help. My set up is as follows: 2 ...
3
votes
2answers
483 views

Is there any way to dynamically change haproxy weights according to backend server utilizations?

Is there any utility which helps modify backend server weights based on backend server utilization ? ( e.g feedbackd used to do this for LVS loadbalancer)
1
vote
1answer
622 views

socket.io session ends with HAproxy

i'm still with dealing with the configuration of HAproxy to make it work with socket.io. my last question was this: HAProxy is caching the forwarding? and i got it working, but for some reason, after ...
8
votes
1answer
191 views

Set header key based on SSL ID

Is there a way to set a header key based on SSL ID value with HAProxy 1.5? We would like to use the SSL ID as the session ID for clients who do not support cookies.
1
vote
1answer
222 views

HAProxy is caching the forwarding?

i'm trying to set up a server structure for an application i'm building in Node.js with socket.io. My setup is: HAProxy frontend forward to -> apache2 as default backend (or nginx, is ...
1
vote
1answer
2k views

Lot of FIN_WAIT2, CLOSE_WAIT , LAST_ACK and TIME_WAIT in Haproxy

We are running haproxy in production for around 10k+ concurrent users. But we are seeing lot of FIN_WAIT2, CLOSE_WAIT , LAST_ACK and TIME_WAIT in the netstat output. This output is on a 8G ...
1
vote
2answers
310 views

HAPROXY per domain redirection

I'm trying to redirect requests to my load balancer by domain name with acl and hdr_dom, to a separate backend. The redirection works ok with the first request - 'GET /' (the destination server is a ...
1
vote
1answer
355 views

HAProxy config file and reqirep

I am going through an existing HAProxy config file and trying to make sense out of it. I am new to HAProxy. What does the following line do? reqirep ^Host:\ 180.115.110.100 Host:\ www.foo.com
1
vote
3answers
160 views

forwardfor information is missing

I use following configuration to load balance https connections, using haproxy 1.4.8. SSL offloading is done by apache. listen ssl_to_waf 192.168.101.54:443 mode tcp balance roundrobin ...
0
votes
1answer
926 views

How to find and fix issue with Pound and HAProxy

Pound sits in front of HAProxy (on the same box) to perform SSL off-load. Requests are passed to 127.0.0.1:80 where HAProxy then balances the requests across backend servers for a hosted ASP .NET web ...
1
vote
1answer
39 views

gitolite behind haproxy

is there a way to have a gitolite behind haproxy? I have my repo on a private server behind haproxy, but what is the way to clone/push/etc on this server from the internet? Thanks in advance.
1
vote
1answer
57 views

Can you easily switch between using amazon's load balancer service and doing your own on ec2?

If you have clients who are using your service, and pointing to your domain like: api.example.com If I use route 53 to manage the dns for the domain, am I able to seamlessly choose if I want to use ...
3
votes
1answer
249 views

How to set the request start time with HAProxy?

I would like to measure the time of full request stack. The New Relic capture time of the middleware (e.g. java, python, ruby) and request time (See ...
2
votes
3answers
1k views

Use HAProxy or Nginx to Load Balance between VPS

I want to load balance + failover backup multiple vps webservers hosted on different providers. I heard that for HAProxy you need multiple server under the same subnet, plus a shared (virtual) ip ...
3
votes
1answer
2k views

HAProxy reqrep remove URI on backend request

real quick question regarding HAProxy reqrep. I am trying to rewrite/replace the request that gets sent to the backend. I have the following example domain and URIs, both sharing the same domain ...
3
votes
1answer
122 views

Appears to be “randomly” switching between the acl matched backend and the default backend

I have HAProxy acting as a proxy in front of: An NGinx instance An in-house load balancer in front of multiple dynamic services exposed with socket.io (websockets) My problem is that from time to ...
2
votes
1answer
56 views

serving a blog at domain.com/blog when dns for domain.com is pointing elsewhere

there is a blog hosted on one machine (apache) (currently at blog.domain.com) and we'd like to move it to domain.com/blog. dns for domain.com is pointed at an haproxy machine load balancing a few ...