Load balancing with Keepalived
Load balancing is a method for distributing IP traffic across a cluster of real servers, providing one or more virtual services for high availability.
Keepalived provides a working environment for load balancing and hence high availability. Keepalived runs based on a Linux Virtual Server (IPVS) kernel module at layer 4. It also implements a set of state checkers to dynamically manage and maintain server clusters based on their state. High availability is achieved through the Virtual Redundancy Routing Protocol (VRRP). VRRP is a fundamental building block for router failover. In this context, the load balancer can also be referred to as a director or LVS router.
Keepalived installation
Keepalived must be installed on each of the machines that will integrate the load balancing schem...
Keepalived configuration
Once Keepalived is installed on each and every one of the machines that make up the load balancin...
Keepalived activation
Persistent execution must be enabled on each reboot of the machine with the following command exe...