October 2017
Intermediate to advanced
226 pages
6h 56m
English
The mongoperf utility takes parameters in the form of a JSON file. We can either provide this configuration in the form of a file or simply pipe the configuration to mongoperf's stdin. To view the available options of mongoperf simply run mongoperf -h and obtain the following:
usage: mongoperf < myjsonconfigfile { nThreads:<n>, // number of threads (default 1) fileSizeMB:<n>, // test file size (default 1MB) sleepMicros:<n>, // pause for sleepMicros/nThreads between each operation (default 0) mmf:<bool>, // if true do i/o's via memory mapped files (default false) r:<bool>, // do reads (default false) w:<bool>, // do writes (default false) recSizeKB:<n>, // size of each write (default 4KB) syncDelay:<n> // secs between fsyncs, ...Read now
Unlock full access