diff options
author | Mike Grundy <michael.grundy@10gen.com> | 2016-06-14 12:44:00 -0400 |
---|---|---|
committer | Mike Grundy <michael.grundy@10gen.com> | 2016-06-14 18:16:27 -0400 |
commit | dbbad24bfbc6d391dffe5902977431d90201db3b (patch) | |
tree | 3586a9ee2cfdd63741551680d9161722fe53475a /buildscripts/resmokelib | |
parent | 08d13f99571eb12e85b03488befc31f5ad23c3db (diff) | |
download | mongo-dbbad24bfbc6d391dffe5902977431d90201db3b.tar.gz |
SERVER-24456 Tests should lower RocksDB cache size
Diffstat (limited to 'buildscripts/resmokelib')
-rw-r--r-- | buildscripts/resmokelib/core/programs.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/buildscripts/resmokelib/core/programs.py b/buildscripts/resmokelib/core/programs.py index fc9e65a9610..5c5f27d06c2 100644 --- a/buildscripts/resmokelib/core/programs.py +++ b/buildscripts/resmokelib/core/programs.py @@ -38,12 +38,16 @@ def mongod_program(logger, executable=None, process_kwargs=None, **kwargs): "nojournal": config.NO_JOURNAL, "nopreallocj": config.NO_PREALLOC_JOURNAL, "storageEngine": config.STORAGE_ENGINE, - "wiredTigerCacheSizeGB": config.STORAGE_ENGINE_CACHE_SIZE, "wiredTigerCollectionConfigString": config.WT_COLL_CONFIG, "wiredTigerEngineConfigString": config.WT_ENGINE_CONFIG, "wiredTigerIndexConfigString": config.WT_INDEX_CONFIG, } + if config.STORAGE_ENGINE == "rocksdb": + shortcut_opts["rocksdbCacheSizeGB"] = config.STORAGE_ENGINE_CACHE_SIZE + elif config.STORAGE_ENGINE == "wiredTiger" or config.STORAGE_ENGINE is None: + shortcut_opts["wiredTigerCacheSizeGB"] = config.STORAGE_ENGINE_CACHE_SIZE + # These options are just flags, so they should not take a value. opts_without_vals = ("nojournal", "nopreallocj") |