Questions tagged [haproxy]

haproxy is a high availability proxy server which is used to load-balance webserver-farms

26 questions
3
votes
2 answers

Unable to connect to mysql DB through my HA Proxy Servers [Keepalived is used for Virtual IP-VIP]

I have my HAProxy running on VIP:192.168.61.32, also I've checked netstat -tulnp|grep 3306 tcp 0 0 192.168.61.32:3306 0.0.0.0:* LISTEN 7895/haproxy But when I run mysql -h 192.168.61.32 -u root -p: ERROR 2013…
karthik v
  • 131
3
votes
0 answers

HAproxy to v2ray

I am using Ubuntu 22.04.I have a VPS with v2ray that is proxied behind Cloudflare. Because of the restriction of open ports of Cloudflare, I want to use HAproxy to connect all users via the 443 port on VPS. How can I configure HAproxy to implement…
2
votes
1 answer

haproxy doesn't start on startup

I am using haproxy for load balancing mysql.Haproxy is running on Ubuntu 14.04 .I have set ENABLED=1 in /etc/defaults/haproxy file. But when restarted, haproxy doesn't start as daemon. The configuration file looks like this: global …
user3615045
  • 146
  • 1
  • 6
2
votes
2 answers

Start a non daemonized HAProxy?

If I run the following: service haproxy start I create a HAProxy daemon which runs in the background. How do I create a non-daemon HAProxy instance?
2
votes
1 answer

SSL Node.js Charms with Haproxy

When writing a Node.js charm that requires SSL how should I write the Haproxy web hooks? I am using the following hooks based on the sample code: hooks/website-relation-joined: #!/bin/bash relation-set "hostname=$(unit-get…
2
votes
1 answer

Haproxy fails to start

I am running Ubuntu 18.04 My config files and other info are below. I installed using apt-get. log /dev/log local0 log /dev/log local1 notice chroot /var/lib/haproxy stats timeout 30s user haproxy group haproxy daemon defaults log global mode…
1
vote
0 answers

HAProxy redispatch on request 5xx errors

Is there any option to re-dispatch a request if it gets failed with any 5xx http status code. I tried "option redispatch" but this is for connection failure. How I can resend the request to backend servers once the request is failed with 5xx. I…
1
vote
0 answers

Redirect to https with www for particulate domain on HAproxy

I've setup Haproxy, varnish and apache2 on ubuntu server and there are multiple web site running with http and https. following setup configured as below: ---443--> | | HAProxy ------>Varnish(8081) ----------> apache2(8080) ---80--->…
Nullpointer
  • 1,191
  • 4
  • 16
  • 34
1
vote
1 answer

Difference between 49-haproxy.conf and haproxy.conf files

What is the difference between 49-haproxy.conf and the haproxy.conf files? Now I have no idea if this is specific to Ubuntu or if this is in general. The documentation on HAProxy is astoundingly bad. I'm guessing it has something to do with…
1
vote
1 answer

Install haproxy 1.5 without telling apt specific version

In Ubuntu 14.04 installing haproxy through apt-get install haproxy installs haproxy 1.4, while 1.5 is in the repository. How can I install haproxy 1.5 (or the newest) without resorting to specific versions? For example, apt-get install…
hbogert
  • 333
1
vote
0 answers

configuring haproxy for SMTP traffic

I am trying to get SMTP (and IMAP, POP, IMAPS, etc..) to run over my haproxy server but i can't seem to actually get traffic to be allowed through. Anytime i telnet to my ip on port 25 i get: (same for 587) Connection failed: No connection could be…
Tobias Hagenbeek
  • 123
  • 1
  • 2
  • 6
1
vote
1 answer

Upgrading HAproxy to 2.2.17 if its not in the packager

I am currently running, 21.04 and HAproxy 2.2.9. There was a security fix that was released in 2.2.17 but when I run the upgrader in ubuntu it doesn't find that package. How would one use HAproxies release to update? I am fairly new to linux…
Brett
  • 13
1
vote
1 answer

Keepalived Virtual IP not responding to ARP requests Ubuntu 20.04 Server

I am not able to ping the virtual IP of keepalived. I checked and found that keepalived is not sending ARP requests or reply. In my configuration, I have 2 servers, running on Ubuntu 20.04 with keepalived(2.0.19) : controller1 : 192.168.2.14/24 and…
Suja
  • 11
1
vote
1 answer

Why I am Getting Lots of [UFW_BLOCK] Logs For Client's and Switches IP Addresses?

I have a MariaDB database server which is a node of my Galera Cluster and when I look at /var/log/ufw.log file, I see a lot of UFW_BLOCK logs for clients IP addresses which were connected to database and made operations successfully. I am also…
1
vote
0 answers

Problem of deploying all-in-one using Kolla tools

Currently, I was building an Ubuntu OS for openstack"rocky" for testing. I use kolla tools all-in-one instead of multinode. I pass all of the prechecks and bootstrap-servers steps, but when I type kolla-ansible -i ./multinode deploy I got the…
gorson
  • 11
  • 3
1
2