Tagged Questions

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
0answers
21 views

haproxy logging to syslog

I installed haproxy 1.5 via apt-get on ubuntu 14.04 via ppa:vbernat/haproxy-1.5 as per http://haproxy.debian.net/ The problem is it logging to /var/log/syslog instead of /var/log/haproxy.log The ...
0
votes
0answers
23 views

Scale automatically by monitoring the load in app server

I have a regular setup with 4 droplets in DigitalOcean. One for Haproxy as load balancer, two for app servers, run same Django application and one for database. It's quite easy to add another app ...
0
votes
1answer
31 views

TCP Load balancing

I need to implement an architecture that can serve 3 million GPS Devices sending Location Updates/Alerts (every 10 secs) to our system for processing. Features: 1) TCP communication. 1) Long lived ...
1
vote
0answers
23 views

HTTP Proxy with transparent copy

I've got the following: Client -> HAProxy --> backend_service_1 --> backend_service_2 It's a basic HAProxy Load Balancing config with 2 backend services. I'm hoping that ...
0
votes
1answer
25 views

Install HAProxy on RedHat 6.6

I have a fresh install of Red Hat 6.6, and I want to install HAProxy on. I've read that it's now fully supported, but I haven't been able to install it. Running yum search haproxy returns no matches. ...
-1
votes
1answer
35 views

Bonding multiple proxy server [on hold]

I want to use multiple proxy server at the same time to speed my downloads. How can use multiple proxy at the same time. Reverse Proxy products such as haproxy nginx can use multiple proxy server but ...
1
vote
0answers
31 views

Is it possible to run a proxy server on “OpenShift Online” or appfog? If yes, how? [closed]

In the openshift documentation it says under 4.2: In OpenShift Online, proxy ports are not directly accessible from outside the collection of nodes. To explain the question: We have a tiny ...
1
vote
1answer
61 views

Corosync/Pacemaker + Haproxy Failed Actions: insufficient privileges

I setup a Corosync/Pacemaker cluster + HAproxy using the following guide on Ubuntu 14.04 LTS: ...
0
votes
1answer
33 views

Haproxy logging not work

Cant understand, how it logging? Now my log is empty and haproxy doesnt write anything to file. Sometimes it logs some info, Logging works with syslog-ng, if i set in haproxy conf timeout client about ...
0
votes
0answers
37 views

Rabbitmq Haproxy termination states

In log of haproxy i see an cD flag. Balancer is in front of rabbitmq nodes. When nagios checking nodes, log looks like this: SD flag [10/Nov/2014:14:48:01.190] from NAGIOS IP to Rabbitmq:5672 ...
0
votes
2answers
44 views

Proxying TCP by hostname

I've got multiple game servers TCP ports on my single host machine. The goal is to have users be able to connect to server1.domain.net and have their directed based on that subdomain. My first ...
0
votes
0answers
17 views

HAProxy & MeteorJS - 503 errors everywhere

I'm trying to set up HAProxy as a load balance for two MeteorJS instances. For some reason, HAProxy does not seem to pick up that my instances are there. I can curl 192.168.0.4 and I get the expected ...
1
vote
1answer
44 views

Keepalived track_script + nopreempt doesn't seems to work

I have 2 instances in AWS running keepalived. Each one runs an HAProxy process. I'd like to monitor HAProxy, and in case it fails, fall back to the lesser prioritized node. But if the previous MASTER ...
0
votes
0answers
11 views

HAProxy backend throttling

I'd like to use a similar setting with the one described here to rotate among a set of proxies (not Tor but same idea). One extra requirement though is to throttle requests so that no backend server ...
4
votes
2answers
130 views

Scale HAProxy for more than 64k websockets

We are trying to design an architecture that will be able to handle more than 64k websockets. We first tried with Amazon ELB, but its design doesn't allow unexpected spike of traffic nor websocket. ...
0
votes
0answers
14 views

HAProxy: Balance between two paths on the same server

I need to balance between two paths on the same HTTP server using HAProxy. I.e. Opening myserver Should balance between myserver/path1 and myserver/path2 In my haproxy.cfg I tried using: listen ...
0
votes
1answer
40 views

HAProxy + RabbitMQ, keep connections alive

I'm trying to setup HAProxy as a load balancer on a RabbitMQ cluster. I use a config like this one: global log /dev/log local0 debug log /dev/log local1 debug chroot ...
0
votes
0answers
50 views

HAproxy ACL based on backend application session cookie to replace HTTP Basic Auth

I would need some help on HAproxy configuration to bypass HTTP basic auth and let the user use a specific backend in case there is a valid session cookie present from another backend application. I ...
-1
votes
1answer
41 views

Howto monitor web server nodes through HA proxy using Icinga/Nagios in CentOS 6

In this guide I'm not focusing at all on setting up HA proxy or why you'd want to do that. If you have it and want to properly monitor it using Icinga, here's an idea of how you could go about this. ...
0
votes
1answer
55 views

HAProxy: stop subdomains from redirecting to https

After editing my haproxy config. All my subdomains are now redirecting to https. I just want my domain.com to redirect to https not my subdomains. How do I stop this? Below is my redirect script. ...
0
votes
0answers
30 views

HAProxy RTMP (TCP) load balancing

I am using HAProxy as load balancer for the RTMP protocol. For now it's working very very good but I have one small problem. I want to send the client's IP on the RTMP request after the load balancer. ...
1
vote
1answer
60 views

Scaling a web application horizontally in Tomcat (load balancing / clustering)

I develop a simple REST-style web application consisting of 2 basic modules. Module#1: server exposing REST web services, stateless, deployed in Tomcat Module#2: REST client There is one Tomcat ...
0
votes
1answer
66 views

Amazon RDS load balancing and performance

My question is simple. Is it possible to load balance rds (master and read-replicas) using the same haproxy instance used for application load balancing? This would mean that the IP of the ...
0
votes
1answer
46 views

HAProxy fails to connect when Shorewall firewall is enabled on web servers

I have a fairly standard HAProxy / Web Cluster setup, which is running perfectly fine - as long as I don't enable the Shorewall firewall on the web cluster servers. As soon as I do, error messages ...
0
votes
0answers
66 views

EC2 Haproxy stops taking requests

I am using haproxy with Apache to keep alive an EC2 server. Sometimes haproxy stops taking new requests. If I reload haproxy it starts working normally. I have disabled iptables and increased open ...
0
votes
0answers
130 views

HAProxy - ssl client ca chain cannot be verified

Situation: I want this to work: requests come from clients and goes to haproxy through 443 port (ssl) and then it must go to backend on 80 port. I have server certificate given by intermediate ca ...
1
vote
3answers
270 views

HAProxy high CPU usage - configuration issue?

We recently had a spike in traffic, which while only moderate in size, caused haproxy to max out one of the CPU cores (and the server became unresponsive). I'm guessing that I'm doing something ...
0
votes
0answers
59 views

HaProxy session rate goes UP with fewer servers

I'm using Haproxy in front of a Solr cloud. I have just two servers in the cloud. My performance test (search only) is significantly faster if one of the servers is down, than if both servers are up - ...
0
votes
1answer
356 views

HAProxy option httpchk is not working

Given below is my haproxy.xfg file. HAPRoxy version 1.4.18, released 2011/09/16 is not making any calls to heatbeat.html. And although server1 does not have heartbeat.html it is sending traffic to ...
0
votes
1answer
47 views

HAProxy - Will HAProxy automatically reload list files?

I have text files with lists of ip addresses that I want to use to help determine to right actions to take with HAProxy. So if haproxy loads whitelists like this. "acl whitelist src -f ...
0
votes
1answer
102 views

HAProxy SSL with new GoDaddy certs

I renewed my certificate from GoDaddy and I got back two files: gd_bundle-g2-g1.crt 27ec89cfaa7c28.crt I have the private.key. However I totally forgot how to use, or produce, a valid .pem file to ...
0
votes
1answer
88 views

Using SHA256 with SSL certificates in HAProxy

Through an article on Security Labs I read about Google deprecating SHA-1 as signature in Chrome next year. Now I want to edit our HAProxy SSL configuration to fit the new security needs. What are ...
1
vote
1answer
208 views

Proxy over redis, HAProxy or twemproxy?

The best way to hide switching of master/slave redis servers, is to use a proxy over master server. Among proxy candidates, there is two more important (and used) choices: twemproxy and ...
2
votes
0answers
117 views

Configure haproxy to return a 204 for a certain ACL match

I want to return a HTTP 204 error code if anyone tries to access a particular path on my web server. I could set one of my webservers to return a 204 error and point haproxy to it as a backend. ...
0
votes
1answer
111 views

HAProxy route https SNI and http over the same port

I have an HAProxy routing HTTPS without termination using SNI. The configuration is similar to the following: frontend ft_ssl_vip bind 0.0.0.0:5000 mode tcp option tcplog tcp-request ...
0
votes
1answer
221 views

Will this HAProxy “restart script” work as gracefully I think it will?

I put this script together from various places. What I am hoping is that it will do the following once run: Pause all "NEW" http traffic for ports 80 and 443 - just "pause" them, don't give any ...
0
votes
1answer
36 views

How to do haproxy session mapping

I have a scenario where i have two tomcat servers A and B behind the haproxy, now one of the app servers have a new version of the war and the other tomcat has a old version of the war file.So at a ...
0
votes
2answers
44 views

Web proxying with 3rd party authentication

I have a typical website where users have to pay to sign up and access some premium content. This content are internal propietary web servers from different vendors (think of it like graphical ...
1
vote
2answers
169 views

HAProxy tuning - can't support > 50 concurrent users

I'm investigating replacing a proprietary, software load balancer with HAProxy. As part of this investigation, I am attempting to test HAProxy under load. While my HAProxy configuration works fine ...
1
vote
1answer
161 views

How can I use environment variables in haproxy.conf

My haproxy.cfg file has one backend servers using hostnames: backend servers server myapp ${PORTAL_PORT_3000_TCP_ADDR}:${PORTAL_PORT_3000_TCP_PORT} maxconn 32 myapp is running in other docker ...
1
vote
2answers
276 views

How to construct a MongoDB Health Check in HAProxy?

There is a fastcgi example of a binary health check on the HAProxy blog. How would I construct a similar check for MongoDB such that I am doing a more robust health check for MongoDB - one that ...
1
vote
0answers
72 views

Configuring HAProxy for RPC, only one host

I've tried several ideas on how to get this to work, including Squid, Pound, and now HAProxy, which seems to be the closest yet, so far. I have an NGinx server which I have set to be the primary web ...
3
votes
1answer
347 views

Best Practice for Mapping Domain Names to Docker Container

What is considered "best practices" for serving a a docker container from a specific domain name? For example: Container1 runs App A on port 8080, and accessed via AwesomeAppA.com Container2 runs ...
0
votes
1answer
67 views

Multiple Proxy servers - and how to get around non-SNI devices?

We have a lot of devices that cannot use SNI and we want to be able to proxy a lot of HTTP/HTTPS servers. I was thinking we could setup a HAProxy for each URL to connect to initially, and then load ...
0
votes
1answer
88 views

How to proxy traffic by IP using server names/aliases?

We have 5 different server locations each containing around 30 servers each, each server represents a URL and serves both HTTP and HTTPS. They're all identical however provide different content based ...
0
votes
1answer
182 views

Nginx no longer servers uwsgi application behind HAProxy - Looks for static file instead

We implemented our web application using web2py. It consists of several modules offering a REST API at various resources (e.g. /dids, /replicas, ...). The API is used by clients implementing ...
1
vote
2answers
254 views

Struggling with Haproxy 1.5 ACLs using regular expressions and URL Parameters

I am using Haproxy 1.5.3 setup with ssl on the frontend and also sending ssl to the backend servers. the mode is http and using acls to determine stickyness. My test requests are as follows: wget ...
1
vote
1answer
525 views

HAProxy and Intermediate SSL Certificate Issue

We are currently experiencing an issue with verifying a Comodo SSL certificate on an Ubuntu AWS cluster. Browsers are displaying the site/content fine and showing all the relevant certificate ...
1
vote
1answer
117 views

HAproxy 1.5 Trusted CAs

I'm trying to get HAproxy 1.5.x to trust any certificate authority already in the trust store of the machine (/etc/ssl/certs) without having to explicitly specify the individual ca-file root authority ...
1
vote
2answers
143 views

Haproxy backend servers on different interfaces

I have a haproxy server which gets limited to some 60k connections. I think it is because of ephemeral port limit as I have 1:1 connection mapping, so all my outgoing connections go to the same ...