I just set up a floating IP address for the first time today and went with keepalived. Why would you recommend Corosync/Pacemaker over keepalived?
I just set up a floating IP address for the first time today and went with keepalived. Why would you recommend Corosync/Pacemaker over keepalived?
I'm mostly bitter from spending days tracking down a race condition stemming from its notification scripts, which wasn't really keepaliveds fault per se. But if you need to start/move/constraint/notify anything along with the IP, or require sub-second failover, Corosync/Pacemaker is a far better choice.
However due to their complexity, for just a floating IP address, keepalived is unfortunately the best option for Linux (I usually have OpenBSD in that spot).
Configuring it is deceptively simple: just create an interface with ifconfig called "carpN", specifying VID, password and IP address[1].
You can also make it load-balance traffic between your carp hosts if desired[2].
Give it a go for your next firewall/server build :)
0: https://en.wikipedia.org/wiki/Common_Address_Redundancy_Prot...