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
284 views

SSL with HAProxy

Having a strange problem with Haproxy. I'm using it to frontend SSL connections to a few Joomla sites and the sites don't appear to be picking up on the https front end which is leading to javascript ...
0
votes
2answers
392 views

HAProxy - putting up a maintenance page

Is there an easy way to dissable All backends in haproxy, and instead serve an appropriate maintenance page (for http requests)? I've read a little about the dissabled option, which I understand is ...
0
votes
2answers
396 views

Haproxy and CNAME

I want to create a simple load balancer for the two servers. The problem is with CNAME records, I think. Let's say I have two the same applications on AppFog.com. app1.aws.af.cm and ...
1
vote
2answers
448 views

Pound, HAproxy and HAproxy logging

I'm trying to figure out one thing about HAproxy logging. Basically, we have Pound running in front of HAproxy on the same host doing SSL termination and then passing the requests to HAproxy. What I'm ...
3
votes
1answer
91 views

Group web sessions with HAProxy

I want to load balance web requests with HAProxy. The catch is that I want particular groups of users to always go to the same server. (This is a multiplayer system, and users in the same group need ...
2
votes
1answer
499 views

Why are Layer 7 TCP load balancers (e.g, haproxy) so much simpler to setup than Layer 4 (lvs)? [closed]

For haproxy TCP load balancing, you only need to configure the "real servers" or "backends" behind the VIP (i.e., cluster IP). E.g.: listen smtp 192.168.3.10:25 mode tcp balance ...
0
votes
1answer
146 views

HA proxy and keepalived with Splunk search heads

Is anyone using haproxy/keepaliveD as their software load balancer in a HA search head environment? I am configuring my haproxy.cfg and having some trouble getting sticky sessions and proper load ...
0
votes
1answer
270 views

Making a client sticky without initial session identifier with HAProxy

We have HAProxy infront of a pair of API servers. Currently using appsession because a lot of API clients won't be maintaining a cookie - that's a burden we don't want to pass on to our users. The ...
0
votes
1answer
131 views

HAProxy memory usage increase

I am running a recent version of HAProxy 1.5 (dev15), and I've noticed that after HAProxy has been running for a while, its memory usage creeps up from initially 0.9% of the total memory to 1.9% and ...
0
votes
2answers
76 views

Nginx location and rewrite

I'm dealing with the following issue and I can't figure out to resolve it. I have HAproxy in front of app server farm which are running nginx. HAproxy has some httpchecks enabled for backend services ...
2
votes
1answer
819 views

HAProxy Redirects and matching based off URI

I am attempting to setup a testing haproxy server that will cover 2 basic areas. Auto redirect to https if the user is using http but only if a specific uri part is not present. For example, if a ...
4
votes
1answer
577 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 ...
2
votes
2answers
677 views

haproxy - pass original / remote ip in tcp mode

I've got haproxy set up with keepalived for load balancing and ip failover of a percona cluster, and since it works great I'd like to use the same lb / failover for another service/daemon. I've ...
1
vote
1answer
145 views

Trace what Application is Going through HAproxy

I have this setup where several applications are going through the load balancer (HAproxy) and accessing the MySQL database. Several applications -> HAproxy -> MySQL database I would like to ...
3
votes
3answers
210 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?
0
votes
2answers
235 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 ...
0
votes
2answers
227 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 ...
3
votes
1answer
184 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
1answer
518 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
92 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
3answers
959 views

Apache with mod_php high memory utilization

We have Magento application deployed on Apache with mod_php and mysql. I have observed that sometime apache server starts consuming high memory which causes memory swapping and results in high load on ...
2
votes
1answer
183 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 / ...
1
vote
2answers
320 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 ...
-3
votes
1answer
307 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
461 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 ...
20
votes
3answers
10k views

How can I remove balanced node from haproxy via command line?

I have haproxy running as my load-balancer and from the stats web interface that comes with haproxy, I can put a web server into maintenance mode (and bring it back out again) - which is great! ...
0
votes
1answer
5k views

Haproxy ACL for balance on URL request

I'm usung Ubuntu with haproxy 1.4.13 version. Its load balancing two subdomains: app1.domain.com app2.domain.com now i want to be able to use ACL to send based on url request to the right ...
1
vote
1answer
142 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
131 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
55 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
322 views

Modify HAPROXY's Stats Page

I'm using HAProxy for load balancing and would like to make the stats page visible for certain people. I have already configured this to a point where the users must log into the website first and ...
0
votes
2answers
108 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
245 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 ...
1
vote
1answer
716 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 ...
0
votes
1answer
96 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 ...
4
votes
1answer
934 views

HAProxy, client timeouts when connecting from JDBC pool

I have a webapp (Tomcat/Hibernate/DBCP 1.4) that runs queries against MySQL, and this works fine for a certain load, say 50 queries a second. When I route the same moderate load through HAProxy (still ...
2
votes
1answer
154 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
213 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 ...
0
votes
2answers
273 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
0answers
243 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
305 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 ...
1
vote
1answer
271 views

Can Haproxy work with SSL if I use only roundrobin?

I've been reading about load-balancing with HaProxy and was wondering if you can use this load balancer if I don't do any layer 7 processing? I suppose that using only roundrobin at TCP level ...
2
votes
3answers
1k views

haproxy SSL “fail whale” maintenance page

We're using haproxy's custom error page feature to show a "fail whale" maintenance page while we're doing deployments to our site. However, since haproxy cannot show SSL'd users the custom error ...
0
votes
3answers
713 views

HAProxy NGInx SSL setup

I've been looking around different setups for a server cluster supporting SSL and I would like to benchmark my idea with you. Requirements: All servers in the cluster should be under the same full ...
1
vote
1answer
928 views

Using virtual IP with stunnel and haproxy

We have a load-balancer setup, in which an HTTPS Request flows through the following steps:- Client -> DNS -> stunnel on Load-Balancer -> HAProxy on LB -> Web-Server This setup works ...
2
votes
1answer
650 views

HTTPS Stunnel and Haproxy

I am trying to use stunnel infront of Haproxy for SSL support. SSL certificates are located according to stunnel configuration. I am also able to get the https connection, but every time I use https, ...
7
votes
2answers
2k views

HAProxy SSL Farm Options

I am trying to figure out how to set up an SSL farm with haproxy and SSL reverse proxies and I am looking for some general advice: Is it possible to meet all of the following: Load balance requests ...
0
votes
2answers
247 views

Haproxy Acl in Https

In haproxy settings there is frontend which bind on 443. The problem is inside this frontend I need to use acl rules in order to distinguish traffic based on server_name. However, if I am understand ...
0
votes
2answers
426 views

Single backend, multiple outgoing ports in HAProxy

Running HAProxy with multiple SSL websites, and I would love to define a single backend (it's going to the same servers) but somehow specify the port to use on the backend in the front-end config, ...
1
vote
1answer
73 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 ...