See also: Website: http://haproxy.1wt.eu Documentation: http://haproxy.1wt.eu/#docs Download: http://haproxy.1wt.eu/#down

learn more… | top users | synonyms

0
votes
0answers
7 views

Using HAProxy, matching root URL only in ACL

Using HAProxy, I want to create the following setup: All requests except root (/), /articles and /blogs go to server1 All requests for root (/), /articles and /blogs go to server2 I can't figure ...
1
vote
1answer
48 views

HAProxy stops accepting connections

I've been using HAProxy to loadbalance my appservers for many months without problems. Recently some traffic spikes have lead me to setting the maxconn parameter to rate-limit connections to my ...
0
votes
1answer
45 views

Cannot start up haproxy

Using ubuntu as my server I'm trying to set up load balancing using HAProxy. When I try to run using "haproxy -f haproxy.cfg" i get this error. [WARNING] 035/115820 (1148) : [haproxy.main()] ...
3
votes
1answer
151 views
+50

Pacemaker Active/Active haproxy load balancing

I am using Haproxy to load balance replicated mysql master servers. I am also using Heartbeat and Pacemaker for Active/Active ip failover with two virtual ips on the two load balancers for web server ...
0
votes
1answer
27 views

Setup multiple webapps to respond to multiple domains using a single IP

I have two rails webapps, I have configured one webapp to respond to multiple domains. I have done this by making the corresponding server block in nginx as the default. Now, I want to make even the ...
4
votes
2answers
89 views

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 ...
0
votes
1answer
39 views

Nginx/haproxy/IIS - Configuration questions and concerns

Our environment is mostly consisting of SSL web sites running on IIS/ASP.Net. The majority of the site code is reporting, analysis, and user specific views of data. We are expanding the number of ...
2
votes
0answers
35 views

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 ...
0
votes
0answers
14 views

Map remote url in HAProxy

I am currently using apache and mod_proxy to map a local url to a remote url. I am doing this so that https requests will still work properly. In apache I have the following line in my VirtualHost ...
1
vote
1answer
82 views

HAProxy - Enable maintenance mode if file exists

We're using stunnel and HAProxy for our load balancing needs. In nginx you can enable a maintenance state, based on the existance of a file on a child server (see Configure nginx to serve a 503 if a ...
3
votes
2answers
151 views

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 ...
0
votes
1answer
31 views

Is 4.44 xforwarded stunnel patch compatible with stunnel 4.52?

In trying to patch the current stable version of Stunnel with the patch provided on the HaProxy site. I get the following response. Is it still required to patch? From the copy on the site it looks ...
0
votes
1answer
36 views

HAProxy configuration file

Where it is located? Sometimes I see it under /etc/haproxy.conf, other times at /etc/haproxy/haproxy.cfg. IF both reside, which one precedes then?
0
votes
0answers
10 views

What kind of routers does stackexchange have? [migrated]

I'm reading this post: http://blog.serverfault.com/2011/09/30/the-stack-exchange-architecture-2011-edition-episode-1/ It seems you have 2 routers sitting in front of haproxy. Are these 2 routers ...
0
votes
1answer
40 views

HAproxy: digest authentication

We have setup a loadbalancer to balance 2 servers. The config looks like this: global maxconn 40960 user haproxy group haproxy daemon defaults log global option ...
1
vote
0answers
17 views

-sf option of HAProxy not working for me

I am using HAProxy on RedHat 5.5 and have below configuration. global daemon maxconn 1024 log 127.0.0.1 local1 info defaults log global balance roundrobin mode http ...
0
votes
1answer
52 views

Need help in Haproxy socat for cacti

am using the haproxy socat to get the sessions data to plot it in cacti, /var/run/socket-haproxy is owned by www-data (the user which cacti uses) but when I try to execute this command as www-data am ...
1
vote
1answer
58 views

haproxy acl - accept only from specific IPs

I've got haproxy and need to provide smtp to servers which does not have direct connection. Here is portion of my config: listen smtp 10.12.23.10:3025 mode tcp server smtp ...
3
votes
1answer
90 views

HAProxy and Stunnel PCI Compliance

I am setting up HAProxy to load balance between two web servers. Some of the pages on the site require SSL. Stunnel is handling the https connections and passing them off to haproxy (Stunnel ...
1
vote
2answers
93 views

Purpose of putting haproxy / varinish behind nginx?

In some setup, I saw someone put haproxy / varinish behind nginx, and forward the requests to backend (e.g. Passenger) e.g. Nginx <---> HaProxy / Varinish <----> Passenger / Apache I never ...
1
vote
2answers
88 views

Does all data flow through haproxy or will it redirect?

If I am using haproxy as my only publicly accessible server that's job is to route requests to our backend servers, will all data flow through the haproxy server? If we have 50 servers and a single ...
1
vote
1answer
73 views

Can HAProxy respond with a specific sub domain that represents a backend server?

Say someone makes a http get/post request to api.example.com/a/b Now say I have 10 servers setup as my backend servers. I want ha proxy to act as a load balancer and during the request handshake ...
1
vote
1answer
54 views

strategy for distributing erlang otp nodes behind haproxy

I have a standard erlang application build upon otp principles. I plan to place my erlang nodes in production as explained below: receive all traffic on a public ip (haproxy) haproxy them to one of ...
0
votes
0answers
32 views

pass source port to app server behind haproxy

I have a haproxy configuration run in http mode. I pass requests to backend java servers. I use forwardfor option to get client ip in backend server. I want to get source port in backend server but ...
2
votes
0answers
91 views

How to not redirect when cookie is set in haproxy?

On my site I redirect users with mobile devices to a mobile site using my Haproxy loadbalancer. I got some complaints about that and want to offer the users a link back to the "classic" portal. As not ...
0
votes
1answer
51 views

Modify HAPROXY's Stats Page

I'm using HAProxy for load balancing and would like to make the stats page visible for certain people. I have already configured this to a point where the users must log into the website first and ...
-1
votes
1answer
253 views

haproxy as load-balancer and nginx as webserver? [closed]

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 ...
3
votes
1answer
124 views

HAProxy health checks: using httpchk and observe?

I'm using HAProxy 1.4.18 with the following backend configuration backend staging option httpchk HEAD /check.txt HTTP/1.0 http-check disable-on-404 default-server error-limit 1 on-error ...
1
vote
3answers
112 views

Will using HAProxy to load balance provide a failover effect

I currently have a site running on an Nginx platform with PHP-FPM and APC. It is performing very well with the tests I have been trying. I would now like to add failover functionality and can't ...
0
votes
2answers
58 views

Is it possible to remove part of a path in HAProxy in a redirect?

I'm using HAProxy to set a cookie when you visit mydomain.com/dev and redirects to mydomain.com . The purpose of this is to offer a way to visit a development version of the site instead of the ...
1
vote
1answer
184 views

Using nginx to rewrite urls inside outgoing responses

We have a customer with a site running on Apache. Recently the site has been seeing increased load and as a stop gap we want to shift all the static content on the site to a cookieless domains, e.g. ...
0
votes
0answers
99 views

HAProxy + NodeJS gets stuck on TCP Retransmission

I have a HAProxy + NodeJS + Rails Setup, I use the NodeJS Server for file upload purposes. The problem I'm facing is that if I'm uploading through haproxy to nodejs and a "TCP (Fast) Retransmission" ...
2
votes
1answer
147 views

250k connections for comet with node.js

How to implement node.js to be able to handle 250k connections as comet server (client side we use socket.io)? Would the use of nginx as proxy/loadbalancer be the right solution? Or will HA-Proxy be ...
0
votes
0answers
21 views

Running a command at the time of changing master

I have set up master - slave using HAProxy. It is working as expected. When the master is not available it is automatically pointing to slave. I need to run a linux command at the time of the switch. ...
1
vote
1answer
137 views

How do I load balance between two Linux machines?

Inspired by the Stack Overflow network, I am now obsessed with HAProxy and trying to use it myself. At the moment, each HAProxy box has got two network cards (well, two configured, I can have a ...
1
vote
1answer
77 views

1K incoming http post requests per second, each with a 10-50K file

I'm trying to figure out what kind of server setup I will need to support: 1K http post requests per second each post will contain a xml file between 5-50K (average of 25 kilobytes) Even if I get ...
0
votes
0answers
52 views

HAProxy on Amazon Linux AMI

I am running HAProxy on a Amazon Linux AMI to load balance the RDS read replicas. What parameters should I tune on the large instance/server to ensure HAProxy performs at its best ? thanks
1
vote
2answers
94 views

How to perform planned downtime

Obviously there should be a downtime page located on a web server devoted to downtime page. The page should contain a short description and be transfered with HTTP status 503. Assume we have load ...
3
votes
2answers
174 views

haproxy and forwarding client IP address to servers

I have a problem with HAproxy. I use HAproxy as load balancer which distribute incoming http requests to 5 web servers. normally a client request's is forwarded to web servers with loadbalancer's IP. ...
3
votes
1answer
148 views

Restarting Haproxy Gracefully

As per various blogs, HAproxy can be gracefully restarted using the following command: sudo haproxy -f /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid -sf $(cat /var/run/haproxy.pid) TO verify ...
0
votes
2answers
89 views

HAProxy on Amazon EC2 instance type

I am setting up load balancing for my Amazon RDS Read Replicas using HAProxy, should I use a m1.large or c1.medium instance type for running HAProxy ? thanks
1
vote
1answer
83 views

How to prevent HAProxy from ineffectively distributing load using roundrobin algorithm?

We're running web servers behind an EC2 load balancer, and in turn these servers run HAProxy and spread load between work servers. Assuming equal server weights, it seems like the following scenario ...
-2
votes
2answers
168 views

HAproxy subdomain redirect

I own one domain like xyz.com and I'm trying to redirect subdomain other ip with haproxy. I use tomcat on the servers and I use haproxy to redirect incoming requests on port 80 to port 8080. Like; ...
0
votes
1answer
75 views

Solid failover for IIS and ASP.NET MVC?

Our team is currently planning our next big project which looks to be an exciting one! We our product will be an ASP.NET MVC site which can either be deployed on a customers own server or they can ...
0
votes
2answers
108 views

How to add persistent connection support to a load-balanced HTTP webservice

We are working on an HTTP webservice load-balanced using haproxy. The webservice is accessed via SSL. It is a RESTful HTTP service and simply accepts JSON, does some work, and returns JSON. There is ...
0
votes
2answers
172 views

haproxy failover with process monitoring?

I know some people are using keepalived and heartbeat for active/standby but what action is taken if the haproxy process were to die? What would be nice is if the virtual IP would switch servers if ...
1
vote
1answer
55 views

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 ...
0
votes
1answer
121 views

ha-proxy smtp source ip

I have haproxy in transparent mode to load balance two mail server. I have a problem with outgoing mail messages. The receiving party see that the IP of our mail server is the ip of haproxy and not ...
0
votes
1answer
72 views

Equivalent for HAProxy's option forwardfor/close in Pound

I'm switching from HAProxy to Pound and I need to know if there is an equivalent of option forwardfor option httpclose in Pound. BTW, I'm already using the HeadRemove "X-Forwarded-For" in ...
7
votes
1answer
285 views

Poor load balancer performance on rackspace and centos

I am load testing different options for load balancing, and am getting poor results from Nginx, haproxy, and varnish. I have one 4GB load balancer at Rackspace, hitting 4x1GB app servers. I'm ...

1 2 3 4 5 6