diff options
author | Jonathan Abrahams <jonathan@mongodb.com> | 2015-12-11 10:29:12 -0500 |
---|---|---|
committer | Jonathan Abrahams <jonathan@mongodb.com> | 2015-12-11 10:29:50 -0500 |
commit | c321e5de66e9d36259ed2f5573774c1169a6ae1f (patch) | |
tree | dd9880b591af980d3d2d364e2b3f4d42233e25d0 /jstests/concurrency | |
parent | 8410dcd702c59ca664ae8f0c4b67a399111901b3 (diff) | |
download | mongo-c321e5de66e9d36259ed2f5573774c1169a6ae1f.tar.gz |
SERVER-21547 Don't apply iteration and thread multipliers to background FSM workloads
Diffstat (limited to 'jstests/concurrency')
-rw-r--r-- | jstests/concurrency/fsm_libs/runner.js | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/jstests/concurrency/fsm_libs/runner.js b/jstests/concurrency/fsm_libs/runner.js index dd91cd02411..e3240a329ff 100644 --- a/jstests/concurrency/fsm_libs/runner.js +++ b/jstests/concurrency/fsm_libs/runner.js @@ -396,13 +396,15 @@ var runner = (function() { } } - function loadWorkloadContext(workloads, context, executionOptions) { + function loadWorkloadContext(workloads, context, executionOptions, applyMultipliers) { workloads.forEach(function(workload) { load(workload); // for $config assert.neq('undefined', typeof $config, '$config was not defined by ' + workload); context[workload] = { config: parseConfig($config) }; - context[workload].config.iterations *= executionOptions.iterationMultiplier; - context[workload].config.threadCount *= executionOptions.threadMultiplier; + if (applyMultipliers) { + context[workload].config.iterations *= executionOptions.iterationMultiplier; + context[workload].config.threadCount *= executionOptions.threadMultiplier; + } }); } @@ -583,12 +585,13 @@ var runner = (function() { globalAssertLevel = assertLevel; var context = {}; - loadWorkloadContext(workloads, context, executionOptions); + loadWorkloadContext(workloads, context, executionOptions, true /* applyMultipliers */); var threadMgr = new ThreadManager(clusterOptions, executionMode); var bgContext = {}; var bgWorkloads = executionOptions.backgroundWorkloads; - loadWorkloadContext(bgWorkloads, bgContext, executionOptions); + loadWorkloadContext(bgWorkloads, bgContext, executionOptions, + false /* applyMultipliers */); var bgThreadMgr = new ThreadManager(clusterOptions, { composed: false }); var cluster = new Cluster(clusterOptions); |