Questions tagged [keepalived]

an open source daemon that implements the VRRP standard.

The keepalived project is an open source implementation of the VRRP protocol as well as a configuration interface to the Linux ipvs framework. VRRP is based on Cisco's proprietary Hot Standby Router Protocol (HSRP) concepts. When these two portions of the application are used in concert, a pair of linux servers can be a stable, low-cost alternative to commercial load balancers.

Cisco has claimed that VRRP is protected under HSRP patents, so using keepalived is legally questionable.

233 questions
3
votes
1 answer

HAProxy + keepalived + multiple backend farms / virtual IP addresses

we have several backend farms (HTTP, FTP, etc), basically one farm for each customer, and I am about to rebuild our load balancing infrastructure, moving from Piranha to HAProxy. Since we are using several different backend server farms, the…
Mosh Pit
  • 339
  • 2
  • 4
  • 13
3
votes
1 answer

Keepalived router on virtual ip is not reachable

I've setup keepalived to manage a virtual ip between two hosts. My setup is the following Server #1: Hostname folmer, ip 192.168.0.1/22 dev p2p1 Server #2: Hostname flemming, ip 192.168.0.2/22 dev p2p1 VIP: 192.168.0.3/22 Keepalived is working and…
Daniel
  • 218
  • 3
  • 11
3
votes
2 answers

VIP not dropping from backup keepalived

I may not be understanding how this is supposed to work, but I can't figure out why the BACKUP system with this basic vrrp_instance is transitioning to master right away and never seems to honor the priority. Why wouldn't the virtual IP address…
Utegrad
  • 125
  • 2
  • 8
3
votes
2 answers

When a server IP changes, do exising TCP (e.g. http/mysql) connections remain running

We have some PHP-FPM servers and when they need a database connection, they connect to an HAProxy server which selects them a database server to use and the connection opens. When we then want to perform some maintenance on the HAProxy servers (such…
Luke Cousins
  • 377
  • 1
  • 3
  • 18
3
votes
1 answer

Virtual IP Failover when machine is overloaded

We have been using keepalived in combination with a virtual IP address for two years now. In the rare case that a machine crashes this works very well. But when there are issues on the box itself we have seen a couple of cases where no failover took…
Marco
  • 31
  • 1
3
votes
2 answers

Adding IPs to Keepalived

What is the proper way to add IP addresses to a keepalived vrrp_instance without have the IPs flop around or drop for a second?
Kyle Brandt
  • 82,107
  • 71
  • 302
  • 444
3
votes
2 answers

Prevent master to fall back to master after failure

I'm using keepalived to setup a virtual ip that points to a master server. When a failover happens it should point the virtual ip to the backup, and the IP should stay there until I manually enable (fix) the master. The reason this is important is…
Chrille
  • 463
  • 2
  • 5
  • 10
3
votes
3 answers

keepalived shutdown - does not run "notify" hook on daemon shutdown

I'm running keepalived under Debian (Lenny, Squeeze) in a fairly simple setup, I'm just (ab)using it as a VRRP daemon to decide the mastership between two equal machines for some virtual IPs. All the magic happens in the notify-script. When I…
Michuelnik
  • 3,260
  • 3
  • 18
  • 24
3
votes
2 answers

Keepalived over GRE tunnel for failover on VPS environment

I'm running an application on Linode. Their network does not support multicasting. Many tools used for failover (keepalived, spread/wackamole, hearbeat) require multicast to work (as far as I know). I've read the documentation for all of them, and…
andrew
  • 299
  • 4
  • 11
3
votes
0 answers

Trying to use keepalived for failover and forwarding but getting "Keepalived_healthcheckers[1706]: TCP socket bind failed. Rescheduling."

The goal is to get two different CentOS 7 VMs with keepalived installed to perform failover with VIP 192.168.1.11 and also forward the http (to become https shortly after this works) traffic to a corresponding http server. 192.168.1.11 vm1 (MASTER)…
jstnewb
  • 31
  • 4
2
votes
2 answers

HAProxy as TCP load balancer (SSL passthrough) not working?

i am having some trouble setting up HAProxy as a TCP load balancer (layer 4) and i would like to have your advice about it. i've been following many guides on the web and i came up with this configuration (not showing any errors in the logs, it…
olivierg
  • 494
  • 1
  • 6
  • 24
2
votes
1 answer

Kolla OpenStack deployment fails with "haproxy : Waiting for virtual IP to appear"

I'm trying to deploy OpenStack Queens with kolla-ansible (7.0.0) on Ubuntu hosts, following the official guide. After successful bootstrap-servers and precheck the deploy command fails: RUNNING HANDLER [haproxy : Waiting for virtual IP to appear]…
Gerald Schneider
  • 19,757
  • 8
  • 52
  • 79
2
votes
0 answers

multiple networks in keepalived configuration

I have two router(lxc containers) seated in the distribution layer of my network and I want to implement HA for them. The routers have 114 network interfaces and I want that they share a virtual ip address, I have seen that a way to acomplish this…
amh9412
  • 21
  • 4
2
votes
0 answers

Keepalived forwarding UDP traffic to one node via NAT

I am having issues with load balancing UDP Syslog to my Graylog cluster nodes. At first everything seemed to work normal but it seems that traffic is flowing for 99% to one of the two nodes. I have two Ubuntu servers (18.04) running Keepalived…
Robert
  • 121
  • 6
2
votes
1 answer

IPVS (keepalived) doesn't balance UDP connections

I have two load balancer with Debian 8 and three Graylog server with Debian 9. Every server in my network sends logs via rsyslog to a virtual server configured on the LB. The connection is UDP. The problem is that the packets are not balanced. (all…
ottagono
  • 31
  • 3
1 2
3
15 16