~andreserl/ubuntu/lucid/keepalived/merge-from-squeeze-lp519940

« back to all changes in this revision

Viewing changes to doc/samples/keepalived.conf.quorum

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2009-05-12 20:26:15 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20090512202615-k850bw35qpuvpq4p
Tags: 1.1.17-1ubuntu1
* Merge from debian unstable, remaining changes:
  - debian/rules: DEB_UPDATE_RCD_PARAMS := expicit init start/stop
    parameters (don't stop at 0 and 6)
  - debian/init.d: init script header adapted to stop rule
  - debian/keepalived.postinst: Remove shutdown and reboot links

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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.
 
16
!
 
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).
 
22
 
 
23
virtual_server 10.0.1.1 80 {
 
24
  delay_loop 6
 
25
  lb_algo wrr
 
26
  lb_kind NAT
 
27
  persistence_timeout 900
 
28
  protocol TCP
 
29
  alpha
 
30
  omega
 
31
  quorum 7
 
32
  hysteresis 2
 
33
  quorum_up /usr/local/sbin/quorum-up.sh
 
34
  quorum_down /usr/local/sbin/quorum-down.sh
 
35
 
 
36
  real_server 10.0.0.1 8080 {
 
37
    weight 1
 
38
    TCP_CHECK {
 
39
      connect_port    80
 
40
      connect_timeout 3
 
41
    }
 
42
  }
 
43
  real_server 10.0.0.2 8080 {
 
44
    weight 1
 
45
    TCP_CHECK {
 
46
      connect_port    80
 
47
      connect_timeout 3
 
48
    }
 
49
  }
 
50
  real_server 10.0.0.3 8080 {
 
51
    weight 1
 
52
    TCP_CHECK {
 
53
      connect_port    80
 
54
      connect_timeout 3
 
55
    }
 
56
  }
 
57
  real_server 10.0.0.4 8080 {
 
58
    weight 1
 
59
    TCP_CHECK {
 
60
      connect_port    80
 
61
      connect_timeout 3
 
62
    }
 
63
  }
 
64
  real_server 10.0.0.5 8080 {
 
65
    weight 1
 
66
    TCP_CHECK {
 
67
      connect_port    80
 
68
      connect_timeout 3
 
69
    }
 
70
  }
 
71
  real_server 10.0.0.6 8080 {
 
72
    weight 1
 
73
    TCP_CHECK {
 
74
      connect_port    80
 
75
      connect_timeout 3
 
76
    }
 
77
  }
 
78
  real_server 10.0.0.7 8080 {
 
79
    weight 1
 
80
    TCP_CHECK {
 
81
      connect_port    80
 
82
      connect_timeout 3
 
83
    }
 
84
  }
 
85
  real_server 10.0.0.8 8080 {
 
86
    weight 1
 
87
    TCP_CHECK {
 
88
      connect_port    80
 
89
      connect_timeout 3
 
90
    }
 
91
  }
 
92
  real_server 10.0.0.9 8080 {
 
93
    weight 1
 
94
    TCP_CHECK {
 
95
      connect_port    80
 
96
      connect_timeout 3
 
97
    }
 
98
  }
 
99
  real_server 10.0.0.10 8080 {
 
100
    weight 1
 
101
    TCP_CHECK {
 
102
      connect_port    80
 
103
      connect_timeout 3
 
104
    }
 
105
  }
 
106
}