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
0
votes
0 answers

HAProxy - how to setup timeout for connection with no request?

I have a public facing server that uses HA Proxy as front end. I use TCP mode. I want to set it up such that if the client established connection (completed 3-way handshake) but does not send any payload within certain amount of time, the connection…
some user
  • 181
  • 5
0
votes
0 answers

HAProxy node automatically going into MAINT mode

Some of my servers in haproxy randomly goes into maintenance mode. I am wondering how is this possible? Is there a configuration which can kick this in. My assumption is that node can go into maintenance mode only through stats admin page or via…
Madhur Ahuja
  • 283
  • 2
  • 5
  • 17
0
votes
1 answer

Disable `redirect prefix` for `stats uri` in HAProxy

In HAProxy (1.5) I have this rule to redirect all requests to a canonical domain: redirect prefix https://domain.tld code 301 unless { hdr(host) -i domain.tld } This works fine. However, I also have stats enabled (stats uri /haproxy-stats). For…
ThiefMaster
  • 388
  • 1
  • 4
  • 19
0
votes
2 answers

Is it possible to duplicate network traffic from port to 2 different machines?

In first I will try to describe the problem. We use following network configuration: machine1 with installed haproxy machine2 with application(in this case we can assume that is only RabbitMq service) machine3 as test server(copy of machine2) All…
Frank59
  • 103
  • 4
0
votes
1 answer

2-host MariaDB Galera cluster with keepalived only, no HAproxy?

We're about to replace a legacy MySQL database using master-slave replication (only 2 hosts total - one master, one slave) with a MariaDB Galera master-master replication cluster to ensure more hassle-free failovers. The tutorials I've read through…
user408931
  • 3
  • 1
  • 2
0
votes
0 answers

HAProxy time-out error for SSL in AWS

I tried to run HAProxy inside a docker container which run with the AWS ECS. As per a requirement I received the container is run behind a classic load-balancer. I managed the mentioned setup to work the with HTTP. But after I converted it to use…
0
votes
2 answers

Haproxy ldap session persistance?

Is it possible to implement session stickiness in haproxy when using it to load balance to ldap servers? Example: I have an lb that load balances to two backend ldap servers. This works fine for reads, but if you browse the tree using directory…
yossarian2004
  • 143
  • 4
  • 9
0
votes
1 answer

HAProxy Interface/eth aware binding as non root user

I have 2 network interfaces on my instance (eth0 and eth1) I am trying to setup HAProxy to be interface aware and have separate frontends per interface. The config below works as root (ie. i do not set user haproxy portion). Wondering if there is a…
dejavu013
  • 13
  • 5
0
votes
1 answer

Firewall Ports + HaProxy

Using HaProxy as a SSH load balancer, We have HaProxy running in IP1:2222 and redirecting to IP1:2223-2233 and IP2:2223-2233. In this case, do I need to open Firewall Ports from Source IP:2222,2223-2233 to IP1:2223-2233 and IP2:2223-2233 or…
myloginid
  • 101
  • 3
0
votes
0 answers

HAProxy create new sessions in Tomcat

I'am using HAProxy 1.5.18 on CentOS 7.3 and Tomcat 8. HAProxy create a lot of sessions (more 350) on my Tomcat Server! Every 10 seconds, a new session is created. I think it is this line : option httpchk OPTIONS / How can I stop the creation of…
Djé Djé
  • 13
  • 3
  • 7
0
votes
1 answer

HAproxy - SSL and virtual hosts issues

HAProxy Config: frontend https-proxy bind *:443 ssl crt /path/to/certs default_backend web backend web balance roundrobin option httpchk option forwardfor option httpclose server web-srv1 192.168.1.1:80…
Matt
  • 175
  • 2
  • 10
0
votes
1 answer

HAProxy -> nginx -> Fast CGI: epoll_wait() reported that client prematurely closed connection

I have been successful in setting up an PHP fast CGI application fronted by nginx. If I hit nginx directly everything works as expected. However, in production the traffic is routed through a HAProxy instance and I can't get that configuration to…
djskinner
  • 131
  • 1
  • 6
0
votes
1 answer

HAProxy server check option causes 503

First time posting so please be genial :) I'm having trouble with the server check option for haproxy. I'm running HA-Proxy version 1.5.2 with two RHEL 7.2 backend web servers. There is currently no configuration on the backend servers, httpd is…
Tol_hou5e
  • 1
  • 2
0
votes
1 answer

Haproxy 1.7 url rewriting reqrep doesn't work

I'm currently trying to rewrite url based on extensions and subdomains, but my update doesn't work, so I will try to explain my procedure: I would like to rewrite this kind of url https://mydomain.tld/image.jpg to…
Romain
  • 26
  • 3
0
votes
0 answers

How to configure HAProxy according to request based on ports on same IP?

I Have Two Background server Website-1. 192.168.1.10:80 Website-2. 192.168.1.10:8080 I have to use haproxy as gateway for accessing it through same URL, Difference is that website-2 access through Port No Putting it manually after ip. ( I want This…
parag bharne
  • 33
  • 1
  • 4
1 2 3
99
100