diff options
author | Jonathan Abrahams <jonathan@mongodb.com> | 2018-02-26 09:22:58 -0500 |
---|---|---|
committer | Jonathan Abrahams <jonathan@mongodb.com> | 2018-02-26 09:22:58 -0500 |
commit | 3aa315557bef775c5291068e365a59a3a810fc41 (patch) | |
tree | 6086f5268330f82da72a5cb28a951394be70b42c | |
parent | b5b3fcc4c38cd289e9c0d3192946ed715d7e576f (diff) | |
download | mongo-3aa315557bef775c5291068e365a59a3a810fc41.tar.gz |
SERVER-30642 Raise election timeouts, in the concurrency tests, as a way to provide more stable replica set test topologies
-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); |