blob: 639d612211daa1ba957ed8a1ac462baae0d67fd5 [file] [log] [blame]
Filip Pytloun4ab64a02015-10-06 16:28:32 +02001==========
2Keepalived
3==========
4
5Keepalived is a routing software written in C. The main goal of this project is to provide simple and robust facilities for loadbalancing and high-availability to Linux system and Linux based infrastructures. Loadbalancing framework relies on well-known and widely used Linux Virtual Server (IPVS) kernel module providing Layer4 loadbalancing. Keepalived implements a set of checkers to dynamically and adaptively maintain and manage loadbalanced server pool according their health. On the other hand high-availability is achieved by VRRP protocol. VRRP is a fundamental brick for router failover. In addition, Keepalived implements a set of hooks to the VRRP finite state machine providing low-level and high-speed protocol interactions. Keepalived frameworks can be used independently or all together to provide resilient infrastructures.
6
7
8Sample pillar
9=============
10
Ales Komarek733b0922016-01-05 16:27:21 +010011Simple virtual IP on an interface
12
Filip Pytloun4ab64a02015-10-06 16:28:32 +020013.. code-block:: yaml
14
15 keepalived:
16 cluster:
17 enabled: True
18 instance:
Ales Komarek733b0922016-01-05 16:27:21 +010019 VIP1:
Filip Pytloun4ab64a02015-10-06 16:28:32 +020020 priority: 100 (highest priority must be on primary server, different for cluster members)
21 virtual_router_id: 51
22 password: pass
23 address: 192.168.10.1
24 interface: eth0
Ales Komarek733b0922016-01-05 16:27:21 +010025 VIP2:
Filip Pytloun4ab64a02015-10-06 16:28:32 +020026 priority: 150 (highest priority must be on primary server, different for cluster members)
27 virtual_router_id: 52
28 password: pass
29 address: 10.0.0.5
30 interface: eth1
Ales Komarek733b0922016-01-05 16:27:21 +010031
32Multiple virtual IPs on single interface
33
34.. code-block:: yaml
35
36 keepalived:
37 cluster:
38 enabled: True
39 instance:
40 VIP1:
41 priority: 100 (highest priority must be on primary server, different for cluster members)
42 virtual_router_id: 51
43 password: pass
44 addresses:
45 - 192.168.10.1
46 - 192.168.10.2
47 interface: eth0
Filip Pytloun4ab64a02015-10-06 16:28:32 +020048
49Read more
50=========
51
52* https://raymii.org/s/tutorials/Keepalived-Simple-IP-failover-on-Ubuntu.html