osaf/services/saf/clmsv/config/clmna.conf            |  5 +++--
 osaf/services/saf/clmsv/nodeagent/election_starter.h |  2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)


For backwards compatibility reasons, decrease the default election delay time to
200 ms. Previously, the default election delay time was set to 5 seconds, which
is the recommended setting for clusters with more than two system controllers.
For clusters with only two system controllers, the new default of 200 ms ought
to be sufficient.

diff --git a/osaf/services/saf/clmsv/config/clmna.conf 
b/osaf/services/saf/clmsv/config/clmna.conf
--- a/osaf/services/saf/clmsv/config/clmna.conf
+++ b/osaf/services/saf/clmsv/config/clmna.conf
@@ -14,8 +14,9 @@ export CLMNA_ENV_HEALTHCHECK_KEY="Defaul
 # STANDBY). If no system controller has been seen during the configured time
 # period, CLMNA will initate an election with the own node as a candidate for a
 # new active system controller. Note that lowering this value will increase the
-# risk of split-brain. Values lower than 5000 are not recommended.
-#export CLMNA_ELECTION_DELAY_TIME=5000
+# risk of split-brain. Values lower than 5000 are not recommended on cluster
+# with more than two system controllers.
+#export CLMNA_ELECTION_DELAY_TIME=200
 
 # Uncomment the next line to enable info level logging
 #args="--loglevel=info"
diff --git a/osaf/services/saf/clmsv/nodeagent/election_starter.h 
b/osaf/services/saf/clmsv/nodeagent/election_starter.h
--- a/osaf/services/saf/clmsv/nodeagent/election_starter.h
+++ b/osaf/services/saf/clmsv/nodeagent/election_starter.h
@@ -66,7 +66,7 @@ class ElectionStarter {
   timespec Poll();
 
  private:
-  static const uint64_t kDefaultElectionDelayTime = 5000;
+  static const uint64_t kDefaultElectionDelayTime = 200;
 
   struct NodeCollection {
     NodeCollection();

------------------------------------------------------------------------------
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to