Skip to content

Instantly share code, notes, and snippets.

@comerford
Last active January 9, 2017 12:08
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save comerford/d75af49fe3d4a6b53d0a to your computer and use it in GitHub Desktop.
Save comerford/d75af49fe3d4a6b53d0a to your computer and use it in GitHub Desktop.
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
Copy link

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