Load Balancing with Floated IP

Is it possible to load balance two or more VMs with the "IP Failover" feature?

Most of the tutorials require the use of two loadbalancers (HAProxy or Nginx) at the frontend with an IP floating between them and multiple backends.

Is it possible to eliminate these "dedicated" loadbalancers and use heartbeat/keepalived/pacemaker or any other software to perform IP failover as well as load balancing?

1 Reply

For failover, sure. Nginx and HAProxy are not particularly special. They're just lightweight and can be quickly restarted when IPs are swapped over.

For load balancing, not so much. Unless you're doing extremely crude DNS-based load balancing, you're going to need some way to get traffic arriving at one IP address distributed to more than one server. The way to do that is with… a load balancer.

But if you just have two servers and want them in an active-standby configuration (e.g. only one handling traffic at a time), you don't need a separate load balancing layer.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct