diff options
author | Maria van Keulen <maria@mongodb.com> | 2018-10-03 16:39:25 -0400 |
---|---|---|
committer | Maria van Keulen <maria@mongodb.com> | 2018-10-04 17:19:30 -0400 |
commit | a0193e9851d4e308a6b5eff23f1c48033637ea45 (patch) | |
tree | 16822c171c1840b8aa3cf4687fc6ded8d23b24c7 /jstests | |
parent | e175f95a689b5ba63dbcf2af88ff6e0cfcde1a98 (diff) | |
download | mongo-a0193e9851d4e308a6b5eff23f1c48033637ea45.tar.gz |
SERVER-37464 Reduce execution time of secondary reads workload
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/concurrency/fsm_workloads/secondary_reads.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/jstests/concurrency/fsm_workloads/secondary_reads.js b/jstests/concurrency/fsm_workloads/secondary_reads.js index 5f981a0b709..4c541b60204 100644 --- a/jstests/concurrency/fsm_workloads/secondary_reads.js +++ b/jstests/concurrency/fsm_workloads/secondary_reads.js @@ -108,11 +108,13 @@ var $config = (function() { // Start write workloads to activate oplog application on secondaries // before any reads. this.insertDocuments(db, this.collName, {w: cluster.getReplSetNumNodes()}); + // Facilitate sorting by "x". + db[collName].createIndex({x: 1}); }; return { - threadCount: 50, - iterations: 40, + threadCount: 30, + iterations: 10, startState: 'readFromSecondaries', states: states, data: { |