Skip to content

Instantly share code, notes, and snippets.

@dr-dimitru
Created February 7, 2020 14:50
Show Gist options
  • Save dr-dimitru/cf970ff2592a7bc5fc4113aae406a1db to your computer and use it in GitHub Desktop.
Save dr-dimitru/cf970ff2592a7bc5fc4113aae406a1db to your computer and use it in GitHub Desktop.
MongoDB configuration we use on Meteor.js
# Our servers has 32GB of RAM
storage:
dbPath: /data/mongo
journal:
enabled: true
engine: wiredTiger
wiredTiger:
engineConfig:
cacheSizeGB: 8
systemLog:
verbosity: 1
traceAllExceptions: false
destination: file
path: /var/log/mongodb/mongod.log
net:
port: [PORT_NUMBER]
bindIp: [PUBLIC IP, OR DOMAIN NAME]
operationProfiling:
slowOpThresholdMs: 2100
replication:
oplogSizeMB: 1024
replSetName: rs0
enableMajorityReadConcern: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment