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

How to proxy two separate networks together via another network?

Apologies in advance if this sounds a bit newbie as I am still a bit new to networking side of things. I wanted to get an an opinion if this solution would work. I have two networks Alpha & Gamma. Both networks cannot be directly connected due to…
MechaStorm
  • 197
  • 1
  • 6
0
votes
1 answer

nginx redirection/proxying, one domain(url) with two IP's

We want to setup failover mechanism for one of java applications, application have 3 instances on one server and each instance must be accessed via different url, those url's are already registered and accessible via dns. On secondary server we do…
vladeli
  • 99
  • 2
0
votes
1 answer

Investigate HAProxy failure on CentOS 7 - code=killed, status=9/KILL following Reloaded SYSV

I'm running 2 instances of HAProxy 1.6.9 with PCS on CentOS 7. HAProxy on my main node suddenly failed during the weekend. A systemctl status of haproxy gave us a failed status. Restarting haproxy worked just fine and the service came back…
maxime_039
  • 243
  • 5
  • 14
0
votes
1 answer

Load balancing/Proxy backend with data across locations

I am looking into a setup where I will have servers and databases in multiple regions (data not replicated across region but independent). The ideal flow would be: - user make a request to api.domain.com - proxy/load balancer determines which…
0
votes
1 answer

HAProxy adjust weight / connections for recovering servers

I'd like to limit either the number of connections, or limit the weight of the server for a certain period of time after the DOWN->UP transition. After that period of time, assuming the server is still up, I'd like it to return to the standard…
user65539
0
votes
0 answers

Multiple VPS with their nameservers+FTP+etc under same IP

The setup I'm trying to create: a single physical dedicated server with a single public IP a number of hosted virtual machines (DomUs, with XEN) running Virtualmin (LAMP + other services), basically like a LAN with NAT HAProxy running on the…
flip79
  • 143
  • 8
0
votes
0 answers

haproxy - re-encryption and add header

I want to build a haproxy with re-encryption if traffic is already encrypted and I want to add header to ensure it is working. But my http-request add-header LoadBalancer Plain and http-request add-header LoadBalancer Encrypted doesn't seem to…
hdev
  • 630
  • 7
  • 18
0
votes
2 answers

haproxy'd mysql client hangs attempting to connect

I am attempting to set up an haproxy LB for a cluster of mySQL slaves using the method outlined here in github's engineering blog. I've got the xinetd checks working but when I attempt to login via mysql client to the backend hosts through the…
Ethan Shrago
  • 101
  • 1
  • 8
0
votes
0 answers

HAproxy as a reverse proxy - no load balancing

I want to configure HA Proxy to act only as a reverse proxy it's being implemented to replace Squid. At the moment I have it working, where a request comes to the physical firewall on port 80, that firewall passes it through to the HA proxy server…
Dr Pepper
  • 1
  • 1
  • 2
0
votes
2 answers

haproxy redirect doesn't work for kibana

My haproxy config looks like and redirect to 5601 for kibana doesn't work. Why? ########################################################################## defaults mode http log global option httplog timeout…
0
votes
1 answer

Can my test haproxy server load balence a production server?

I have an haproxy server which balances the load between three production servers using (for reasons I don't understand) the source algorithm. One of them keeps getting into a state where although it is not working properly, haproxy doesn't spot…
0
votes
0 answers

Cannot get performance improvement with Haproxy

I have 4 web servers with a ruby web server running, and a server running haproxy. I can get a RPS(request per second) of 300 against one web server using ab. But I can only get a RPS of 340 against haproxy server. The simple sample ruby app just…
Sato
  • 449
  • 2
  • 9
  • 17
0
votes
1 answer

How to set up nested acl rules in HAProxy?

I serve multiple services from my domain using the same HAProxy instance, at domain.com/s1/ and domain.com/s2/ . I would like to do some operations (including ACL matching) only when certain conditions are met within s2. Using acl's like acl…
Animesh
  • 249
  • 1
  • 2
  • 9
0
votes
2 answers

HAProxy Maintain Connections to Backend regardless of Frontend Connections

Is there a way to configure HAProxy to maintain an X number of open HTTP connections to the backend that get reused by new HTTPS connections (i.e. requests) to the frontend, and keep the backend connections open even after the frontend connections…
geeko
  • 141
  • 1
  • 5
0
votes
1 answer

LoadBalancing for whole subnet

Is it possible to configure HaProxy to balance traffic for whole subnet. I tried 192.168.50.0/24, but HaProxy gets error. This is for cloud environment, so if my server scales-out, I don't need manually reconfigure HaProxy and restart service. My…