See also: Website: http://haproxy.1wt.eu Documentation: http://haproxy.1wt.eu/#docs Download: http://haproxy.1wt.eu/#down
0
votes
0answers
17 views
Getting 502 instead of 503 when all backend servers are down running HAProxy behind Apache
I'm testing running HAProxy as a dedicated load balancer behind Apache 2.2, replacing our current configuration where we use Apache's load balancer. In our current, Apache only, set-up if all the ...
1
vote
0answers
22 views
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 ...
1
vote
1answer
25 views
Programatically blocking a url to rate limit, unblocking or expiring the block
My requirements are to be able to rate limit or temporarily hard block any requests to our server for a particular URL if the client sends more than x requests per hour.
There are about 250K urls ...
0
votes
2answers
26 views
Haproxy Acl in Https
In haproxy settings there is frontend which bind on 443.
The problem is inside this frontend I need to use acl rules in order to distinguish traffic based on server_name.
However, if I am understand ...
0
votes
0answers
25 views
Software Proxy & LB options. Must be layer 3 and redundant
Currently we have good ol' LVS running in the same subnet as our webservers. We use Piranha for automatic redundancy and take full advantage of the status check scripts to not only automatically ...
2
votes
2answers
41 views
HAProxy + nginx reaching max numtcpsock in about 24 hours
I'm running a relatively simple VPS (a Media Temple (ve)) with a few PHP-based websites and (eventually) a few Node servers. In order to enable WebSockets support, I'm using HAProxy on port 80, which ...
2
votes
1answer
41 views
Add X-Forwarder-For HTTP header to HAProxy
I use HAProxy 1.3.26 on my CentOS 5.8 to proxy all requests to a dedicated server. I use HAProxy just to proxy HTTP and HTTPS to a single server, so no load balancing.
My haproxy.cfg is rather ...
0
votes
2answers
55 views
Apache with mod_php high memory utilization
We have Magento application deployed on Apache with mod_php and mysql.
I have observed that sometime apache server starts consuming high memory which causes memory swapping and results in high load on ...
0
votes
0answers
10 views
How do I match a wildcard host in ACL lists in HAproxy?
I have the following lines in my haproxy.conf:
acl valid_domains hdr(Host) -i mysite.com images.mysite.com docs.mysite.com admin.mysite.com
redirect location http://mysite.com/invalid_domain if ...
1
vote
2answers
56 views
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 ...
0
votes
1answer
56 views
Unexpected behaviour when dynamically add node in HAproxy server
I wanted to use HAProxy for my web app for load balancing purpose. I am trying to add a new rabbitmq node dynamically in HAProxy server using command : haproxy -p /var/run/haproxy.pid -sf $(cat ...
1
vote
1answer
51 views
Load Balancing, Active-Active config and dynamic server addition
Right.
I'm looking into setting up a system something like this:
/ [Load Balancer] \ /\/\/\/\/\/\/\
[LAN1] - ----- | Server Pool |
\ [Load Balancer] / ...
0
votes
1answer
45 views
Configure HAProxy for rabbitmq
I want to use HAProxy as a load balancer. I want to put two rabbitmq server behind haproxy. Both the rabbitmq server are on different instance of EC2. I have configure HAProxy server by following this ...
1
vote
2answers
36 views
Navigating traffic in inner network
I am just wondering if the following scenario is possible and how to implement this.
Suppose there are 2 DNS records from one of the Domain Services. Both records point to two different servers HTTP ...
2
votes
2answers
57 views
Authenticated proxies on HAProxy load balancer
I want to rotate between a few http authenticated proxies. But I am unable to plug this into the config file because the url structure is different. It works when i remove the username and pass (but ...
-1
votes
0answers
22 views
How to rewrite a redirected url with haproxy 1.4.20? [closed]
haproxy 1.4.20
Want to www.test.com/aaa/xxx/xxxx/a.php
to rewrite
backend a
Www.test.com/b/xxx/xxx/b.php
to rewrite
backend b
Need how to do this?
2
votes
1answer
47 views
haproxy maxconn and cookie sessions
i have any instances under an haproxy loadbalancer. i am using the haproxy cookies to make each client connect to the same server troughout his whole session.
now the thing is, I would like to setup ...
1
vote
1answer
39 views
503 with Varnish to HAproxy
We host multiple apps, on different app servers. What we have is
HAProxy -> App Servers
The App servers can be anything from PHP on Apache to Java app in glassfish.
So we use haproxy to expose 1 IP ...
2
votes
1answer
87 views
Load balance HTTP based on a percentage of traffic or requests?
I want to have v1 of my application in one pool and version v1.1 in another pool and then slowly ramp up the traffic going to pool two and reduce it to pool one.
Can anyone show some concrete ...
1
vote
1answer
44 views
Load balancing setup
Server 1(Proxy) -> Server2/Server3(Apache) -> Server4(mySQL)
For server 1 I would setup HARproxy with something like?
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
...
0
votes
1answer
32 views
Single backend, multiple outgoing ports in HAProxy
Running HAProxy with multiple SSL websites, and I would love to define a single backend (it's going to the same servers) but somehow specify the port to use on the backend in the front-end config, ...
2
votes
0answers
58 views
What is HAProxy appsession request-learn?
I'm reading the HAProxy manual and there is a part that I'm not understanding:
request-learn
If this option is specified, then haproxy will be able to learn
the cookie ...
1
vote
1answer
34 views
HAProxy hour, day, week logging
Is there a way I can get similar stats to WebAlizer from HAProxy so I can see the amount of traffic - historically - which hits my HAProxy server?
Thanks!
0
votes
2answers
128 views
HAProxy NGInx SSL setup
I've been looking around different setups for a server cluster supporting SSL and I would like to benchmark my idea with you.
Requirements:
All servers in the cluster should be under the same full ...
1
vote
0answers
55 views
haproxy tcp transparent mode on the same box as service
I'd like to set up transparent HA Proxy for TCP protocol.
It works flawlessly when HA Proxy is in front of the boxes that are running the service.
But when I try to set up HA Proxy in transparent mode ...
0
votes
2answers
40 views
haproxy rsyslog entries are without microsecond
I changed my (Debian 6.0) rsyslog configuration so that it uses high-precision timestamps. Indeed it does, and it gives me microseconds, both in kernel entries and in some other entries such as ...
0
votes
1answer
47 views
haproxy maxconn meaning
In the haproxy config file, there is a directive called maxconn.
does this directive refer to concurrent connections? Or once the connection is redirected to a server, it is closed? For example, if ...
0
votes
1answer
78 views
haproxy and persistant connections
I am using HAproxy to load balance between more web server. Those webservers are using PHP and sessions to keep one's session open.
Now, I think that when a user refreshes the page, it is sent to one ...
0
votes
1answer
60 views
Haproxy log each frontend to different file with rsyslog
I have many frontends in haproxy, I plan to log each frontend to different file, for example, frontend a to /var/log/a.log, b to /var/log/b.log, but haproxy's log facility must be one of the 24 ...
1
vote
3answers
82 views
Redirecting specific traffic to amazon AWS
My server has recieved sudden increase in the (read) web traffic, requesting many map image tiles, and apache cannot handle it.
Apache cannot even handle the redirections! The average load I get in ...
2
votes
3answers
169 views
HAProxy cannot bind socket for proxy on a remote machine
I'm using HAProxy to load balance the incoming requests on my two tomcat backend servers.
In the config file when I specify HAProxy to listen to the same machine on which the HAProxy is installed, ...
0
votes
1answer
90 views
HAProxy and 2 webservers
I have a website that is split into two different servers:
chat server in node.js
normal website (lighttpd + php + whatever)
now, I have set HAProxy in the same machine as node.js chat, so that ...
0
votes
1answer
147 views
Keepalived configuration - To set MASTER/BACKUP or EQUAL
Now this is something which has been on my mind since I started stetting up our load balancers.
Would you use the MASTER/BACKUP configurations for keepalived if both your HAProxy servers were the ...
0
votes
1answer
70 views
HaProxy and Windows Auth
Can I get HaProxy to forward windows auth credentials onto IIS?
I have searched for a day and cannot find much information out there.
1
vote
1answer
60 views
Haproxy Slow Reload in DB Mode
Recently I started using great tool for load balancing - Haproxy.
There is only one disturbing thing that I cannot figure out how to deal with it.
We use haproxy for load balancing mysql traffic. ...
1
vote
2answers
55 views
haproxy backend default location
If you go to www.company.com, I want it to redirect to /something/something on my server, but the URL still shows www.company.com Is this possible in haproxy?
backend new_marketing_server
*** set ...
1
vote
1answer
44 views
What is wrong with my redirect?
I need haproxy to redirect product.company.com to company.com/about/product
acl newproduct hdr(host) –i product.company.com
redirect location http://company.com/about/product if newproduct
I know ...
1
vote
0answers
41 views
Is it possible to include one HAProxy backend in another?
We're running multiple sites on the same hardware, and we'd like to serve them using the same pool of application machines. However, one site periodically gets greatly-increased traffic, and so we'd ...
0
votes
0answers
59 views
haproxy 503 error file not working with two backends
I have used 503 error file in HAProxy with lot of servers but there is this special case where there are 2 different backends b1,b2. Default backend is b1 and there is a acl which sends path_beg ...
0
votes
2answers
114 views
Advice on where to install Redis
I have just introduced Redis into our application and I am not sure where best to install in production. I read that the Windows option is not production quality so i need to install on Linux.
I ...
1
vote
1answer
149 views
Pound + HAProxy or Stunnel + HAProxy
I'm looking at introducing a loadbalancer to my existing site infrastructure to help with traffic growth and provide a level of failure protection.
The site I am running uses SSL certificates for the ...
0
votes
2answers
67 views
HAproxy to web host sub directory?
Hi for reasons outside my control, I need to load balance two servers, that run a non-virtual host enabled app on IIS.
Normally in HAProxy I would load balance servers(apache, tomcat, etc) like this ...
2
votes
1answer
39 views
Redirect away from www to non-www domain on nginx from behind HAproxy
I'm a bit confused. I have nginx running on a port other than 80.
# part of nginx.conf
server {
listen 7000;
include /etc/nginx/my_app.conf;
}
That's because my HAProxy is running on 80 on the ...
2
votes
0answers
64 views
HAProxy authentication for a specific path
I need to specify a path which, when hit, requires authentication. I've new to HAProxy and have been struggling with this for a while. Here is one attempt:
acl auth_ok http_auth(site_users)
...
1
vote
1answer
239 views
Nginx + SSL + Rails + Juggernaut (Node.js) + Engineyard
I have two different applications on the same server. One of them is running on the 80 port (mydomain.com), another on the port 443 (sub.mydomain.com) and has wildcard certificate.
The first ...
0
votes
1answer
33 views
What does “acl cdn_name hdr_beg(host) -i foor.bar.com” mean in HAProxy's configuration?
I've recently taken over an environment using HAProxy, and I'm attempting to learn the config and what it all means, but I'm finding some aspects of it are not clear.
I think the above means that if ...
0
votes
0answers
66 views
TCP HAProxy disconnects immediately and doesn't reach backend
My TCP HAProxy (used for SMTP traffic in this case) drops the connection immediately
and doesn't reach the backend.
Example:
% telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape ...
1
vote
2answers
229 views
Nginx Retry of Requests ( Nginx - Haproxy Combination )
I wanted to ask about Nginx Retry of Requests. I have a Nginx running at the backend which then sends the requests to HaProxy which then passes it on the web server and the request is processed. I am ...
0
votes
1answer
278 views
CentOS - How to install haproxy
I have no experience with Linux.
I want to install the haproxy.
Where should I place the file for installation?
My position is at the root server.
/root
Can I use the following procedure?
wget ...
-2
votes
2answers
92 views
Server Cluster Design/Setup [closed]
OK So I am not sure if this is posted already but let me explain my goal and what I am trying to do. Really need some help on this as I am not really linux or server savvy yet. I know the basics with ...