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

HAProxy truncates the host_header part of some log messages

I've got an HAProxy instance configured to log to a special home-grown daemon that chucks the log files into a database. I've seen some issues on some log messages where the host_header field is truncated for no specific reason. For example, instead…
growse
  • 8,020
  • 13
  • 74
  • 115
4
votes
0 answers

Best way to debug haproxy errors?

I am looking for a useful way to debug haproxy errors.. I found the "log-separate-errors" option (nice feature, because we have thousands of request per second and do not want to log them all), but the log message is not very helpful in our case,…
4
votes
2 answers

Is there a Windows equivalent of the HAProxy for virtual load balancing?

I want to load balance a bunch of VMs, but don't have any Linux boxes available. Typically, afaik, it's done with HAProxy on Linux. Is there an HAProxy equivalent on Windows? (free, open-source if possible).
AngryHacker
  • 2,877
  • 6
  • 32
  • 33
4
votes
0 answers

HAProxy stick table

I have an issue where I need the same RTMP TCP connection to hit the same server it connected with if it was http or https. The following works with http: frontend http mode http bind :80 default_backend web_servers frontend rtmp …
ChriSxStyles
  • 383
  • 1
  • 3
  • 11
4
votes
2 answers

When you exhaust a 1 Gpbs connection to your main haproxy, how do you scale out?

If you exhaust your public network connection (say 1 Gbps) to your haproxy server that proxies requests to your backend servers, what options do you have to scale it out? Since all request traffic flows through haproxy, how can you scale this setup…
codecompleting
  • 513
  • 1
  • 4
  • 14
4
votes
1 answer

Rate/Bandwidth limiting with haproxy, what are the options?

I have tried reading up on different methods of limiting (rate/bw) with haproxy, but seems the only working implementation I find is per /32 ip based limit. Is it possible to do rate limiting based on acl? Samba has a nice solution to this, where…
Bjornar
  • 41
  • 1
  • 2
4
votes
4 answers

Haproxy mysql failover load balancing

I have setup mysql master-master replication and now I am trying to load balance mysql servers with Haproxy. Load balancer: 192.168.1.5 mysql1: 192.168.1.7 mysql2: 192.168.1.8 The below haproxy configuration is working fine and it's rotating nodes…
user53864
  • 1,723
  • 11
  • 37
  • 66
4
votes
1 answer

HAProxy URL Introspection

I have an application where the URL of a request determines which server to forward the request to based on a memcache or database lookup. Currently, it is just round robin, but the state is only stored on one server and that server needs to get all…
Matt Williamson
  • 323
  • 2
  • 4
  • 10
4
votes
1 answer

HAProxy Specific URI

So my HAProxy configuration is similar to this. listen webaustin 0.0.0.0:80 mode http timeout connect 12000 timeout server 60000 timeout queue 120000 balance roundrobin option httpchk GET /index.html log global …
grufftech
  • 6,760
  • 4
  • 37
  • 37
4
votes
5 answers

HAProxy and "sharding"

I am cross posting this from stack overflow since it was suggested I might get a better answer here ... I was wondering if anyone has used HAProxy for sharding. Specifically, I would like to be able use a cookie I define w/a identifier and have any…
Manish V
4
votes
4 answers

High availability without dropping connections

Is it possible to have a high availability setup, in this example going to 2 webservers, and allow it to fail over without dropping connections? I have two webservers that are using comet, an HTTP technique where you have long-lived HTTP…
John Smith
  • 41
  • 2
4
votes
3 answers

haproxy: adding tcplog parameters

Slightly related to " Other options to "balance source" in haproxy", I would like to know what ports are currently pointed where. To confirm, I'm using haproxy to distribute clients which make only a single connection at a time to a different port…
Pricey
  • 419
  • 1
  • 5
  • 20
4
votes
1 answer

haproxy forwardfor ignored while in tcp mode

I have a haproxy set for https and as such I had to enable mode:tcp for that but as it turns out because of that forwardfor is being ignored and I can't see original ip. is there any way to bypass it? haproxy ver: 1.4.9
Marcin
  • 613
  • 4
  • 8
  • 15
4
votes
2 answers

HAProxy convert GET to POST

Is there any way to configure HAProxy to convert GET requests to POST when sending to the backend servers? The background of the problem is that we want to use a Cloud based logging service (e.g. loggy.com), which only allows log events to be…
cjbottaro
  • 141
  • 3
4
votes
1 answer

haproxy: Is there a way to group acls for greater efficiency?

I have some logic in a frontend that routes to different backends based on both the host and the url. Logically it looks like this: if hdr(host) ends with 'a.domain.com': if url starts with '/dir1/': use backend domain.com/dir1/ elif…
user41356
  • 279
  • 1
  • 5
  • 12