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
2answers
20 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
33 views
Single haproxy fronted 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
30 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
21 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 ...
6
votes
1answer
109 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.
...
0
votes
0answers
10 views
How to extract subdomain and pass it as a parameter in Haproxy
I have configured my dedicated server to link domains with default port (80) to my nodejs ports accordingly to domain name. E.g. site1.com to port 2222 and site2.com to port 3333.
My question is how ...
1
vote
0answers
77 views
Puppet + HAProxy Configuration
I am trying to get HAProxy running. I have the puppet master setup serving configurations to two agents. One is the HAproxy server and the other is a simple web server (certname=webserver2). HAproxy ...
0
votes
1answer
34 views
HAProxy load balancing based on source ip (IP subnet)
I have x cluster. This cluster look like
Cluster 1
192.168.1. (Server type 1)
192.168.2. (Server type 2)
192.168.3.1 (Server type 3) <Redis server>
Cluster 2
192.167.1. (Server type 1)
...
1
vote
1answer
42 views
Ignore port numbers in haproxy host header matches
Using haproxy-1.5, I have the following partial config:
acl is_api hdr(host) -i api.example.com
acl is_app hdr(host) -i app.example.com
Unfortunately, the above doesn't match a request that ...
0
votes
0answers
33 views
ubuntu 12.04 server requires double boot to find eth1
Ubuntu 12.04, haproxy and shorewall. when running everything works as expected. Both eth0 and eth1 properly configured and working. Reboot, system comes up but eth1 is missing, not found, not ...
0
votes
2answers
28 views
HAProxy - health check sub directories/service
I have a server that host multiple sites but logically looks like sub directories. Example:
- http://XXX/Site1
- http://XXX/Site2
How do I configure HAProxy's health check to check each "sub ...
0
votes
1answer
39 views
How to get HAproxy to return next db server's ip address?
I'd like to use HAproxy for checking if my db servers are online, without actually routing the requests through the HAproxy box. Is there any way I can connect to HAproxy and have it return a DB host ...
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 ...
0
votes
1answer
55 views
How to use limit_conn and limit_req modules of Nginx when it is behind HAProxy
I'm using limit_conn_zone (with limit_conn) and limit_req_zone (with limit_req) in Nginx which sits behind a HAProxy. They both run on the same host.
I see whenever a limit is breached in Nginx ...
1
vote
0answers
45 views
Haproxy multiple backend servers & ports
I am a newbie to haproxy and was wondering if someone can confirm that the following config is valid? Effectively I would like to load balanced two servers on multiple ports.
<snippet>
Listen ...
0
votes
2answers
81 views
HAProxy URI balancing isn't very balanced
I'm attempting to use HAProxy 1.4.22 with URI balancing and hash-type consistent to load balance between 3 varnish cache backends. My understanding is that this will never accomplish a perfect balance ...
0
votes
1answer
22 views
how to proxy sql queries (INSERT, UPDATE e.t.c.)
I have installed cluster MYSQL (galley with mariadb)
As an application server installed Apache. on a server with Apache installed haproxy which proxies requests from php in this case installed for ...
0
votes
1answer
37 views
Connecting HAproxy load-balancer to WAN and LAN
I'm setting up a load balancer with failover and I'm confused on how to properly set it up. The load-balancer is balancing web traffic to web-servers on a LAN network.
My setup is the following:
I ...
0
votes
0answers
67 views
Getting HAPROXY to redirect http to https in users browser session
We are currently using a Internet cloud provider to host our SaaS platform. The platform consists of a Firewall -> Cloud Provider SLB -> -> Apache Web Server -> HAPROXY SLB -> Liferay Platform
We ...
0
votes
0answers
26 views
Mapping URL params to servers dynamically in haproxy
I want to use haproxy to map incoming URLs to different back-ends based on URL parts in a wildcard style for example a request to http://x.com/a/<anything> would be proxied (not redirected) to ...
0
votes
0answers
14 views
HAproxy request redirecting to multiple backends
I wonder if it is possible to send an HTTP request matching a particular ACL can be redirected to multiple backends in HAProxy. I want to send a copy of the request to another backend as well.
0
votes
0answers
23 views
Will running haproxy in front of a web service potentially increase throughput?
When I am benchmarking my service using apache bench (ab), I notice that my requests per second increases when I use keep alives.
If I were to use haproxy in front of my web service, and configure ...
0
votes
0answers
48 views
Load balanced solution on EC2 with IIS app servers behind single IP address
I need to create an auto scaling, load balanced solution on EC2 behind a single IP address with IIS 7.5 as an app server(s).
I've got a pretty good working setup with haproxy (as a reverse proxy) ...
0
votes
1answer
53 views
Serve 404 from HAProxy when no acls match
I'm currently re-configuring HAProxy using 1.5dev-17. What I'd like to do is return a 404 error when there is no backend to use for a particular request.
Our current configuration uses the ...
0
votes
0answers
32 views
HAProxy Frontend and Backends on Same Network
Is it mandatory to have the HAProxy Frontend and Backends on different subnets ? Can I run HAProxy in a configuration where the backends are also on the same subnet as the frontend(s) ? If its ...
1
vote
1answer
718 views
How to horizontally scale SSL termination behind HAProxy load balancing?
I've been looking around and no one seems to be trying to scale SSL termination the way I am and I'm curious as to why my approach seems so uncommon.
Here's what I want to do followed by why:
...
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.* ...
0
votes
1answer
36 views
What's the best way to run HAProxy backup as another HAProxy server and avoid cyclical issues
I have several geographical regions for my service deployment, say Region1, Region2, and Region3. Each region has a failover haproxy instance. Each haproxy is configured with several backend servers ...
0
votes
1answer
36 views
secure cookies when https is done on balancer, but balancer->appserver is http
We're trying to maintain PCI compliance for our application and after an audit, the report was telling us that we need to set the secure flag on our cookies. The site is HTTPS (using pound for https ...
4
votes
1answer
190 views
haproxy and keepalived on Amazon EC2
The new Amazon Opsworks service uses haproxy rather than Amazon's own very limited elastic load-balancer so I started investigating haproxy as a better option for load-balancing our web app servers, ...
4
votes
1answer
143 views
Using URL parameters for load balancing with HAProxy
I have a system which is load balancing via a cookie, but I want to use a URL parameter as an alternative. (Specifically, I have a front end app which does not support cookies). My setup is a little ...
1
vote
1answer
187 views
SSL Termination with HAProxy and Nginx on Ubuntu
I've been following this tutorial:
http://www.exratione.com/2012/12/websockets-over-ssl-haproxy-nodejs-nginx/
...but I've been having problems connecting to Nginx through HAProxy via SSL.
I'm ...
0
votes
1answer
51 views
HAProxy responding with NOSRV while backend is up
I have a strange situation where requests to my HAProxy are returning with a 503. HAProxy logs show it returning a NOSRV error:
Mar 26 19:47:01 localhost haproxy[23910]: 10.0.0.30:34261
...
1
vote
1answer
63 views
Proxy HTTP requests to several machines
I have
one service called legacy-service
another service called dev-service
bunch of HTTP requests coming to the legacy-service
Is there any way to proxy HTTP requests to both legacy-service and ...
0
votes
1answer
70 views
haproxy not logging
I have configured rsyslog (CentOS 6.3) adding the -c 0 -r options and the line local2.* /var/log/haproxy.log and restarted rsyslog but all that happens is an haproxy.log gets created. It is never ...
1
vote
0answers
58 views
HAProxy Redundancy, is it possible
I've read through this question, Is it possible to make redundancy on HAProxy server?, and I'm using hearbeat to do my redundancy.
My redundant server DOES indeed come alive and answer on the virtual ...
0
votes
1answer
104 views
Do AWS ELB, HAProxy or nginx drop the connection if a backend servers is down?
I wonder which ones of the following load balancers is able to detect an unavailable backend machine, and redirect the connection to another server without dropping the request:
nginx
AWS Elastic ...
0
votes
1answer
44 views
access_log off for a 301 or a 302
I am using haproxy and nginx. Haproxy has sthis option to check health of my backends:
option httpchk HEAD /lol.txt HTTP/1.0
All works fine, but I do not want to log this health check
So in my ...
0
votes
1answer
102 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
1answer
56 views
Using HAProxy to balance slow and fast requests across multiple backends
I'm new to using HAProxy to load balance my app, which currently runs five backend application instances. My setup is relatively straightforward. I have a Ruby app that uses fibers, EventMachine, and ...
0
votes
0answers
56 views
OpenVPN support for TLS SNI?
I can not establish a VPN with OpenVPN (ubuntu 12.04, version 2.2.1-8ubuntu1) through HAProxy. It seems that OpenVPN does not support SNI (HAProxy uses SNI to forward the traffic to a correct node). ...
0
votes
2answers
73 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 ...
1
vote
1answer
153 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
52 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
117 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 ...
0
votes
1answer
71 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 ...
3
votes
1answer
67 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 ...
0
votes
2answers
53 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 ...
0
votes
1answer
92 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
...
0
votes
1answer
76 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 ...
