Questions tagged [haproxy]
38 questions
19
votes
1 answer
how to view haproxy status on the command line using a socket
In the examples, I have seen on the net
https://www.datadoghq.com/blog/how-to-collect-haproxy-metrics/#show-me-the-metrics
You can use the command line
echo "show stat" | nc -U /var/lib/haproxy/stats
Which is very ugly in the output. Columns…
nelaaro
- 13,149
- 30
- 84
- 111
15
votes
1 answer
Multiple processes listening on the same port; how is it possible?
Multiple processes are listening on same port. But as far as I know only one process can listen on a port. Is it possible (how?) that multiple processes can listen on same port?
$ sudo lsof -n -i :80 | grep LISTEN
haproxy 2039 root 4u IPv4 …
Kundan
- 153
- 1
- 1
- 5
13
votes
1 answer
haproxy configuration errors
Here's my configuration
global
log /dev/log local0
log 127.0.0.1 local1 notice
maxconn 4096
user haproxy
group haproxy
daemon
defaults
log global
mode http
option …
Veerendra K
- 271
- 1
- 3
- 13
8
votes
1 answer
haproxy wait until dns resolve backend
I have 2 docker containers in the same network - web and proxy running haproxy with backend
backend web
server web web:80 check
Also init-addr is set to last,libc,none, so it does not fail if can't resolve web on start.
If I start proxy first,…
Alexey
- 363
- 5
- 13
4
votes
1 answer
HAProxy works fine ran manually, but as a Systemd-service fails to load SSL pem-file
I'm trying to set up SSL on a Fedora 22 -server running HAProxy. Here's the config (/etc/haproxy/haproxy.cfg):
global
log 127.0.0.1 local2
chroot /var/lib/haproxy
pidfile /var/run/haproxy.pid
maxconn 4000
…
Martti Laine
- 211
- 3
- 14
2
votes
3 answers
Route SSH traffic based on domain with HAProxy
I'm currently building my own little cluster at home and I'm trying to get SSH routing (load balancing) to work with HAProxy. I have figured out how to route HTTP traffic but I'm struggling with SSH. I do not know enough about the TCP protocol to…
Constantin Jacob
- 153
- 1
- 1
- 6
2
votes
1 answer
haproxy- setting up an TCP connection cache for an HTTP server
I am trying to setup a local TCP connection cache to provide access to a remote HTTP server for multiple local applications.
I have started to configure haproxy to do this:
global
log /dev/log local0
pidfile /var/run/haproxy.pid
…
mathieu
- 103
- 1
- 10
2
votes
2 answers
HAProxy 2.0.5: Unable to convert message in HTX for HTTP return code 503
I am so sorry for any unconvenience as I am very fresh new to HAProxy and now I have one issue which may not really an issue but as I am fresh new to this tool I don't know how to fix it.
I was using HAProxy version 1.8.8 and now I am upgrade to…
Naseath Saly
- 23
- 1
- 4
2
votes
0 answers
Can’t SSH into GitLab when it’s accessible via HAProxy
I have a GitLab instance in docker-compose on a VM in my home network.
It's running behind HAProxy proxy and accessible on git.example.com:443.
To be able to access them both inside my home network and outside my home network, I have to have the DNS…
cclloyd
- 722
- 3
- 19
- 35
1
vote
0 answers
How to enable http response buffering on HaProxy?
I hope I understand it right: HAProxy is able (http-mode) to
buffer the output (response) from a backend server, so that the
server process is made free as soon as possible. A slow client
would therefore "only" consume ressources on the HAProxy.
How…
Frank59
- 111
- 4
1
vote
0 answers
How to make haproxy use a list of proxy?
squid can use a proxy list like:
cache_peer %(host)s parent %(port)s 0 no-query weighted-round-robin weight=%(weight)s connect-fail-limit=2 allow-miss max-conn=5
then just access squid port, it would auto choose a proxy to access internet for…
Mithril
- 937
- 3
- 12
- 25
1
vote
1 answer
Proxying FTP Over MQTT
Considering we have established a secure connection via MQTT (Let's say to AWS-IoT /Azure etc) can we then use it to tunnel FTP server running on Embedded Device (For remote access)?
If it's possible, would it work with the raw ftp data being sent…
Ukhan
- 11
- 1
1
vote
1 answer
Why HAProxy tcp-request content do-resolve is not working
i am using a combination of HAProxy (docker image v2.3.2) and Hashicorp Consul (v1.9.1) to access my VMs behind haproxy using SSH (i followed https://www.haproxy.com/fr/blog/route-ssh-connections-with-haproxy/)
My VMs are registered in consul
I use…
Abderrahmane
- 111
- 1
1
vote
0 answers
How To Use HAProxy to Set Up Load Balancing on Redhat for (Web + App)
I am trying to set up HAproxy load balancer and sticky session on Redhat Enterprise 7.7.
installing the HAproxy in two node web server using Apache to be "Web-Load-balance" and two node app server using java+jboss to be "App-Load-Balance".
Note:…
Hasanain
- 11
- 2
1
vote
1 answer
Haproxy configuration
can anyone explain more in depth about HAproxy health check configuration. I don't really understand this part
option httpchk HEAD / HTTP/1.1
I kept getting error 400 when applying this code.
Thanks in advance
IvandoTande
- 11
- 1