On 2023-01-17 1:15 PM, Shawn Heisey wrote: ... It is a good idea when setting up load balancing to have
a virtual IP address. Two programs for setting that up are ucarp and pacemaker. I'm sure there are more options.
Not really. There used to be heartbeat but it was deprecated, gone, and buried by linux-ha folks because everybody needs N+M setups of I+J services running on A+B servers in X+Y geographically distributed datacenters -- pacemaker to the rescue. IMO pacemaker (well, linux-ha stack) is way too bloated for the simple common use cases, and ucarp... Well, you'd be better off running BSD where CARP is part of the kernel proper, if it weren't for the Java-on-BSD problem.
Better yet, run "in the cloud" and let kube worry about VIPs and availability and the rest of it.
Dima