Load Balancing

Keepalived – load balancing and high availability

Keepalived is routing software that provides load balancing and high availability facilities for Linux infrastructure. It builds on the Linux Virtual Server (IPVS) kernel subsystem to distribute transport-layer traffic across pools of backend servers. Health monitoring determines which servers remain eligible to receive connections, enabling traffic to be redirected when individual servers become unavailable.

High availability is provided through the Virtual Router Redundancy Protocol (VRRP), which allows multiple machines to share responsibility for virtual IP addresses. If the active machine fails, a backup can assume responsibility for its addresses. The load balancing and high availability frameworks can operate independently or together, allowing Keepalived to protect services ranging from individual network endpoints to redundant load balancing infrastructure.

This is free and open source software.

Key Features

  • IPVS-based layer 4 load balancing with multiple scheduling algorithms.
  • Network address translation, direct routing and tunnelling forwarding methods.
  • Connection persistence for directing related connections to the same backend server.
  • VRRP support for IPv4 and IPv6 networks.
  • VRRP synchronisation groups for coordinating failover across multiple virtual routers.
  • Bidirectional Forwarding Detection (BFD) for rapid detection of network path failures.
  • Backend health checks supporting TCP, UDP, HTTP, HTTPS, DNS and SMTP.
  • Custom health checks using external scripts.
  • Tracking of network interfaces, processes and scripts to influence failover decisions.
  • Fallback servers for situations where the normal backend pool becomes unavailable.
  • IPVS connection state synchronisation between redundant load balancers.
  • Multicast and unicast VRRP communication.
  • Notification scripts and FIFO-based notifications for state changes.
  • Separate supervised processes for routing, health checking and failure detection.

Website: github.com/acassen/keepalived
Support:
Developer: Alexandre Cassen and contributors
License: GNU General Public License v2.0

Keepalived is written in C. Learn C with our recommended free books and free tutorials.


Related Software

Load Balancers
TraefikModern HTTP reverse proxy and load balancer
HAProxyHigh availability layer 7 load balancer and proxy server for TCP and HTTP
CiliumeBPF-based Networking, Observability, Security
nginxIncludes a L7 load balancer
RoadRunnerHigh-performance PHP application server, load balancer, and process manager
fabioFast, modern, zero-conf load balancing HTTP(S) and TCP router
BFEModern L7 load balancer
EnvoyHigh-performance edge and service proxy built for cloud-native applications
APISIXReal-time API gateway with routing, security and extensive plugin support
gobetweenModern and minimalistic L4 load balancer and reverse-proxy
MetalLBAdds external network service support to bare-metal Kubernetes clusters
SeesawLinux Virtual Server (LVS) based load balancing platform. L4 load balancer
SkipperHTTP router and reverse proxy with flexible filters and route matching
LoxiLBCloud-native networking proxy with eBPF acceleration and observability
kube-vipProvides virtual IPs and service networking across Kubernetes clusters
nusterHigh-performance HTTP proxy cache server and HTTP/TCP load balancer
GLB DirectorSet of stateless L4 load balancer servers
BalanceGeneric TCP proxy with round robin load balancing and failover capabilities

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted