Skip to content

Instantly share code, notes, and snippets.

@parkerfoshay
Created March 14, 2023 23:02
Show Gist options
  • Save parkerfoshay/950994b0a3d702322715961890ab4e2c to your computer and use it in GitHub Desktop.
Save parkerfoshay/950994b0a3d702322715961890ab4e2c to your computer and use it in GitHub Desktop.
repl-node-2-conf
# mongod_dba_reconfig_replica_2.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/2/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/2/logs/mongod.log
# network interfaces
net:
port: 27001
bindIp: 127.0.0.1
# how the process runs
processManagement:
timeZoneInfo: /usr/share/zoneinfo
fork: true
security:
authorization: enabled
keyFile: /var/mongodb/pki/node2/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