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

HAProxy appsession vs cookie precedence

I am trying to find the best solution for balancing and keeping persistence on our application behind HAProxy. Here is our basic configuration: https://gist.github.com/endzyme/1804046b23c37beba520 After playing around with taking members down and…
nhuanca
  • 91
  • 1
  • 6
4
votes
1 answer

Redis sentinel + HAProxy failover

I am looking to implement a HA redis implementation using Master-Slave redis servers. The web servers will connect to these through an HAProxy instance installed on each box. The situation is easy with only two servers, if one goes down the other…
JonoCoetzee
  • 315
  • 1
  • 3
  • 12
4
votes
1 answer

Tee requests with HAProxy

I'm using HAProxy to loadbalance TCP service. I would like to "tee" the same request to a different cluster (dev instance). Does HAProxy have the "tee" feature? The dev, prod clusters and the HAProxy are different subnets, so I can't use the "tee"…
user390687
  • 161
  • 3
4
votes
1 answer

HaProxy for game servers, what's wrong with my configuration?

I host a website with a game client that uses TCP for connections. I am currently looking for a way to proxy my connections from one server to my origin server. I have tested Iptables forwarding and I have found that whilst it works HaProxy seems to…
Matthew
  • 51
  • 4
4
votes
4 answers

haproxy and socat sudo

I created a test user and want to limit this "test" user to run only the following command via visudo. echo "show stat" | socat stdio /var/run/haproxy.sock visudo test ALL=(root)NOPASSWD:/usr/bin/socat stdio /var/run/haproxy.sock ls -lat…
Diden
  • 129
  • 3
  • 12
4
votes
2 answers

HAProxy URI balancing isn't very balanced

I'm attempting to use HAProxy 1.4.22 with URI balancing and hash-type consistent to load balance between 3 varnish cache backends. My understanding is that this will never accomplish a perfect balance between servers but it should be better than the…
Pax
  • 335
  • 2
  • 8
4
votes
1 answer

Group web sessions with HAProxy

I want to load balance web requests with HAProxy. The catch is that I want particular groups of users to always go to the same server. (This is a multiplayer system, and users in the same group need to be on the same server). The users can go to…
Will Glass
  • 927
  • 2
  • 12
  • 21
4
votes
0 answers

Is it possible to load balance an XMPP server that is not using BOSH?

We currently have an XMPP server and am now starting to look at clustering. We will have 2 machines, each with an XMPP server. The interface is the standard XMPP connection (not BOSH). We have XMPP components that are running on each XMPP server.…
tjg184
  • 143
  • 4
4
votes
2 answers

HAProxy redirect HTTPS to HTTP

I'm using HAProxy as a load balancer and i'd like to redirect any traffic that comes in on 443 (HTTPS) to 80 (HTTP). My site doesn't support HTTPS at all and i'd rather just redirect users than cause any SSL warnings in browsers. All I can find is…
tarnfeld
  • 471
  • 2
  • 7
  • 13
4
votes
2 answers

FTP through HAProxy

I have a machine, which is the Host and has HAProxy installed in it and working. Then I have a Guest KVM virtual machine running inside the Host with an IP 192.168.122.152. I installed an FTP server in the Guest machine with VSFTPD. From the Host,…
Menda
  • 191
  • 1
  • 2
  • 6
4
votes
3 answers

haproxy + nginx: https trailing slashes redirected to http

I have a setup where HTTP(S) traffic goes from HAProxy to nginx. HAProxy nginx HTTP -----> :80 ----> :9080 HTTPS ----> :443 ----> :9443 I'm having troubles with implicit redirects caused by trailing slashes going from https to http,…
user1719907
4
votes
1 answer

How to forcast the spec of a Linux load balancer?

I would like to build a Linux load balancer with SSL off load with sticky sessions. I would like to do this with either Pound or Pound and HAProxy. I haven't done this before, and I have been wanting to learn about both HAProxy and Pound for a while…
jwbensley
  • 4,202
  • 11
  • 58
  • 90
4
votes
4 answers

Maximizing TCP connections on HAProxy load balancer

I am currently using HAProxy in order to load balance tcp connections from clients to my Erlang app server. The connection is persistent, which means I'm limited to roughly 64K clients on an optimized server (I'm currently running HAProxy on an…
imaginative
  • 1,971
  • 10
  • 32
  • 48
4
votes
2 answers

Load balancing without a load balancer?

I have 4 nginx-powered image servers on their own subdomains which users would access at random. I decided to put them all behind a HAProxy load balancer to improve the reliability and to see the traffic statistics from a single location. It seemed…
Tom
  • 731
  • 3
  • 11
  • 24
4
votes
1 answer

HAProxy running in chroot jail is only logging started messages

I've configured my HAProxy server to run in a chroot jail logging messages to syslog socket. My problem is that the only messsages currently being logged are for when haproxy is starting up. May 26 10:42:37 dev haproxy[13986]: Proxy my_listener…
scarba05
  • 333
  • 6
  • 15