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

How to make HA Proxy keepalive

In my environment I have haproxy load balance for 2 web servers (Apache), this is my HA Proxy configuration : global log 127.0.0.1 local2 chroot /var/lib/haproxy pidfile /var/run/haproxy.pid maxconn 4000 …
user36814
  • 141
  • 1
  • 1
  • 10
7
votes
2 answers

How to configure haproxy port range to range one by one?

I want to use haproxy to deploy one ftp proxy server. Here's scene: ftp client <---> ftp-proxy-server(ip:10.0.1.1) <---> ftp-server(ip:172.126.1.1) ftp server listen on port 21 for control command, data port range [20100-20199] I had haproxy config…
neil
  • 81
  • 1
  • 2
  • 4
7
votes
3 answers

Haproxy not logging with rsyslog

I want to setup HTTP logging in HAProxy and am having some trouble getting it to output the requests correctly. Here is the HAProxy relevent configuration: global log /dev/log local0 log /dev/log local1 notice maxconn 200000 …
Shail Patel
  • 1,764
  • 5
  • 30
  • 46
7
votes
2 answers

Haproxy health check permission denied

I am unable to add a backend server because the health check fails with log message Health check for server mule/muleapp failed, reason: Layer4 connection problem, info: "General socket error (Permission denied)", check duration: 0ms, status:…
ThomasRS
  • 8,215
  • 5
  • 33
  • 48
7
votes
2 answers

Combine HAProxy stats?

I have two instances of HAProxy. Both instances have stats enabled and are working fine. I am trying to combine the stats from both instances into one so that I can use a single HAProxy to view the front/backends stats. I've tried to have the stats…
davetropeano
  • 537
  • 1
  • 6
  • 8
7
votes
2 answers

How to route traffic (reverse Proxy) with HAProxy based on request body

I am attempting to route the following request to the appropriate servers based on the URL identified in the POST body below. I am hoping to accomplish this via a reverse proxy using HAProxy. E.g. I would like to direct all requests to HAProxy, than…
user3567212
  • 101
  • 1
  • 7
7
votes
3 answers

502 Bad Gateway HAproxy

I have Ubuntu 12.04LTS running. My webserver is Tomcat 7.0.42 and I use HAProxy as proxy server. My application is a servlet application which uses websockets. Sometime when I request my page I get "502 Bad Gateway" error on some resources not on…
user2501507
7
votes
1 answer

Haproxy close connections to backup hosts when primary comes back

Question Can I get haproxy to close all connections to backup hosts when a primary host becomes available after being down? Context I am using HAproxy to do failover for pubsub. The haproxy backend config looks something like this: listen pubsub…
Nick
  • 900
  • 1
  • 10
  • 19
7
votes
1 answer

Sentry + Raven, HTTP Error 401: UNAUTHORIZED

I have a Sentry application, running correctly on the url: mydomain.com:11011. I have a project created with the CDN: http://XXX:YYY@mydomain.com:11011/2 This url is served with HAProxy with this configuration: listen sentry *:11011 mode tcp …
b3ni
  • 149
  • 1
  • 8
6
votes
5 answers

Can I have sticky sessions with HAProxy and socket.io with authentication?

I have several instances of socket.io with authentication running under HAProxy and I need to force that the authentication request and the socket connection go to the same instance. I've set up HAProxy based on this answer to a SO question with…
Diego
  • 5,024
  • 6
  • 38
  • 47
6
votes
1 answer

Service proxy with affinity based on URL

I am looking for a service proxy (or load-balancer) with URL-based affinity. This is for using in Kubernetes, inside the cluster: I am looking for an "internal" load balancer, I don't need to expose the service outside. By default, the Service in…
TagadaPoe
  • 95
  • 8
6
votes
1 answer

ERR_SPDY_PROTOCOL_ERROR randomly on XHR request

After a release we started getting competely random ERR_SPDY_PROTOCOL_ERROR in our production application. When we get it we refresh the browser a few times and the error goes away. We can't really reproduce the error but we have managed to capture…
Yannis
  • 6,047
  • 5
  • 43
  • 62
6
votes
1 answer

How do I force my gRPC client to open multiple connections to the server?

I have implemented a server and client with Google's gRPC toolkit. While testing, I noticed that there was never more than a single TCP connection from the client to the server, regardless of how many Channel instances I construct. I am planning to…
Mark
  • 11,257
  • 11
  • 61
  • 97
6
votes
1 answer

HAProxy - use_backend if it's available

Is there a way to utilize use_backend with an ACL match, but, in the case the backend is unavailable (down,maint,etc), then use the default? For example: # Define hosts acl host_bacon hdr(host) -i ilovebacon.com acl host_milkshakes…
bladefist
  • 1,084
  • 3
  • 15
  • 25
6
votes
2 answers

TCP load balancing in HAProxy with persistent TCP connections

Currently, I have a single client (component) having a single persistent TCP connection with the server(another component), and messages are exchanged asynchronously. I wanted to have a load balancer (HAProxy preferably) where the connection b/w…
ks2bmallik
  • 184
  • 3
  • 18