Questions tagged [haproxy]

HAproxy is a TCP/HTTP load balancer which provides cookie-based persistence, advanced traffic regulation with surge protection, automatic failover, run-time regex-based header control, Web-based reporting, advanced logging to help trouble-shooting buggy applications and/or networks, and a few other features.

HAProxy is a TCP/HTTP load balancer which provides cookie-based persistence, advanced traffic regulation with surge protection, automatic fail over, run-time regex-based header control, Web-based reporting, advanced logging to help trouble-shooting buggy applications and/or networks, and a few other features.

2659 questions
6
votes
1 answer

Setup HTTPs Forward Proxy with HAProxy

In HAProxy, I've used option http-proxy to make it work like forward proxy. This seems to be working fine, but for HTTPS traffic that's not possible. So, is there any option in the HAProxy configuration that allows to proxy the HTTPS traffic just…
binaryuser
  • 727
  • 1
  • 5
  • 13
6
votes
1 answer

HAProxy TCP session count stops at 400

I am trying HAProxy for TCP load balancing. Connections come in to port X on a single IP, and the HAProxy then balances these connections to a back-end using the "leastconn" balancing method to keep the number of connections even. This is on Ubuntu…
Jon Watte
  • 6,579
  • 4
  • 53
  • 63
6
votes
1 answer

User authentication and dynamic routing in traefik

I want to replace haproxy with traefik. But in order to that, I have to replace a Lua script which handles authentication (via auth token calling a rest API) and custom redirect (certain docker service) depending on headers and authentication from…
fentas
  • 1,011
  • 12
  • 14
6
votes
2 answers

haproxy 504 timeout to apache

Very new to haproxy and loving it, apart from a 504 issue that we're getting. The relevant log output is: Jun 21 13:52:06 localhost haproxy[1431]: 192.168.0.2:51435 [21/Jun/2017:13:50:26.740] www-https~ beFootprints/foorprints 0/0/2/-1/100003 504…
Ads
  • 63
  • 1
  • 1
  • 4
6
votes
1 answer

HAProxy dynamic server addresses

We have Similar setup to this diagram Where request arrives to HAProxy, it get's roundrobin balanced to any servers, backend server checks its cache and if resource is not on that server it issues redirect with header set to the correct server…
Tomas
  • 2,676
  • 5
  • 41
  • 51
6
votes
1 answer

selinux denying haproxy connections?

I'm seeing these messages popping up in syslog: Mar 10 12:51:35 db1 kernel: [5851729.958138] type=1400 audit(1457614295.823:2925931): avc: denied { name_connect } for pid=801 comm="haproxy" dest=7778 scontext=system_u:system_r:haproxy_t:s0…
bluethundr
  • 1,005
  • 17
  • 68
  • 141
6
votes
4 answers

haproxy / docker No enabled listener found (check for 'bind' directives) ! Exiting

I am trying to run haproxy with docker. I followed the instructions here : https://hub.docker.com/_/haproxy/ I was able to build the docker image but after trying to run it. using docker run -d --link another_container:another_container --name…
6
votes
2 answers

How do I add X-Request-Start in HAProxy?

We'd like to track request queue times, and as per https://docs.newrelic.com/docs/apm/other-features/request-queueing/configuring-request-queue-reporting, we need to add X-Request-Start or X-Queue-Start with the timestamp in milliseconds.
chendo
  • 620
  • 6
  • 10
6
votes
1 answer

Ratchet multiple servers

I am using Ratchet (http://socketo.me/) for websockets in my PHP application. I have multiple virtual machines running the application and each of these machines also host the websocket service. Requests are passed to one of these virtual machines…
drodil
  • 2,292
  • 1
  • 22
  • 37
6
votes
1 answer

haproxy multiple acl using the same name

I am in the middle of writing a new config for HAProxy - What I want to do is this. acl ccbill src 64.38.212.0/24 acl ccbill src 64.38.215.0/24 acl ccbill src 64.38.215.0/24 acl ccbill src 64.38.215.0/24 use_backend admin-chat if ccbill I am just…
ArcticMediaRyan
  • 687
  • 8
  • 32
6
votes
2 answers

How do I reload haproxy.cfg on the default Dockerfile?

I'm using the default HAProxy Docker image from https://github.com/dockerfile/haproxy Unfortunately I can't get it to reload my config properly. If I run $ sudo docker exec haprox haproxy -f /etc/haproxy/haproxy.cfg -p '$(
Wayne Werner
  • 49,299
  • 29
  • 200
  • 290
6
votes
1 answer

HAProxy restrict single backend by ip range

I have inherited an HAProxy setup with around twenty backend definitions (and little else) in the config file. I have been asked to restrict one of the backends to a specific IP range, but so far my research (and limited HAProxy knowledge) have…
srowland
  • 1,625
  • 1
  • 12
  • 19
6
votes
2 answers

Using an HTTP healthcheck for a TCP server in HA Proxy

Suppose I have a tcp server running on localhost:9000 and an HTTP server running on localhost:8000. The HTTP server exposes a URL "/healthz" that returns a 200 if the tcp server is healthy and a 500 if the tcp server is unhealthy. That is,…
Michael
  • 2,031
  • 6
  • 21
  • 27
6
votes
5 answers

Haproxy + netty: Way to prevent exceptions on connection reset?

We're using haproxy in front of a netty-3.6-run backend. We are handling a huge number of connections, some of which can be longstanding. Now the problem is that when haproxy closes a connection for means of rebalancing, it does so by sending a…
Benjaminssp
  • 243
  • 1
  • 2
  • 9
6
votes
3 answers

Route by using existing cookie

How can I route requests in haproxy using a cookie that was set on the app servers? Example: SESS= haproxy should not insert cookies by itself in any case.
user187676