Skip to content

Instantly share code, notes, and snippets.

@tmcallaghan
tmcallaghan / run.benchmark.bash
Created February 19, 2015 18:34
How to benchmark MongoDB
#!/bin/bash
# remember the directory we are starting from
# the script expects the MongoDB configuration files here
export homeDirectory=$PWD
# directory where MongoDB/TokuMX tarballs are located
export tarDirectory=/home/tcallaghan/big-dir/backups/mongodb
# directory used for MongoDB server binaries and data folder
@tmcallaghan
tmcallaghan / tokumxse-uncompressed.conf
Created February 19, 2015 12:33
YAML Config for MongoDB 3.0.0 - tokumxse uncompressed
storage:
dbPath: "./data"
engine: "tokuft"
tokuft:
engineOptions:
cacheSize: 8589934592
directio: true
collectionOptions:
compression: none
indexOptions:
@tmcallaghan
tmcallaghan / tokumxse-quicklz.conf
Created February 19, 2015 12:32
YAML Config for MongoDB 3.0.0 - tokumxse quicklz
storage:
dbPath: "./data"
engine: "tokuft"
tokuft:
engineOptions:
cacheSize: 8589934592
directio: true
collectionOptions:
compression: quicklz
indexOptions:
@tmcallaghan
tmcallaghan / tokumxse-lzma.conf
Created February 19, 2015 12:32
YAML Config for MongoDB 3.0.0 - tokumxse lzma
storage:
dbPath: "./data"
engine: "tokuft"
tokuft:
engineOptions:
cacheSize: 8589934592
directio: true
collectionOptions:
compression: lzma
indexOptions:
@tmcallaghan
tmcallaghan / wiredtiger-zlib.conf
Created February 19, 2015 12:31
YAML Config for MongoDB 3.0.0 - wiredtiger zlib
storage:
dbPath: "./data"
directoryPerDB: true
journal:
enabled: true
engine: "wiredTiger"
wiredTiger:
engineConfig:
cacheSizeGB: 8
journalCompressor: zlib
@tmcallaghan
tmcallaghan / wiredtiger-uncompressed.conf
Created February 19, 2015 12:30
YAML Config for MongoDB 3.0.0 - wiredtiger uncompressed
storage:
dbPath: "./data"
directoryPerDB: true
journal:
enabled: true
engine: "wiredTiger"
wiredTiger:
engineConfig:
cacheSizeGB: 8
journalCompressor: none
@tmcallaghan
tmcallaghan / wiredtiger-snappy.conf
Created February 19, 2015 12:30
YAML Config for MongoDB 3.0.0 - wiredtiger snappy
storage:
dbPath: "./data"
directoryPerDB: true
journal:
enabled: true
engine: "wiredTiger"
wiredTiger:
engineConfig:
cacheSizeGB: 8
journalCompressor: snappy
@tmcallaghan
tmcallaghan / tokumxse-zlib.conf
Created February 19, 2015 12:29
YAML Config for MongoDB 3.0.0 - tokumxse zlib
storage:
dbPath: "./data"
engine: "tokuft"
tokuft:
engineOptions:
cacheSize: 8589934592
directio: true
collectionOptions:
compression: zlib
indexOptions:
@tmcallaghan
tmcallaghan / mmapv1.conf
Created February 19, 2015 12:27
YAML Config for MongoDB 3.0.0 - mmapv1
storage:
dbPath: "./data"
directoryPerDB: true
journal:
enabled: true
systemLog:
destination: file
path: "./mongodb-server.log"
logAppend: true
timeStampFormat: iso8601-utc