Home > Storage > PowerFlex > White Papers > MongoDB on Dell PowerFlex with NVMe over TCP > Appendix B Mongod configuration file
The following code sample describes the configuration file for MongoDB setup, the highlighted values may change based on the requirement.
# mongod.conf
systemLog:
destination: file
logAppend: true
path: /var/log/mongodb/mongod.log
storage:
dbPath: /var/lib/mongo
journal:
enabled: true
engine:
wiredTiger:
processManagement:
timeZoneInfo: /usr/share/zoneinfo
fork: true
net:
port: <port number>
bindIp: locathost,<hostname/IP address>(comment out so that config server can be accessible from any where)
replication:
replSetName: < replicaSet name>
sharding:
clusterRole: <role of the vm example, config server, shard server>
Note: Parameters are changed in the setup as per the VM role.