The thesis contains this paragraph:
" The Join timeout is shorter than the Consensus timeout and is used to
increase the probability that Join messages from all currently
working processors are received during a single round of consensus."
Empirically I can confirm that making join less than consensus can cause
havoc with a cluster so I think we should enforce this.
Signed-Off-By: Christine Caulfield <ccaulfie@xxxxxxxxxx>
diff --git a/exec/totemconfig.c b/exec/totemconfig.c
index 58bb5ef..abaabdf 100644
--- a/exec/totemconfig.c
+++ b/exec/totemconfig.c
@@ -268,6 +268,13 @@ static int totem_volatile_config_validate (
goto parse_error;
}
+ if (totem_config->consensus_timeout < totem_config->join_timeout) {
+ snprintf (local_error_reason, sizeof(local_error_reason),
+ "The consensus timeout parameter (%d ms) may not be less than join timeout (%d ms).",
+ totem_config->consensus_timeout, totem_config->join_timeout);
+ goto parse_error;
+ }
+
if (totem_config->merge_timeout < MINIMUM_TIMEOUT) {
snprintf (local_error_reason, sizeof(local_error_reason),
"The merge timeout parameter (%d ms) may not be less than (%d ms).",
_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss