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
10
votes
2 answers

How to use thousands of backends in haproxy? Is the new map feature useful for this?

I want to use haproxy as a proxy and load balancer for thousands of backends. So a request needs to be proxied to the correct backend depending on hostname and then load balanced within the backend. I am using haproxy-1.5dev21. The config file looks…
rcrc
  • 221
  • 2
  • 10
10
votes
1 answer

How can I configure HAProxy to work with server sent events?

I'm trying to add an endpoint to an existing application that sends Server Sent Events. There often may be no event for ~5 minutes. I'm hoping to configure that endpoint to not cut off my server even when the response has not been completed in…
Josh Wilson
  • 3,585
  • 7
  • 32
  • 53
10
votes
3 answers

Apache Tomcat 7 Changing JSESSIONID on Every Request

This issue is driving me insane, so maybe someone could help me understand what the issue is. I have a tomcat web application being fronted by HAProxy. HAProxy is also doing SSL offloading, and is configured to use sticky sessions. I am using…
Nobody
  • 690
  • 2
  • 9
  • 18
9
votes
2 answers

Haproxy multi-line config

Is it possible to split configuration arguments (in haproxy.cfg) onto multiple lines? Example Current frontend https-in bind :443 ssl strict-sni crt crt crt ... Ideal frontend …
beaver
  • 125
  • 1
  • 7
9
votes
2 answers

haproxy nested conditions for acl

I need nested ACL conditions acl route1 hdr_sub(host) -i abc.com hdr_sub(host) -i xyz.com acl route2 path_beg /m1 acl route3 path_beg /m2 use backend back1 if route1 (route2 or route3) // essentially route1 AND (route2 OR route3) to match…
shrw
  • 1,719
  • 5
  • 27
  • 50
9
votes
1 answer

Dynamic DNS Resolution with HAProxy and Docker

I'm trying to setup HAProxy inside a Docker host. Using HAProxy 1.7 and Docker 1.12 My haproxy.cfg looks like: # Simple configuration for an HTTP proxy listening on port 81 on all # interfaces and forwarding requests to a single backend "servers"…
edub
  • 893
  • 2
  • 9
  • 11
9
votes
0 answers

Haproxy: Is there a way to queue incoming request?

Is there a way in HA-Proxy to queue incoming request. I am trying to throttle request based on certain rate limiting criteria, but my current implementation denies the request or blocks any new connection. This is a crude implementation at this…
Parag kale
  • 101
  • 1
  • 3
9
votes
3 answers

Load balancing R requests coming to RServe

I have 6 Linux box running RServe and serving same set of R Scripts. 192.168.0.1 : 6311 192.168.0.2 : 6311 ... ... 192.168.0.6 : 6311 I connect from java to these Rserve using REngine (Rserve Java Client). RConnection rServeConnection = new…
Anand
  • 9,672
  • 4
  • 55
  • 75
9
votes
2 answers

Docker Swarm HAProxy Not Load Balancing w/ Overlay Networking

I have spent the past few day working on creating a docker swarm on Digtital Ocean. Note: I don't want to use -link to communicate with the other apps/containers becasue they are technically considered deprecated and don't work well with docker…
Zach Russell
  • 1,060
  • 2
  • 13
  • 27
9
votes
3 answers

Haproxy loadbalancing udp server

Does haproxy supports udp loadbalancing? We're just using a simple python script on backend server which will be listening on specific port for the udp packects.
Shakil Abbas
  • 559
  • 1
  • 5
  • 16
9
votes
1 answer

How do I get docker cloud (formerly tutum) and haproxy to use SSL?

I just purchased an SSL Certificate. It came with 1 server certificate, 1 intermediate certificate and 1 root certificate. I have my *.csr file and *.key used to create the certificates. I am using Tutum with HAProxy and there is a SSL_CERT…
ericraio
  • 1,469
  • 14
  • 35
9
votes
1 answer

Server-side support for TLS-PSK

We are looking into supporting TLS-PSK for a set of constrained devices that do not have sufficient resources to do the normal TLS handshake using certificates. To that end we are looking for a TLS-PSK component, that we can integrate on our (cloud)…
Joost Reuzel
  • 308
  • 1
  • 10
9
votes
1 answer

How does HAProxy achieves its speed?

How does HAProxy avoids request time overhead when doing the load balancing? I tested HAProxy and for fun compared it to a simple port forwarder written in Twisted (Python). In my preliminary tests, making a HTTP request through an HAProxy load…
jakobht
  • 891
  • 8
  • 18
9
votes
1 answer

How can I make HAProxy reject TCP connections when all backend servers are down

We are using HAProxy to forward incoming TCP connections to a separate server that uses a raw TCP. The issue that we are seeing is that the client connection is accepted and then closed rather then rejected immediately. Since we have enabled a…
Aron
  • 621
  • 5
  • 5
9
votes
4 answers

Haproxy Real IP + Cloudflare

I just can't seem to get this done. I'm still seeing cloudflare IPs in my log. Currently, I have a loadbalancer which is behind Cloudflare. Currently, here's the block related to forwardfor: option forwardfor except 127.0.0.1 option …
sfault
  • 101
  • 1
  • 1
  • 5