1
! Sample configuration for quorum/hysteresis setup.
2
! The server pool below consists of 10 servers. After
3
! start, the quorum will not be reached until 9 (7+2)
4
! live servers are present in the pool (all servers are
5
! equally weighted, and quorum is the sum of weights).
6
! Once this happens, a custom script will be executed,
7
! which supposedly invokes some actions to start
8
! announcing IP address of the virtual server to the
9
! world. After that the quorum will not break until
10
! the pool has 5 (7-2) or more live servers. Pool size
11
! change from 7 to 6 and back will not trigger a quorum
12
! flap this way. Once there are less than 5 servers,
13
! the quorum is considered lost and corresponding
14
! script is executed, supposedly propagating the
15
! failure, so necessary actions can be taken.
17
! Due to the alpha mode, all real servers are considered
18
! down on server start, so the quorum is initially lost.
19
! Due to the omega mode, quorum_down notifier is executed
20
! on keepalived shutdown as well (see keepalived.conf
21
! manpage for details).
23
virtual_server 10.0.1.1 80 {
27
persistence_timeout 900
33
quorum_up /usr/local/sbin/quorum-up.sh
34
quorum_down /usr/local/sbin/quorum-down.sh
36
real_server 10.0.0.1 8080 {
43
real_server 10.0.0.2 8080 {
50
real_server 10.0.0.3 8080 {
57
real_server 10.0.0.4 8080 {
64
real_server 10.0.0.5 8080 {
71
real_server 10.0.0.6 8080 {
78
real_server 10.0.0.7 8080 {
85
real_server 10.0.0.8 8080 {
92
real_server 10.0.0.9 8080 {
99
real_server 10.0.0.10 8080 {