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
13
votes
3 answers

Prevent VRRP Master from becoming Master once it has failed

I have two machines (A and B, A is Master) running VRPP (from keepalived) for a Virtual IP. How can I prevent A from becoming Master again if it has failed and come back up (for whatever reason)? I'm doing this so that we have a single fail-over to…
MrMahgu
  • 273
  • 1
  • 2
  • 6
12
votes
1 answer

Keepalived for more than 20 virtual addresses

I have set up keepalived on two Debian machines for high availability, but I've run into the maximum number of virtual IP's I can assign to my vrrp_instance. How would I go about configuring and failing over 20+ virtual IP's? This is the, very…
cvaldemar
  • 1,096
  • 1
  • 10
  • 12
11
votes
3 answers

keepalived VRRP_script not failing over

So I am running keepalived on two servers and I can't get it to failover to the other. Below I have my config for one of the servers. The only different between the two is the priority numbers master being 110 and back being 109. But when I stop my…
Nvasion
  • 213
  • 1
  • 2
  • 6
10
votes
1 answer

Keepalived send gratuitous ARP periodically

Is there a way for a keepalived to send gratuitous ARP periodically? We had following situation: switch failure (VLAN setup) keepalived failovered to backup instance backup instance sent gratuitous ARP but Cisco ASA device didn't got it (because of…
10
votes
6 answers

View Current State of Keepalived

Is there a way to view the current state (Master/Backup) using a command line inside a server instance? Cheers
Ben
  • 243
  • 1
  • 3
  • 13
10
votes
6 answers

HAproxy 503 Service Unavailable No server is available to handle this request

I'm new to this load balancing scenario and I'm being tasked to figure out how to make this load balancing works. My environment: Centos 6.4 64 Bit Webserver: Lighttpd All running in ESXI virtual IP: 192.168.1.6 LB1: 192.168.1.4 LB2:…
Le Dude
  • 361
  • 2
  • 6
  • 14
9
votes
5 answers

keepalived doesn't detect loss of virtual IP

I'm using keepalived to switch a floating IP between two VMs. /etc/keepalived/keepalived.conf on VM 1: vrrp_instance VI_1 { state MASTER interface ens160 virtual_router_id 101 priority 150 advert_int 1 authentication { …
Gerald Schneider
  • 19,757
  • 8
  • 52
  • 79
7
votes
2 answers

Any problems with having an active/active HAProxy setup with Keepalived

Apologies if this has been asked before, but I can't seem to find much on it. We're going to be using HAProxy to load balance our MariaDB Galera Cluster. All the articles/tutorials I have seen on this use Keepalived (or something similar) for an…
Luke Cousins
  • 377
  • 1
  • 3
  • 18
7
votes
6 answers

keepalived nopreempt option not working

I want to use nopreempt option with keepalived vrrp setting to run backup node as master when master goes down and again reback into network. I setup nopreempt option in both servers and set state as backup in both servers but due to high priority…
Ben
  • 81
  • 1
  • 1
  • 3
6
votes
2 answers

keepalived master cannot reclaim virtual IP after recovered

Steps Start both master and slave Keep pinging virtual ip (i.e 192.168.10.100) Shutdown master Slave enters MASTER state Restart master Slave enters BACKUP state and Master enters MASTER state Ping doesn't work after step 6. No server gets the…
Franz Wong
  • 161
  • 1
  • 2
6
votes
1 answer

Keepalived's virtual_router_id - should it be unique per node?

I have two nodes running keepalived, and two VIP, e.g. Node 1 Node 2 VIP1 VIP2 So in each node, I have two definition of vrrp_instance, so I assume the two vrrp_instance in my keepalived.conf suppose to be unique, but they can be the…
Ryan
  • 5,341
  • 21
  • 71
  • 87
6
votes
2 answers

UCARP: prevent the original master from taking over the VIP when it comes back after failure?

Keepalived can do this by combining the nopreempt option and the BACKUP state on the both nodes: Prevent VRRP Master from becoming Master once it has failed Prevent master to fall back to master after failure How about the UCARP? Name :…
quanta
  • 50,327
  • 19
  • 152
  • 213
6
votes
1 answer

Logging Verbosity in Keepalived.conf?

My keepalived VIP on one of my routers stopped responding. I still saw it on the primary router and not the secondary router as I would expect, and I could ping the regular IPs. As soon as I restarted keepalived the problem was resolved. I am not…
Kyle Brandt
  • 82,107
  • 71
  • 302
  • 444
6
votes
1 answer

Keepalived not sending mutlicast advertisments

I have two systems, both VMs. The are configured to use Bridged networking. I am trying to get keepalived to manage ownership of a VIP - 10.190.1.230. I have tried two versions of keepalived-1.2.2 and keepalived-1.2.1, built from source. ServerA -…
The_Viper
  • 153
  • 1
  • 8
6
votes
2 answers

keepalived issues on xen domU

I cannot manage to run keepalived correctly on xen domU. I am following this link for configuration, and it works great on some local VM (running with KVM). If I set up the exact same configuration, but on xen domU, it does not work: both servers…
David Cournapeau
  • 243
  • 4
  • 13
1
2 3
15 16