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
1
vote
1 answer

HAProxy logging TCP traffic in syslog

i'm trying to configure my HAProxy to log more information than just saying "proxy backend_xx started" and it looks like i am failing to understand how it works. my HAProxy is a pure TCP LB (just forwards requests from the frontend to backends, pure…
olivierg
  • 524
  • 2
  • 8
  • 27
1
vote
1 answer

HAproxy Use backup server with active servers in one backend

I'm struggling with a scenario that I've searched and read so much but couldn't find anything to solve it. I have 3 servers, 2 actives and one as a standby(backup). every time one of active servers go down, the standby server will be active and…
Ali Kargar
  • 11
  • 1
  • 4
1
vote
1 answer

haproxy not using full server resources for ssl offload

i have a haproxy setup on a virtual machine using kvm with 8 cores and 4Gb of memory. i,m using it as a load balancer with SSL offloading(with verify required). the server has a load average of 1.7 and is using only about a gigabyte of memory. the…
moses
  • 83
  • 1
  • 12
1
vote
1 answer

How to respond with "410 Gone" for specific URLs

For SEO reasons I want to return "410 Gone" for some specific URLs which I will match using path_beg or path_sub. I've tried the following: frontend foo mode http bind :80 # 1) this works but I cannot use 410 http-request deny…
cherouvim
  • 794
  • 3
  • 21
  • 37
1
vote
1 answer

HAProxy - Need to add a URL parameter to ACL to differentiate between services with the same URL, but on different ports

I have several services that run on different ports, each of which use the same URI paths. For example: New York Housing Service 127.0.0.1:8080/homes 127.0.0.1:8080/prices Las Vegas Housing Service 127.0.0.1:8081/homes 127.0.0.1:8081/prices This…
1
vote
1 answer

HAProxy rejecting connections with low resource usage

I'm having issues with my haproxy servers rejecting new connections (or timing them out) after a certain threshold. The proxy servers are AWS c5.large EC2's with 2 cpus and 4GB of ram. The same configuration is used for both connection types on our…
Dbl0McJim
  • 91
  • 1
  • 5
1
vote
1 answer

HAProxy reports that servers-http and servers-https is down. Does not start

I'm trying to setup haproxy for the first time, and it has been giving me a lot of trouble. Right now, when I call the haproxy file in the /etc/init.d folder to start it up, I get the following: $ ./haproxy start Starting haproxy: …
SVill
  • 77
  • 3
  • 13
1
vote
0 answers

Ubuntu 18.04 as a reverse proxy server and NAT box

I'm setting up a system made of application and database servers all running on a private LAN. The application servers are accessed through HTTP Nginx reverse proxy server and the database servers are accessed through TCP HAproxy. Both Nginx and…
0
votes
1 answer

HAProxy is not balancing to the correct server

I'm balancing 3 fronts with HAProxy, but I want to use always the same backend/server with a specific subdomain (admin.mysite.com). HAProxy is not terminating SSL (I was told this is not good, is better to do that with nginx), so I'm using…
Enrique
  • 143
  • 1
  • 5
0
votes
1 answer

random backends in use_backend with map file

Imagine we have a backend file like this : test.com backend_1 test.com backend_2 and we have something like this in our haproxy config file frontend http_front bind *:80 stats uri /haproxy?stats use_backend…
0
votes
1 answer

HAProxy + Dovecot + Gluster

I'm looking to setup 2 dovecot servers behind HAProxy using gluster for a high-availability solution. From the reading I've been doing, it seems that dovecot highly suggests the use of the dovecot director when both dovecot servers have access to…
Aaron A
  • 239
  • 2
  • 14
0
votes
1 answer

customize format of haproxy X-ForwardedFor ssl_c_s_dn during SSL termination

I am running haproxy in an Alpine Docker container. It is doing SSL termination for https and injecting the client DN into the X-ForwardedFor HTTP Header. But the format it uses for the client DN is not one that my application supports. Can I…
MeowCode
  • 101
  • 1
0
votes
1 answer

HAProxy stats page showing inconsistent statuses

I'm currently using HAProxy as a load balancer for two webservers, and managing it through the Statistics page. The last couple of times I've done deployments (putting one server into maintenance mode, updating it, setting it back to READY then…
Mourndark
  • 159
  • 3
  • 14
0
votes
1 answer

How to configure custom nameservers HAproxy?

I'm setting VPS infrastructure for a shared script project using HAproxy with three nodes. What I want is when clients point their domains to my nameservers like ns1.abcd.com and ns2.abcd.com, the domains will be hosted on my servers. I've searched…
0
votes
1 answer

SNI HTTPS Redirection Haproxy

I’m using now haproxy v.1.7 for redirect HTTPS requests, but I have the following problem. I want to recognize any subdomain that comes from any user for this domain test123.com (as an example) and forwarded to the same URL In my case, I don’t know…