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

haproxy as load-balancer and nginx as webserver?

EDIT: I'm interested in high availability, performance server setup. I read a lot of articles about haproxy vs. nginx vs. apache etc. and this was my conclusion: haproxy is better load-balancer than nginx nginx is better web server than apache So…
feketegy
  • 219
  • 2
  • 4
6
votes
4 answers

Use backups if unavailable (not just down)

Using haproxy, I want: A pool of 'main' servers and 'backup' servers, though they don't necessarily have to be in separate pools. Each backend has a low 'maxconn' (in this case 1) Clients should not wait in a queue. If there are no immediately…
Pricey
  • 419
  • 1
  • 5
  • 20
6
votes
2 answers

HAProxy: Display a "BADREQ" | BADREQ's by the thousands

My HAProxy Configuration. #HA-Proxy version 1.3.22 2009/10/14 Copyright 2000-2009 Willy Tarreau global maxconn 10000 spread-checks 50 user haproxy group haproxy daemon stats socket /tmp/haproxy log localhost …
grufftech
  • 6,760
  • 4
  • 37
  • 37
6
votes
1 answer

Keepalived not sending mutlicast advertisments

I have two systems, both VMs. The are configured to use Bridged networking. I am trying to get keepalived to manage ownership of a VIP - 10.190.1.230. I have tried two versions of keepalived-1.2.2 and keepalived-1.2.1, built from source. ServerA -…
The_Viper
  • 163
  • 1
  • 8
6
votes
3 answers

High Availability for SSL Web Site

One of our web server clusters serves a moderate number of busy e-commerce applications. At present, each site lives on a specific web server and has a hot-spare copy mirrored to another web server in the cluster. If a server fails, there is a…
Justin Scott
  • 8,798
  • 1
  • 28
  • 39
6
votes
4 answers

Load balanced IIS. Should I use NLB, or linux-based reverse proxy, or something else?

What would be the best approach for load-balancing at least 2-3 Windows 2008 R2 IIS webservers running a multitude of .NET applications? My choices appear to be: 1) Hardware-based network device load balancer, like a Cisco CSS 2) Windows NLB 3) Some…
growse
  • 8,020
  • 13
  • 74
  • 115
6
votes
1 answer

Load balancing a Windows File Share using HA-Proxy

After pulling my hair out over DFS I just had this weird and potentially dangerous idea come into my head whereby, just possibly, I might be able to use HA-Proxy to load balance a file share between servers. I've done some remedial packet traces and…
6
votes
1 answer

HAProxy not passing SSL traffic in TCP mode (unknown protocol)

I've got a HAProxy LB solution setup and working correctly. All HTTP traffic on port 80 is being passed through succesfully. I'm now trying to get SSL traffic to work (in TCP mode and on just one server for now) however I keep getting the following…
outeredge
  • 391
  • 1
  • 2
  • 7
6
votes
2 answers

mod_evasive behind HAPROXY

I have a couple of Apache 2 machines behind an HAPROXY setup, I tried to setup mod_evasive on those Apache machine while also using mod_rpaf to get the real X-FORWARDED client ip. For some reason, mod_evasive grabs and blocks some ips (testing with…
Elad Meidar
  • 171
  • 1
  • 3
6
votes
2 answers

Include backend name/ip in response headers in haproxy

I am stuffing haproxy in front of 3 riak nodes with HTTP. I want the backend name and/or ip in the response headers. Something like: X-Proxy-Backend: riak-1 10.0.0.1 or whatever. How can I make this happen?
Daniel Huckstep
  • 539
  • 2
  • 8
  • 19
6
votes
2 answers

HAProxy SSL Farm Options

I am trying to figure out how to set up an SSL farm with haproxy and SSL reverse proxies and I am looking for some general advice: Is it possible to meet all of the following: Load balance requests against the SSL farm and have failover so more…
Kyle Brandt
  • 83,619
  • 74
  • 305
  • 448
6
votes
1 answer

HAproxy roundrobin balancing does not appear to be distributing evenly

I know that with loaded servers, roundrobin in HAproxy (1.4.4) does not evenly distribute, but my servers are currently getting NO traffic (test setup), and roundrobin balancing does www1,www1,www1,www1,www1,...www2,www2,www2,...,www1... I'm…
andrew
  • 299
  • 4
  • 11
6
votes
3 answers

How can I get HAProxy backends to include a path

When using HAProxy for virtual hosting, I can see how to use the Host from the header at the front end to decide what backend to route to. However, is it possible to make the back end be a URL which includes a path (not unlike what you would do with…
Michael Neale
  • 3,704
  • 5
  • 28
  • 26
5
votes
2 answers

Haproxy TLS configuration

I need to create haproxy with tls , although its working successfully with ssl certificate , i have done below configuration global log 127.0.0.1 local0 debug ssl-default-bind-options no-sslv3 2048 Its giving below error , please suggest…
Surender
  • 59
  • 1
  • 1
  • 3
5
votes
2 answers

How does a load balancer get around the 64k port limit?

When a request comes in, it gets rerouted to one of several available servers for the request. But there's only 64k ports available so at any given time there can only be 64k outgoing requests max. So how can some websites serve millions of…
Jayson Tatum
  • 51
  • 1
  • 3