diff options
author | Jonathan Abrahams <jonathan@mongodb.com> | 2018-02-26 09:22:58 -0500 |
---|---|---|
committer | Judah Schvimer <judah@mongodb.com> | 2018-04-19 10:27:24 -0400 |
commit | bfc56f2c54ba83a4041213b82b187e36cf1a9af1 (patch) | |
tree | 49499c61a512d0f828cb821d9b6b3a8fba496116 /jstests/concurrency | |
parent | 4b0ccd4520b1e038f32088a6934a1587a7316743 (diff) | |
download | mongo-bfc56f2c54ba83a4041213b82b187e36cf1a9af1.tar.gz |
SERVER-30642 Raise election timeouts, in the concurrency tests, as a way to provide more stable replica set test topologies
(cherry picked from commit 3aa315557bef775c5291068e365a59a3a810fc41)
Diffstat (limited to 'jstests/concurrency')
-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 f211738b55f..7647e7e06fb 100644 --- a/jstests/concurrency/fsm_libs/cluster.js +++ b/jstests/concurrency/fsm_libs/cluster.js @@ -217,6 +217,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 = {}; @@ -286,7 +288,9 @@ var Cluster = function(options) { nodes: makeReplSetTestConfig(options.replication.numNodes), // 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); |