Skip to content

Instantly share code, notes, and snippets.

@mdcallag
Created April 1, 2015 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mdcallag/19a8abdfe5d9c99a241e to your computer and use it in GitHub Desktop.
Save mdcallag/19a8abdfe5d9c99a241e to your computer and use it in GitHub Desktop.
mongo.conf for WiredTiger
processManagement:
fork: true
systemLog:
destination: file
path: /data/mysql/mongo.30/log
logAppend: true
storage:
syncPeriodSecs: 60
dbPath: /data/mysql/mongo.30/data
journal:
enabled: true
mmapv1:
journal:
commitIntervalMs: 100
operationProfiling.slowOpThresholdMs: 2000
replication.oplogSizeMB: 2000
storage.wiredTiger.collectionConfig.blockCompressor: snappy
storage.wiredTiger.engineConfig.journalCompressor: none
mongo.conf for RocksDB
processManagement:
fork: true
systemLog:
destination: file
path: /data/mysql/mongo.30/log
logAppend: true
storage:
syncPeriodSecs: 60
dbPath: /data/mysql/mongo.30/data
journal:
enabled: true
mmapv1:
journal:
commitIntervalMs: 100
operationProfiling.slowOpThresholdMs: 2000
replication.oplogSizeMB: 2000
storage.rocksdb.cacheSizeGB: 70
storage.rocksdb.compression: snappy
storage.rocksdb.configString: "write_buffer_size=16m;max_write_buffer_number=4;max_background_compactions=16;max_background_flushes=2;target_file_size_base=16m;soft_rate_limit=2.9;hard_rate_limit=3;max_bytes_for_level_base=128m;stats_dump_period_sec=60;level0_file_num_compaction_trigger=4;level0_slowdown_writes_trigger=12;level0_stop_writes_trigger=20;max_grandparent_overlap_factor=8;max_bytes_for_level_multiplier=8"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment