Questions tagged [haproxy]

HAproxy is a TCP/HTTP load balancer which provides cookie-based persistence, advanced traffic regulation with surge protection, automatic failover, run-time regex-based header control, Web-based reporting, advanced logging to help trouble-shooting buggy applications and/or networks, and a few other features.

HAProxy is a TCP/HTTP load balancer which provides cookie-based persistence, advanced traffic regulation with surge protection, automatic fail over, run-time regex-based header control, Web-based reporting, advanced logging to help trouble-shooting buggy applications and/or networks, and a few other features.

2659 questions
7
votes
1 answer

Why does haproxy path_beg only work if I don't visit default site?

I have configured haproxy to redirect the path "/rawman" to port 8080 on my server. It works the first time, but as soon as I visit the default site it stops working. The default site is running on apache with mod_rewrite and it is catching invalid…
Jesse
  • 345
  • 1
  • 4
  • 6
7
votes
1 answer

HAProxy to use DNS from operating system?

I'm using dns names for my backend servers in my hsproxy.cfg like backend s0 server server0 server0.x.y.local:8080 backend s1 server server1 server1.x.y.local:8080 The name resolution works fine after startup. But as soon as the ipadress…
Jens
  • 495
  • 1
  • 6
  • 28
7
votes
0 answers

Is it possible to manage a sticky table for rate limiting using HAProxy - Lua?

I am using HAProxy as a load balancer & i have a lua script which returns the backend name to haproxy.cfg. Wanted to implement rate limiting for my application. I know that we can use sticky tables (as below) in haproxy.cfg to achieve rate…
Vasanth
  • 71
  • 3
7
votes
0 answers

Splash containers stops working after 30 minutes

I have some issue with Aquarium and splash. They stop working after 30 minutes after the start. A number of pages for loading are 50K-80K. I made cron job for automatically rebooting every 10 minutes, each Splash container, but it didn't work How…
amarynets
  • 1,765
  • 10
  • 27
7
votes
2 answers

How to reload config with ansible docker_container module?

I am trying to accomplish docker kill -s HUP in Ansible but it looks like the options I try always restart the container or attempt to instead of reloading the config. Running the following command allows me to reload the configuration…
kaizenCoder
  • 2,211
  • 6
  • 33
  • 64
7
votes
2 answers

How to disable sticky sessions in Openshift3

If you scale up a Pod in Openshift3, all requests coming from the same client IP address are sent to container which has the session associated. Is there any configuration to disable sticky sessions? How can I manage the options of internal HAProxy…
Carlos Alberto
  • 7,761
  • 13
  • 52
  • 72
7
votes
1 answer

HAProxy use server when comes from DOWN to UP

I have a server that runs HAProxy to load balance our mysql servers. Some of the server may go down when we have low average load for a extensive period of time, but, in the future, if the load becomes high again, those servers goes up…
Maurício Giordano
  • 3,116
  • 4
  • 32
  • 60
7
votes
1 answer

configuration for haproxy in ubuntu?

I'm getting the following problem when I'm configuring haproxy stats: Job for haproxy.service failed because the control process exited with error code. See "systemctl status haproxy.service" and "journalctl -xe" for details. Below is my…
Shubham Yadav
  • 73
  • 1
  • 1
  • 4
7
votes
0 answers

strophe.js http-bind error 504

The following request is getting timed out frequently: Console log shows: No…
7
votes
1 answer

Reverse proxying HTTP/2 from h2 to h2c

We have a java web server which is able to serve content over h2c (HTTP/2 clear text) We would like to reverse proxy connections established using h2 (i.e. standard HTTP/2 over SSL) to the java server in h2c. Enabling HTTP/2 on nginx is simple…
Bruno Grieder
  • 28,128
  • 8
  • 69
  • 101
7
votes
4 answers

Why is HAProxy unable to load certificates generated by letsencrypt?

HAProxy is unable to load .pem files generated by letsencrypt, why is this? The error I'm seeing is: parsing [/haproxy.cfg:37] : 'bind :443' : unable to load SSL private key from PEM file '/certs/cert0.pem'. The contents of the PEM file…
aknuds1
  • 65,625
  • 67
  • 195
  • 317
7
votes
1 answer

haproxy shows in log file (-1) as the status code

I have a strange status code in my log file of haproxy (Note that its not a customized log-format its the default one in log-http) 43.56.77.23:55309 [27/Oct/2015:20:14:34.749] front-http mybackend/app 349/0/-1/-1/359 **-1** 0 - - CC--…
Eli Sapir
  • 71
  • 1
  • 3
7
votes
2 answers

OAuth token validation from HAProxy or Apache mod_proxy

I have a microservice deployed on 3 nodes sitting behind a HAProxy load balancer all inside internal network. The services are protected using OAuth2 APIS authorization server. Now, I want to move the HAProxy to DMZ. And I want to reject requests…
Ambal
  • 215
  • 2
  • 10
7
votes
1 answer

TCP socket accept() returns on [SYN] on windows server 2012

I use HAProxy which sends health check every 10 seconds. It goes in the following fashion: HAProxy -> server: [SYN] server-> HAProxy : [SYN, ACK] HAProxy->server : [RST, ACK] My TCP server is written in java in the following way: while (true){ …
alex440
  • 1,647
  • 3
  • 20
  • 35
7
votes
2 answers

Logging in to private docker registry v2 behind haproxy

I am trying to set up a new Docker Registry (v2) with HAProxy. For the Docker Registry I am using the image from the docker hub and running it with docker run -d -p 5000:5000 -v /path/to/registry:/tmp/registry registry:2.0.1. And this is a subset of…
JamesStewy
  • 1,058
  • 15
  • 26