cluster/cman man/qdisk.5 qdisk/main.c qdisk/sc ...
CVSROOT: /cvs/cluster
Module name: cluster
Branch: STABLE
Changes by: lhh at sourceware.org 2007-03-20 19:41:52
Modified files:
cman/man : qdisk.5
cman/qdisk : main.c score.c
Log message:
Fix multimaster bug: ensure timings are accurate and provide multi-master conflict resolution
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/man/qdisk.5.diff?cvsroot=cluster&only_with_tag=STABLE&r1=1.2.4.3&r2=1.2.4.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/qdisk/main.c.diff?cvsroot=cluster&only_with_tag=STABLE&r1=1.3.2.4&r2=1.3.2.5
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/qdisk/score.c.diff?cvsroot=cluster&only_with_tag=STABLE&r1=1.2.2.3&r2=1.2.2.4
cman/man/qdisk.5 +15 -4
@@ -216,7 +216,7 @@ \fItko_up\fP\fB="\fPX\fB"\fP .in 12 This is the number of cycles a node must be seen in order to be declared -online. Default is \fBfloor(tko/2)\fP. +online. Default is \fBfloor(tko/3)\fP. .in 9 \fIupgrade_wait\fP\fB="\fP2\fB"\fP
@@ -229,8 +229,9 @@ \fImaster_wait\fP\fB="\fPX\fB"\fP .in 12 This is the number of cycles a node must wait for votes before declaring -itself master after making a bid. Default is \fBfloor(tko/3)\fP. -This can not be less than 2 and should not exceed \fBtko\fP. +itself master after making a bid. Default is \fBfloor(tko/2)\fP. +This can not be less than 2, must be greater than tko_up, and should not +exceed \fBtko\fP. .in 9 \fIvotes\fP\fB="\fP3\fB"\fP
@@ -314,6 +315,16 @@ disconnected from the SAN. The default for this value is 0 (off). .in 9 +\fIuse_uptime\fP\fB="\fP1\fB"\fP +.in 12 +If this parameter is set to 1 (on), qdiskd will use values from +/proc/uptime for internal timings. This is a bit less precise +than \fBgettimeofday(2)\fP, but the benefit is that changing the +system clock will not affect qdiskd's behavior - even if \fBparanoid\fP +is enabled. If set to 0, qdiskd will use \fBgettimeofday(2)\fP, which +is more precise. The default for this value is 1 (on / use uptime). + +.in 9 \fIdevice\fP\fB="\fP/dev/sda1\fB"\fP .in 12 This is the device the quorum daemon will use. This device must be the
@@ -432,4 +443,4 @@ for more details. .SH "SEE ALSO" -mkqdisk(8), qdiskd(8), cman(5), syslog.conf(5) +mkqdisk(8), qdiskd(8), cman(5), syslog.conf(5), gettimeofday(2)
cman/qdisk/main.c +29 -13
101 lines not on this page · raw message
cman/qdisk/score.c +1 -1
@@ -143,7 +143,7 @@ *score =0 ; *maxscore =0 ; -printf ("max = %d\n" , max); +//printf("max = %d\n", max); /* Allow operation w/o any heuristics */ if (!max) { *score = *maxscore =1 ;