Questions tagged [haproxy]

HAProxy is an 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.

See also:

2099 questions
4
votes
1 answer

Can I use HAProxy to load balance telnet connections?

We use HAProxy as load balancer for regular HTTP requests. I see no reference to telnet connections in the HAProxy configuration guide: HAProxy config guide. I was hoping to reuse HAProxy (or spin up separate instances for long lived connections) to…
user1843591
  • 157
  • 2
  • 9
4
votes
1 answer

HAProxy to redirect http to https for multiple domain names without SSL Termination

I am using HAProxy to redirect traffic to different web servers in local network. Without SSL enabled, I can route based on hostname like this (in frontend section): acl is_local hdr_end(host) -i mirror.skbx.co acl is_kiev hdr_end(host) -i…
Maxim V. Pavlov
  • 663
  • 3
  • 11
  • 29
4
votes
1 answer

is there a standard for chaining x-forwarded-for headers?

IETF RFC 2616 Section 4.2 allows a request to contain multiple headers with the same field-name as long as chronological order of insertion is preserved and their values can be converted into single header with a comma-separated list of…
4
votes
2 answers

Is it possible to connect to MS SQL server via HAProxy?

I need to be able to connect to MS SQL server hosted on Amazon (RDS, single AZ) via HAProxy. I tried the following configuration (bottom) but MS SQL returned me (although I used valid login and password): A connection was successfully established…
kirill_l
  • 237
  • 3
  • 11
4
votes
1 answer

Common back pressure strategies for services under sustained high load

I'm wondering what are the common backpressure strategies people use for their web services? Imagine your service operates under heavy load, and at some point the load reaches 120% of your capacity. How do you deal with this? The most sound…
sergey
  • 41
  • 1
  • 3
4
votes
5 answers

HAProxy Does Not Recover After Failed Check

All, I'm having an issue with HAProxy not recovering after a backend server is restarted. I'm not using the proxy for load balancing, but to direct different URLs to different servers (web and web services) to avoid cross-domain issues. The proxy…
4
votes
2 answers

HAproxy for load balancing vsFTPd servers

I have successfully set up a load balancing environment using HAProxy and 2 FTP servers running vsftpd. This is what the setup looks so far: Proxy: ftp00 | 192.168.2.135 (public, eth0) | 10.11.130.1 (private, eth1) Node01: ftp01 | 10.11.130.140…
Mosh Pit
  • 339
  • 2
  • 4
  • 13
4
votes
1 answer

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 instance with the Module#1 deployed. I would like to…
BartoszMiller
  • 143
  • 1
  • 5
4
votes
1 answer

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 (ca1), ca1 certificate and client certificate. BUT…
legeech
  • 41
  • 1
  • 3
4
votes
2 answers

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 /path/to/ips.list If ips.list were to be modified would HAProxy…
Michael
  • 41
  • 1
  • 2
4
votes
3 answers

Exclude particular IP address from Postfix log

I have a postfix relay system that uses HAProxy to check to make sure Postfix is responding as it should. There is a front-end load balancer which connects using an internal IP to the backend servers. Is there any way I can exclude this particular…
Chris
  • 1,289
  • 2
  • 18
  • 34
4
votes
1 answer

Rotate haproxy logs

I tried few things but still not able to rotate haproxy logs efficiently. I need to rotate logs when log files crosses 500 MB size. Considering haproxy is serving large no. of static tcp connections, I can not restart haproxy process though a reload…
Jagbir
  • 157
  • 1
  • 2
  • 7
4
votes
1 answer

HAProxy isn't accepting reissued GeoTrust certificate

I requested a reissue of a GeoTrust certificate in light of the Heartbleed bug. We're using HAProxy 1.5-dev22 with OpenSSL enabled. I've updated OpenSSL on all affected instances. The PEM that HAProxy requires is a concatenated version of the…
TheCloudlessSky
  • 215
  • 3
  • 10
4
votes
2 answers

haproxy tcp roundrobin loadbalancing not working as expected

I'm new to haproxy, and using it for TCP load balancing of rsyslog logs to ArcSight connectors. For the life of me, I cannot get traffic to evenly balance across all of the nodes in the pool (which is the desired behavior). I've tried many…
Keith Miller
  • 41
  • 1
  • 3
4
votes
1 answer

HAProxy: routing by Basic Auth credentials

I have many requests coming in from a single IP with credentials supplied in the HTTP Header in Basic Auth format. Even though the origin is the same, the credentials vary frequently across requests. This is an API that derives a lot of benefit from…
NetizenKane
  • 43
  • 1
  • 3