Instantly share code, notes, and snippets.

Embed
What would you like to do?
YAML Config for MongoDB 2.7.9 - WiredTiger, zlib compression
storage:
dbPath: "/ssd/db/wt_zlib"
engine: "wiredTiger"
wiredTiger:
collectionConfig: "block_compressor=zlib"
systemLog:
destination: file
path: "/data/wt_zlib/mongodb.log"
processManagement:
fork: true
@DanielSmedegaardBuus

This comment has been minimized.

DanielSmedegaardBuus commented Jan 9, 2017

Don't know if this syntax was valid with the release of 2.8, but at least with 3.4, the correct syntax is:

storage:
  dbPath: "/ssd/db/wt_zlib"
  engine: "wiredTiger"
  wiredTiger:
      collectionConfig:
        blockCompressor: "zlib"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment