Skip to content

Instantly share code, notes, and snippets.

@shadyrudy
Created December 6, 2022 19:46
Show Gist options
  • Save shadyrudy/9a2278159513eac4a1954cdf5b3d2373 to your computer and use it in GitHub Desktop.
Save shadyrudy/9a2278159513eac4a1954cdf5b3d2373 to your computer and use it in GitHub Desktop.
Default mongod.conf for MongoDB 6.0 - Percona distribution
# mongod.conf, Percona Server for MongoDB
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/
# Where and how to store data.
storage:
dbPath: /var/lib/mongodb
journal:
enabled: true
# engine: wiredTiger
# engine: inMemory
# Storage engine various options
# More info for wiredTiger: https://docs.mongodb.com/v4.4/reference/configuration-options/#storage-wiredtiger-options
# wiredTiger:
# engineConfig:
# cacheSizeGB: 1
# checkpointSizeMB: 1000
# statisticsLogDelaySecs: 0
# journalCompressor: snappy
# directoryForIndexes: false
# collectionConfig:
# blockCompressor: snappy
# indexConfig:
# prefixCompression: true
# More info for inMemory: https://www.percona.com/doc/percona-server-for-mongodb/4.4/inmemory.html#configuring-percona-memory-engine
# inMemory:
# engineConfig:
# inMemorySizeGB: 1
# statisticsLogDelaySecs: 0
# Two options below can be used for wiredTiger and inMemory storage engines
#setParameter:
# wiredTigerConcurrentReadTransactions: 128
# wiredTigerConcurrentWriteTransactions: 128
# where to write logging data.
systemLog:
destination: file
logAppend: true
path: /var/log/mongodb/mongod.log
processManagement:
fork: true
pidFilePath: /var/run/mongod.pid
# network interfaces
net:
port: 27017
bindIp: 127.0.0.1
#security:
#operationProfiling:
#replication:
#sharding:
## Enterprise-Only Options:
#auditLog:
#snmp:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment