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

HAProxy returns error if server goes down before health check has occured

Let's say I have web01 in my list of backend servers, and web01 goes down. It will take a few seconds for HAProxy to notice the server is down (depending on the health check interval and how long the timeout is) and take it out of rotation. If a…
Mike Christensen
  • 965
  • 1
  • 11
  • 21
5
votes
1 answer

NFSv4 through portforward

I would like to reach my NFSv4 servers though port forward. The big plan will be a cluster of NFSv4 servers loadbalanced with HAProxy running on localhost. But this isn't really important now. At the server the /etc/exports looks like this /mnt/x …
Stone
  • 7,011
  • 1
  • 21
  • 33
5
votes
1 answer

How to configure HAProxy to route by port without using multiple frontend or listeners

I am trying to configure Haproxy v1.5 for Jabber connections which run on several ports on the same IP. To keep the configuration as simple as possible, I would like to use a single frontend and one or more backends. Is there a way for me to pass…
Developr
  • 872
  • 3
  • 9
  • 19
5
votes
2 answers

HAProxy Url pattern forwarding

I am using HAProxy for load balancing a couple of web servers (HTTP mode). The web servers are strictly dynamic, ie, there isnt any static content, only web services. The URLs of the type…
Some guy
  • 151
  • 1
  • 1
  • 6
5
votes
1 answer

HA Proxy does not start up on Ubuntu 13

I am trying to launch HA Proxy 1.4.24 on an ubuntu 13 VM via sudo. My haproxy.cfg file is copied below. However, when I use sudo service haproxy start or try sudo /etc/init.d/haproxy start, the process not start up. Any ideas on troubleshooting…
ali haider
  • 1,140
  • 3
  • 16
  • 29
5
votes
1 answer

Haproxy rate limiting, conn_rate, conn_cur

Tried to achieve rate-limiting on haproxy 1.5-18 with the following: frontend stick-table type ip size 100k expire 30s store conn_rate(3s) #connection rate stick-table type ip size 1m expire 10s store gpc0,http_req_rate(10s) #http req…
w00t
  • 1,164
  • 3
  • 19
  • 35
5
votes
1 answer

HAProxy listen with two arguments?

I keep seeing HAProxy configuration examples with a two-argument syntax. Indeed, the default configuration file supplied with 1.4.18 contains this: listen appli1-rewrite 0.0.0.0:10001 cookie SERVERID rewrite balance roundrobin server …
SystemParadox
  • 847
  • 9
  • 14
5
votes
2 answers

Heartbeat Aware Load balancing

I am using Haproxy for load balance my web servers. Not all of them has same resources. Typical loadbalancing algorithms caused some low end servers to overload as LB isn't hearbeat aware. Is the a way of load balance servers based to their current…
adinindu
  • 83
  • 4
5
votes
3 answers

Haproxy % traffic to a cluster

I have a web page that works in 1 server. We are in progress to migrate to a new plattform that has 3 servers. In first step in the migration plan we need to pass make a percent, say 10%, to the new cluster and 90% to the old server. The new…
David Sedeño
  • 163
  • 1
  • 6
5
votes
1 answer

What is the best way to load balance multiple sock5 proxys on seperate VM's in the same datacenter?

I am currently trying to figure out the best way to load balance multiple sock 5 proxy servers for my new project. I was looking into programs like HA proxy, but it seems to only load balance HTTP Proxy's and for this project i need Sock5's. I…
user178923
  • 51
  • 1
  • 3
5
votes
2 answers

Need HAproxy + Varnish + nginx setup suggestions

Currently, I have two load balancers running HAProxy, which forward requests to backends, each of which run Varnish cache in front of nginx. I thought this would distribute most the bandwidth across the backend servers, but my load balancers appear…
Lin
  • 2,909
  • 7
  • 27
  • 25
5
votes
1 answer

HAProxy load balancing based on source ip (IP subnet)

I have x cluster. This cluster look like Cluster 1 192.168.1. (Server type 1) 192.168.2. (Server type 2) 192.168.3.1 (Server type 3) Cluster 2 192.167.1. (Server type 1) 192.167.2. (Server type 2) 192.167.3.1 (Server type 3)
Vivek Goel
  • 193
  • 1
  • 1
  • 7
5
votes
1 answer

haproxy and keepalived on Amazon EC2

The new Amazon Opsworks service uses haproxy rather than Amazon's own very limited elastic load-balancer so I started investigating haproxy as a better option for load-balancing our web app servers, providing session fail-over, etc. I got haproxy…
5
votes
1 answer

haproxy not logging

I have configured rsyslog (CentOS 6.3) adding the -c 0 -r options and the line local2.* /var/log/haproxy.log and restarted rsyslog but all that happens is an haproxy.log gets created. It is never written to. Not quite sure how to troubleshoot…
user160910
5
votes
1 answer

HAProxy check port 443

Is it possible to get HAProxy to health check an SSL / port 443 end point? The check port 443 in the config below fails the health check HAProxy config below global log 127.0.0.1 local2 chroot /var/lib/haproxy pidfile …
Robert
  • 91
  • 2
  • 8