1 file changed, 42 insertions(+), 14 deletions(-)
tools/hb2openais.sh.in | 56 ++++++++++++++++++++++++++++++++++++------------
# HG changeset patch
# User Dejan Muhamedagic <[EMAIL PROTECTED]>
# Date 1226592614 -3600
# Branch stable-1.0
# Node ID 7b4c650ef8293150306bf1269ad9b41d705593f5
# Parent f0b46b8b5b9cab3d5940b0eefbcb8d149e10f246
Low: Tools: hb2openais: update openais.conf configuration to match what andrew set in the openais package
diff --git a/tools/hb2openais.sh.in b/tools/hb2openais.sh.in
--- a/tools/hb2openais.sh.in
+++ b/tools/hb2openais.sh.in
@@ -366,6 +366,10 @@ setvalue() {
do_tabs
echo "$name: $val"
}
+setcomment() {
+ do_tabs
+ echo "# $*"
+}
setdebug() {
[ "$HA_LOGLEVEL" = debug ] &&
echo "on" || echo "off"
@@ -398,10 +402,46 @@ info "Generating $AIS_CONF from $HA_CF .
# the totem stanza
cpunum=`grep -c ^processor /proc/cpuinfo`
+setcomment "Generated by hb2openais on `date`"
+setcomment "Please read the openais.conf.5 manual page"
+
+newstanza aisexec
+setcomment "Run as root - this is necessary to be able to manage resources with Pacemaker"
+setvalue user root
+setvalue group root
+endstanza
+
+newstanza service
+setcomment "Load the Pacemaker Cluster Resource Manager"
+setvalue name pacemaker
+setvalue ver 0
+if uselogd; then
+ setvalue use_logd yes
+fi
+endstanza
+
newstanza totem
-setvalue threads $cpunum
-setvalue secauth on
setvalue version 2
+setcomment "How long before declaring a token lost (ms)"
+setvalue token 10000
+setcomment "How many token retransmits before forming a new configuration"
+setvalue token_retransmits_before_loss_const 20
+setcomment "How long to wait for join messages in the membership protocol (ms)"
+setvalue join 60
+setcomment "How long to wait for consensus to be achieved before"
+setcomment "starting a new round of membership configuration (ms)"
+setvalue consensus 4800
+setcomment "Turn off the virtual synchrony filter"
+setvalue vsftype none
+setcomment "Number of messages that may be sent by one processor on receipt of the token"
+setvalue max_messages 20
+setcomment "Limit generated nodeids to 31-bits (positive signed integers)"
+setvalue clear_node_high_bit yes
+setcomment "Disable encryption"
+setvalue secauth off
+setvalue threads 0
+setcomment "Optionally assign a fixed node id (integer)"
+setcomment "nodeid: 1234"
ring=0
gethbmedia |
while read media_type iface address rest; do
@@ -454,18 +494,6 @@ setvalue mode disabled
setvalue mode disabled
endstanza
-newstanza aisexec
-setvalue user root
-setvalue group root
-endstanza
-
-newstanza service
-setvalue name pacemaker
-setvalue ver 0
-if uselogd; then
- setvalue use_logd yes
-fi
-endstanza
}
if [ -z "$DRY" ]; then
_______________________________________________
Pacemaker mailing list
[email protected]
http://list.clusterlabs.org/mailman/listinfo/pacemaker