Skip to content

Instantly share code, notes, and snippets.

@marantz
Last active August 29, 2015 14:12
Show Gist options
  • Select an option

  • Save marantz/b5682e8471aa698bc801 to your computer and use it in GitHub Desktop.

Select an option

Save marantz/b5682e8471aa698bc801 to your computer and use it in GitHub Desktop.
mongodb shards config file
net:
bindIp: [127.0.0.1] #[hostname/ip/DNS] ARRAY
port: 37148 # [MONGOS:27018,CONFIG:271X8,SHARDS:272X8]
processManagement:
fork: true
sharding:
clusterRole: shardsvr # [shardsvr/configsvr]
security:
authorization: disabled # [enabled/disabled]
javascriptEnabled: true
storage:
dbPath: "/dbdata/mongod_01"
engine: "wiredTiger"
wiredTiger: {
engineConfig: {
cacheSizeGB: 1 # [min=100MB,max=8GB]
,journalCompressor: snappy # [none/snappy/zlib]
,directoryForIndexes: true # [Default=false]
,statisticsLogDelaySecs: 0 # [Default=0]
}
,collectionConfig: {
blockCompressor: snappy # [none/snappy/zlib]
}
,indexConfig: {
prefixCompression: true
}
}
journal:
enabled: true
indexBuildRetry: true
systemLog:
destination: file
path: "/logs/mongod_01.log"
timeStampFormat: iso8601-local #[ctime/iso8601-utc/iso8601-local]
quiet: false
logAppend: true
traceAllExceptions: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment