diff options
-rw-r--r-- | jstests/concurrency/fsm_libs/cluster.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/jstests/concurrency/fsm_libs/cluster.js b/jstests/concurrency/fsm_libs/cluster.js index 56a4ccb5716..6c295f536e0 100644 --- a/jstests/concurrency/fsm_libs/cluster.js +++ b/jstests/concurrency/fsm_libs/cluster.js @@ -222,6 +222,8 @@ var Cluster = function(options) { // Increase the oplog size (in MB) to prevent rollover // during write-heavy workloads oplogSize: 1024, + // Set the electionTimeoutMillis to 1 day to prevent unintended elections + settings: {electionTimeoutMillis: 60 * 60 * 24 * 1000}, verbose: verbosityLevel }; shardConfig.rsOptions = {}; @@ -292,7 +294,9 @@ var Cluster = function(options) { !this.shouldPerformContinuousStepdowns()), // Increase the oplog size (in MB) to prevent rollover during write-heavy workloads oplogSize: 1024, - nodeOptions: {verbose: verbosityLevel} + nodeOptions: {verbose: verbosityLevel}, + // Set the electionTimeoutMillis to 1 day to prevent unintended elections + settings: {electionTimeoutMillis: 60 * 60 * 24 * 1000} }; var rst = new ReplSetTest(replSetConfig); |