Skip to content

Instantly share code, notes, and snippets.

@marantz
Created November 3, 2015 06:59
Show Gist options
  • Save marantz/e2455d834caa3089972c to your computer and use it in GitHub Desktop.
Save marantz/e2455d834caa3089972c to your computer and use it in GitHub Desktop.
MongoDB CONFIG SERVER CONFIG YAML
net:
bindIp: [127.0.0.1,hostName]
port: 27218
processManagement:
fork: true
sharding:
clusterRole: configsvr # [shardsvr/configsvr]
security:
authorization: disabled
javascriptEnabled: true
storage:
dbPath: "/opt/mongodb/data/shard_config_01"
engine: "wiredTiger"
wiredTiger: {
engineConfig: {
cacheSizeGB: 1 # [min=100MB,max=8GB]
,journalCompressor: zlib # [none/snappy/zlib]
,directoryForIndexes: true # [Default=false]
,statisticsLogDelaySecs: 0 # [Default=0]
}
,collectionConfig: {
blockCompressor: zlib # [none/snappy/zlib]
}
,indexConfig: {
prefixCompression: true
}
}
journal:
enabled: true
indexBuildRetry: true
systemLog:
destination: file
path: "/opt/mongodb/logs/shard_db_config_01.log"
quiet: true
logAppend: true
traceAllExceptions: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment