Use next server when maxconn is reached
I’ve found that with most load balancing algorithms, if the selected server has reached maxconn then additional requests will be queued on that server. balance first is an exception – if the first...
View ArticleRandom 503 service unavailable error
Hi I’m new to HAPROXY I was able to configure it for my webapp but sometimes I got a 503 error, I checked my config seems to be fine don’t if maybe there is something wrong with it. global log...
View ArticleHow to configure redis to work with haproxy?
I am configuring HAproxy and would love using with Redis, my configuration is fairly simple: global maxconn 50000 defaults timeout connect 10s timeout client 30s timeout server 30s log global mode...
View ArticleLittle bit of help on tcp-request content reject
Hi, I’m using a simple HAProxy configuration that allows me to have a single external IP and redirect multiple https connection internally depending on the hostname used by the client. It has worked...
View ArticleCR term code with ""
I am running a local python web server that is linked with ssl cert and saml integration. Once i run the server, i get this output from the log: Jul 18 13:36:03 localhost haproxy[516396]:...
View ArticleDNS Server State cleanup
Hello, We use HAPROXY with SRV records, it works great but we have a small issue where it supposed to have only 2 Backend active (can scale up to 4) but we only had 2 at the current time. We use...
View ArticleUnable to start HAProxy Service after upgrading to version
Hi Team, We are using the Haproxy as load balancer for our Bitbucket DC Version as suggested in the article Install Bitbucket Data Center | Bitbucket Data Center and Server 8.2 | Atlassian...
View ArticleRedirect URL or sub folders
I am a newb to HAProxy, I have a website and several applications, the web page is https://audit.mydomain.com and the applications are api, gsdev I want to get to this https://audit.mydomain.com/api...
View ArticleHealthchecks receive 403 forbidden, but normal requests go thru fine
Hey folks, I’m running into a bit of a weird problem. My HAProxy HTTP healthchecks are receiving a 403 forbidden error: Provided Host header is not whitelisted This is despite regular curls from the...
View ArticleWhat ca-file will facilitate an actual SSL Handschake to a remote Nginx server?
HaProxy is public facing. It has its own cert from Lets Encrypt that seems ok. Actually there are two such servers sharing a floating IP connected by Keepalived. All of that works. HaProxy is supposed...
View ArticleSingle frontend port to multiple Backend port map
Hi Team, I’m trying to route a traffic from one frontend port to multiple backend port. How do I configure the port range in the backend cfg ? 2 posts - 2 participants Read full topic
View ArticleUse a file as backup for maintenance
Hi, I’m migrating from Netscaler to HAproxy and I have to set a simple html page as maintenance page when all the non-backup servers are down. No, instead of spinning up a new webserver just to be...
View ArticleRate-Limiting and retry-after header
Hi guys, I’m using haproxy 2.5 and have some basic rate limiting configured like this (the actual configuration contains more rules for different urls): backend test acl rate_limit_by_ip_exceeds_limit...
View ArticleCloudFlare 522 and HAproxy
Hello, We use schema: CloudFlare → HAProxy v.2.4.8 → Nginx-> Tomcat → Application Sometimes we see error 522 with our clients. Connection cannot be established. From the CF logs it is clear that...
View ArticleHaproxy won't work with docker
Hi everyone, I’m new on using haproxy and Ihave trubles setting up a web app with Docker. I am using an Node.js app listening on port 8001 and it connects on a local database mongodb on port 27017. I...
View ArticleHow to config health check of haproxy pod in a kubernetes cluster?
We deploy a Haproxy Pod in kubernetes cluster, and we config health check below: "livenessProbe": { "exec": { "command": [ "/bin/bash", "-c", "test `ps -eo stat,command | grep -v grep | grep haproxy |...
View ArticleTry to redirect path to another
Hello, I’m new with haproxy and i like to redirect a path to another. I tried several method but nothing work. The goal is to redirect https://domain.tld/**reports**/xxx to...
View ArticleACL rule which works only if ALL header values are in the whitelist
Hi people! I need to create an ACL rule which will work only if ALL values from a header are in the whitelist. I’ve created a small whitelist: foo bar And this is my haproxy.cfg: defaults mode http...
View ArticleHaproxy as a load balancer to Exchange DAG
New to Haproxy and linux. We have 2 Haproxy VMs load balancing an Exchange 2019 DAG group consisting of 2 Exchange servers. Recently we tried to put the passive Exchange server into maintenance mode...
View ArticleHaproxy and sctp protocol
Hello, I’m using iptables to do natting for the sctp protocol in a VM instance. Can we use haproxy to achieve the same goal ? Is there any support for haproxy and sctp ? (I’m looking to consolidate...
View Article