2012-06-15 12:07:43 +02:00
|
|
|
Index: corosync-1.4.3/conf/corosync.conf.example
|
2010-06-29 18:10:39 +02:00
|
|
|
===================================================================
|
2012-06-15 12:07:43 +02:00
|
|
|
--- corosync-1.4.3.orig/conf/corosync.conf.example
|
|
|
|
+++ corosync-1.4.3/conf/corosync.conf.example
|
|
|
|
@@ -1,16 +1,59 @@
|
2010-06-29 18:10:39 +02:00
|
|
|
# Please read the corosync.conf.5 manual page
|
|
|
|
compatibility: whitetank
|
|
|
|
|
|
|
|
+aisexec {
|
|
|
|
+ # Run as root - this is necessary to be able to manage
|
|
|
|
+ # resources with Pacemaker
|
2012-06-15 12:07:43 +02:00
|
|
|
+ user: root
|
|
|
|
+ group: root
|
2010-06-29 18:10:39 +02:00
|
|
|
+}
|
|
|
|
+
|
|
|
|
+service {
|
|
|
|
+ # Load the Pacemaker Cluster Resource Manager
|
2012-06-15 12:07:43 +02:00
|
|
|
+ ver: 0
|
|
|
|
+ name: pacemaker
|
|
|
|
+ use_mgmtd: yes
|
|
|
|
+ use_logd: yes
|
2010-06-29 18:10:39 +02:00
|
|
|
+}
|
|
|
|
+
|
|
|
|
totem {
|
|
|
|
+ # The only valid version is 2
|
2012-06-15 12:07:43 +02:00
|
|
|
version: 2
|
|
|
|
|
2010-06-29 18:10:39 +02:00
|
|
|
+ # How long before declaring a token lost (ms)
|
2012-06-15 12:07:43 +02:00
|
|
|
+ token: 5000
|
2010-06-29 18:10:39 +02:00
|
|
|
+
|
|
|
|
+ # How many token retransmits before forming a new configuration
|
|
|
|
+ token_retransmits_before_loss_const: 10
|
|
|
|
+
|
|
|
|
+ # How long to wait for join messages in the membership protocol (ms)
|
2012-06-15 12:07:43 +02:00
|
|
|
+ join: 60
|
2010-06-29 18:10:39 +02:00
|
|
|
+
|
|
|
|
+ # How long to wait for consensus to be achieved before starting
|
|
|
|
+ # a new round of membership configuration (ms)
|
2012-06-15 12:07:43 +02:00
|
|
|
+ consensus: 6000
|
2010-06-29 18:10:39 +02:00
|
|
|
+
|
|
|
|
+ # Turn off the virtual synchrony filter
|
2012-06-15 12:07:43 +02:00
|
|
|
+ vsftype: none
|
2010-06-29 18:10:39 +02:00
|
|
|
+
|
|
|
|
+ # Number of messages that may be sent by one processor on
|
|
|
|
+ # receipt of the token
|
2012-06-15 12:07:43 +02:00
|
|
|
+ max_messages: 20
|
2010-06-29 18:10:39 +02:00
|
|
|
+
|
|
|
|
+ # Limit generated nodeids to 31-bits (positive signed integers)
|
|
|
|
+ clear_node_high_bit: yes
|
|
|
|
+
|
2012-06-15 12:07:43 +02:00
|
|
|
# secauth: Enable mutual node authentication. If you choose to
|
|
|
|
# enable this ("on"), then do remember to create a shared
|
|
|
|
# secret with "corosync-keygen".
|
|
|
|
secauth: off
|
|
|
|
|
2010-06-29 18:10:39 +02:00
|
|
|
+ # How many threads to use for encryption/decryption
|
2012-06-15 12:07:43 +02:00
|
|
|
threads: 0
|
|
|
|
|
2010-06-29 18:10:39 +02:00
|
|
|
+ # Optionally assign a fixed node id (integer)
|
2012-06-15 12:07:43 +02:00
|
|
|
+ # nodeid: 124
|
2010-06-29 18:10:39 +02:00
|
|
|
+
|
2012-06-15 12:07:43 +02:00
|
|
|
# interface: define at least one interface to communicate
|
|
|
|
# over. If you define more than one interface stanza, you must
|
|
|
|
# also set rrp_mode.
|
|
|
|
@@ -60,10 +103,11 @@ logging {
|
2011-09-20 15:51:29 +02:00
|
|
|
to_stderr: no
|
2012-06-15 12:07:43 +02:00
|
|
|
# Log to a log file. When set to "no", the "logfile" option
|
|
|
|
# must not be set.
|
2010-06-29 18:10:39 +02:00
|
|
|
- to_logfile: yes
|
2012-06-15 12:07:43 +02:00
|
|
|
- logfile: /var/log/cluster/corosync.log
|
2011-09-20 15:51:29 +02:00
|
|
|
+ to_logfile: no
|
2012-06-15 12:07:43 +02:00
|
|
|
+ #logfile: /var/log/cluster/corosync.log
|
|
|
|
# Log to the system log daemon. When in doubt, set to yes.
|
2011-09-20 15:51:29 +02:00
|
|
|
to_syslog: yes
|
2010-06-29 18:10:39 +02:00
|
|
|
+ syslog_facility: daemon
|
2012-06-15 12:07:43 +02:00
|
|
|
# Log debug messages (very verbose). When in doubt, leave off.
|
2011-09-20 15:51:29 +02:00
|
|
|
debug: off
|
2012-06-15 12:07:43 +02:00
|
|
|
# Log messages with time stamps. When in doubt, set to on
|