Hi, Andrew In the case to specify two or more host names (host_list="targetA targetB"), I think that we should include the number of hosts in the calculation of timeout.
I append patch of the modification example. thanks in advance. Regards, Yoshihiko SATO
diff -r fab8db4bbd27 extra/resources/ping --- a/extra/resources/ping Mon May 03 16:09:26 2010 +0200 +++ b/extra/resources/ping Tue May 11 14:37:47 2010 +0900 @@ -258,7 +258,8 @@ : ${OCF_RESKEY_CRM_meta_globally_unique:="true"} if [ -z ${OCF_RESKEY_timeout} ]; then - OCF_RESKEY_timeout=`expr $OCF_RESKEY_CRM_meta_timeout / $OCF_RESKEY_attempts` + host_count=`echo $OCF_RESKEY_host_list | awk '{print NF}'` + OCF_RESKEY_timeout=`expr $OCF_RESKEY_CRM_meta_timeout / $host_count / $OCF_RESKEY_attempts` OCF_RESKEY_timeout=`expr $OCF_RESKEY_timeout / 1100` # Convert to seconds and finish 10% early fi
_______________________________________________ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf