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.
2
votes
4answers
689 views
High Availability Configuration using Heartbeat and Pacemaker
I have the following setup:
I have configured high availability between two load balancers (HAProxy) so that if HAProxy1 get down, the floating IP gets transferred to the other load balancer ...
2
votes
3answers
2k views
HAProxy check says server is down when it is up
I am trying to setup 2 Glassfish servers in a load balanced configuration using UCARP and HAProxy
Server1 has 2 IPs x.x.x.17 and x.x.x.18
HAProxy is listening on only x.x.x.18 and Glassfish ...
2
votes
3answers
614 views
DNS failover across multiple datacenters?
I've got a site that is starting to get a lot of traffic and just the other day, we had a network outage at the datacenter where our loadbalancer (haproxy) is hosted at.
This worried me as despite all ...
2
votes
1answer
185 views
Building a minimal HAProxy VM. Where to start?
I want to build a minimal VM (in Hyper-V on Windows 2008 R2) that runs HAProxy to load balance a bunch of web services.
Is there a preferred Linux distribution that provides a small, yet functional ...
2
votes
2answers
645 views
Is it possible to remove part of a path in HAProxy in a redirect?
I'm using HAProxy to set a cookie when you visit mydomain.com/dev and redirects to mydomain.com .
The purpose of this is to offer a way to visit a development version of the site instead of the ...
2
votes
1answer
364 views
Redundancy for WordPress sites
For static websites I'm using HAProxy (one master, several nodes with static HTML files on them). What services in addition would you recommend to allow WordPress sites to be hosted in the same way in ...
2
votes
1answer
409 views
Why did iptables suddenly block HAProxy
I have an Apache server behind an HAProxy server. Earlier today, the server became unavailable and HAProxy threw 503 errors on the front end. After investigating, it looks like iptables began blocking ...
2
votes
1answer
83 views
Host information with TCP port
Forgive this question, I'm a designer trying to get my head around a possible network architecture. I have a wildcard domain on example.com. The client connects via TCP to foo.example.com:1234. Is it ...
2
votes
1answer
810 views
Is there an HAProxy virtual machine I can download?
Is there an HAProxy virtual machine (any OS) with HAProxy installed but not configured (or configured and I'll just reconfigure)?
2
votes
3answers
1k views
Nginx HttpGeoIPModule with X_Forwarded and HAProxy
Is it possible to make Nginx HttpGeoIPModule use the X_Forwarded IP that is sent via HAProxy? It is currently just using the incorrect server IP, but unsure how I can make Nginx use the X_Forwarded ...
2
votes
1answer
581 views
HAproxy + failover on same nodes as apache?
We're currently using HAproxy to load balance our image and application servers, but we haven't setup failover. We currently just have haproxy on one of the image boxes which then routes the requests ...
2
votes
1answer
1k views
HAProxy Per server URL rewriting in the backend (reqirep?)
Is it possible to have a path appended (like the requirep below) but on a per server basis ?
I can't see how it is possible in 1.3 or 1.4. There is redir, but redir does a HTTP redirect, not what I ...
2
votes
1answer
1k views
Multi-threaded alternative to tinyproxy?
Are there any free, light-weight, single-process (e.g. multi-threaded, asyncore) HTTP forward proxy software?
Tinyproxy works great, but it uses multiple processes like (Apache's) prefork. HAProxy ...
2
votes
1answer
728 views
Stunnel too many clients
I'm trying to hook up stunnel and haproxy to forward https connections through to some backend servers.
I've got haproxy setup right, and I seem to have stunnel set up right. Trouble is that when I ...
2
votes
4answers
939 views
Blocking IP addresses Load Balanced Cluster
We're using HAproxy as a front end load balancer / proxy and are looking for solutions to block random IP addresses from jamming the cluster.
Is anyone familiar with a conf for HAProxy that can block ...
2
votes
1answer
125 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
2answers
538 views
Should I use an ssl terminator or just haproxy?
I'm trying to figure out how to set up my architecture for a socket.io app that will require both https and wss connections. I've found many tutorials on the web suggesting that you use something like ...
2
votes
2answers
455 views
HAProxy + nginx reaching max numtcpsock in about 24 hours
I'm running a relatively simple VPS (a Media Temple (ve)) with a few PHP-based websites and (eventually) a few Node servers. In order to enable WebSockets support, I'm using HAProxy on port 80, which ...
2
votes
1answer
227 views
Load balance HTTP based on a percentage of traffic or requests?
I want to have v1 of my application in one pool and version v1.1 in another pool and then slowly ramp up the traffic going to pool two and reduce it to pool one.
Can anyone show some concrete ...
2
votes
1answer
150 views
Redirect away from www to non-www domain on nginx from behind HAproxy
I'm a bit confused. I have nginx running on a port other than 80.
# part of nginx.conf
server {
listen 7000;
include /etc/nginx/my_app.conf;
}
That's because my HAProxy is running on 80 on the ...
2
votes
2answers
781 views
Haproxy graceful reload
I was looking for a solution for graceful reload of haproxy. I have a nginx server running which passes requests to Haproxy and at times I reload the Haproxy configuration. But I am observing that at ...
2
votes
1answer
680 views
Using HAProxy, matching root URL only in ACL
Using HAProxy, I want to create the following setup:
All requests except root (/), /articles and /blogs go to server1
All requests for root (/), /articles and /blogs go to server2
I can't figure ...
2
votes
4answers
295 views
Trying to understand how varnish fits into the picture
Currently I am setting up HA proxy to route requests to my application servers.
My application servers will be running nginx with phusion passenger.
From what I understand, varnish only caches pages ...
2
votes
2answers
683 views
Can Haproxy deny a request by IP if its stick-table is full?
In my haproxy configs I'm setting a stick-table of size 5 that stores every incoming IP address (for 1 minute), and it is set as nopurge so new entries won't get stored in the table. What I'd like to ...
2
votes
2answers
270 views
HAProxy convert GET to POST
Is there any way to configure HAProxy to convert GET requests to POST when sending to the backend servers?
The background of the problem is that we want to use a Cloud based logging service (e.g. ...
2
votes
1answer
834 views
mod_evasive behind HAPROXY
I have a couple of Apache 2 machines behind an HAPROXY setup, I tried to setup mod_evasive on those Apache machine while also using mod_rpaf to get the real X-FORWARDED client ip.
For some reason, ...
2
votes
2answers
261 views
Sessions in HAProxy vs. Google Analytics Visits
I'm seeing numbers almost on a order of magnitude in difference between the total number of sessions served up by HAProxy and the number of Visits recorded in Google Analytics (10x higher number on ...
2
votes
1answer
579 views
Can a server run both haproxy and nginx? How would they both work?
Can a single server run both haproxy and nginx at the same time?
I guess I would have to run nginx on a different port, and then route specific traffic to nginx?
Say I have 2 domains, 1 requires ...
2
votes
3answers
556 views
Route traffic to node with lowest latency in HAproxy
Is it possible to route requests via HAproxy to a server that has the lowest latency from the source IP? This seems like a much needed requirement but I can't seem to find anything.
My problem is ...
2
votes
1answer
83 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 / ...
2
votes
1answer
112 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 ...
2
votes
1answer
119 views
HAProxy crashes on all requests in 1.5-dev12
I'm having an issue where HAProxy is crashing with no explanation when I switch from 1.4.12 to 1.5-dev12. The reason I'm switching is for the SSL offloading.
My config file doesn't have any errors, ...
2
votes
1answer
254 views
Mitigate HTTP connect floods with HAproxy + Apache
Our infrastructure consists of load balancers running HAProxy and Apache, which forward traffic to our app servers running just Apache. The past few days, we've been seeing connection floods which the ...
2
votes
1answer
1k views
Tuning Linux + HAProxy
I'm currently rolling out HAProxy on Centos 6 which will send requests to some Apache HTTPD servers and I'm having issues with performance. I've spent the last couple of days googling and still can't ...
2
votes
1answer
278 views
Add X-Forwarder-For HTTP header to HAProxy
I use HAProxy 1.3.26 on my CentOS 5.8 to proxy all requests to a dedicated server. I use HAProxy just to proxy HTTP and HTTPS to a single server, so no load balancing.
My haproxy.cfg is rather ...
2
votes
2answers
241 views
Authenticated proxies on HAProxy load balancer
I want to rotate between a few http authenticated proxies. But I am unable to plug this into the config file because the url structure is different. It works when i remove the username and pass (but ...
2
votes
1answer
215 views
strategy for distributing erlang otp nodes behind haproxy
I have a standard erlang application build upon otp principles. I plan to place my erlang nodes in production as explained below:
receive all traffic on a public ip (haproxy)
haproxy them to one of ...
2
votes
1answer
479 views
250k connections for comet with node.js
How to implement node.js to be able to handle 250k connections as comet server (client side we use socket.io)?
Would the use of nginx as proxy/loadbalancer be the right solution? Or will HA-Proxy be ...
2
votes
1answer
873 views
ERROR 2013 when connecting to mysql via HAProxy
I am trying to use HAProxy as a load balancer for 2 mysql nodes. I have HAProxy listening on 3307 and it routes requests to the DBs on 3306. When the client is trying to connect to the Proxy (mysql -u ...
2
votes
2answers
676 views
load balancing, high availability for webapp setup
We have build a special interest social network and need to setup now the proper server setup for the webapp servers.
We have for the webapp 5 physical server available (2xE5645 CPU, 24 GB Ram, RAID, ...
2
votes
2answers
1k views
Is HAProxy with balance roundrobin redirect location possible?
I'm trying to set up an HAProxy that will listen on port 80 and roundrobin redirect location any traffic to two servers along with doing the health check.
The servers have different URL's so afaik ...
2
votes
1answer
735 views
How do I configure Haproxy to choose a backend based on content in the HTTP request body (not headers)?
Haproxy appears to provide a lot of abilities for content switching on HTTP Request headers (and URL, etc). However, I'm looking for a solution to choose a back-end based on matching a string (in a ...
2
votes
2answers
659 views
ssl offloader for websockets
im looking for a proxy which supports a massive load (like nginx or haproxy) and can handle websockets and ssl. i know only nginx which does not support websockets and haproxy which doesnt support ssl ...
2
votes
4answers
850 views
How to avoid external Javascript problem hanging server?
I've been having a strange problem with externally linked Javascript libraries hanging my load balancer server running HAProxy. I recently integrated the Quantcast monitoring script, and it worked ...
2
votes
1answer
40 views
is there a way to “multicast” a request with haproxy?
I have a configuration with a cloud of servers behind haproxy. Haproxy is loadbalancing between the servers. However there's some action that needs to be sent to each server. Currently I do it ...
2
votes
0answers
30 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.* ...
2
votes
3answers
101 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?
2
votes
1answer
173 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)
2
votes
1answer
50 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 ...
2
votes
1answer
364 views
FTP through HAProxy
I have a machine, which is the Host and has HAProxy installed in it and working. Then I have a Guest KVM virtual machine running inside the Host with an IP 192.168.122.152. I installed an FTP server ...