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 | |
|---|---|
| Traefik | Modern HTTP reverse proxy and load balancer |
| HAProxy | High availability layer 7 load balancer and proxy server for TCP and HTTP |
| Cilium | eBPF-based Networking, Observability, Security |
| nginx | Includes a L7 load balancer |
| RoadRunner | High-performance PHP application server, load balancer, and process manager |
| fabio | Fast, modern, zero-conf load balancing HTTP(S) and TCP router |
| BFE | Modern L7 load balancer |
| Envoy | High-performance edge and service proxy built for cloud-native applications |
| APISIX | Real-time API gateway with routing, security and extensive plugin support |
| gobetween | Modern and minimalistic L4 load balancer and reverse-proxy |
| MetalLB | Adds external network service support to bare-metal Kubernetes clusters |
| Seesaw | Linux Virtual Server (LVS) based load balancing platform. L4 load balancer |
| Skipper | HTTP router and reverse proxy with flexible filters and route matching |
| LoxiLB | Cloud-native networking proxy with eBPF acceleration and observability |
| kube-vip | Provides virtual IPs and service networking across Kubernetes clusters |
| nuster | High-performance HTTP proxy cache server and HTTP/TCP load balancer |
| GLB Director | Set of stateless L4 load balancer servers |
| Balance | Generic TCP proxy with round robin load balancing and failover capabilities |
Read our verdict in the software roundup.
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. |


Please read our Comment Policy before commenting.