Skip to content

Instantly share code, notes, and snippets.

@parkerfoshay
Created March 14, 2023 22:58
Show Gist options
  • Save parkerfoshay/0fb41635972610c18e363008c2279ea0 to your computer and use it in GitHub Desktop.
Save parkerfoshay/0fb41635972610c18e363008c2279ea0 to your computer and use it in GitHub Desktop.
repl-node-1-conf
# mongod_m103_reconfig_replica_1.conf
# 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/1/db
journal:
enabled: true
wiredTiger:
engineConfig:
cacheSizeGB: 0.3
# engine:
# wiredTiger:
# where to write logging data.
systemLog:
destination: file
logAppend: true
path: /var/log/mongodb/1/logs/mongod.log
# network interfaces
net:
port: 27000
bindIp: 127.0.0.1
# how the process runs
processManagement:
timeZoneInfo: /usr/share/zoneinfo
fork: true
security:
authorization: enabled
keyFile: /var/mongodb/pki/node1/dba-keyfile
#operationProfiling:
replication:
replSetName: mongodb-replSet
#sharding:
## Enterprise-Only Options:
#auditLog:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment